Error with smarty? User Interface loaded with error message after OJS migration (3.1.1.0 -> 3.3.0.3)

  • Application Version: OJS 3.3.0.3
  • Description of issue

After OJS application upgraded successfully, from version 3.1.1.0 to latest version 3.3.0.3 through CLI, our user interface doesn’t rendered correctly. It looks like the template doesn’t loaded and nothing appear except the header and login page. When we check the connection with Developer Tools in Firefox, OJS server returned 503 error code.

I’ve try to reset the cache and also remove the template cache, but the notice keep showing in our logs and the OJS website still loaded incorrectly.

  • Error log messages if applicable

Here the notice we found in our server:

[Wed Feb 10 08:23:56.407193 2021] [fcgid:warn] [pid 18886:tid 140203503122176] [client X.Y.Z.A:25049] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to a member function getOption() on null in /home1/u12211sqv/domain/ourdomain.org/web33ulang/cache/t_compile/b9da708b775ca192cb9735589afa7e98b537357a^e64e579388e5615e11e939b12134d6ae8679eba6_0.app.frontendpagesindexJournal.php:37
mod_fcgid: stderr: Stack trace:
 #0 /home1/u12211sqv/domain/ourdomain.org/web33ulang/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_602397e7931106_45164731()
#1 /home1/u12211sqv/domain/ourdomain.org/web33ulang/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#2 /home1/u12211sqv/domain/ourdomain.org/web33ulang/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()
#3 /home1/u12211sqv/domain/ourdomain.org/web33ulang/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): S in /home1/u12211sqv/domain/ourdomain.org/web33ulang/cache/t_compile/b9da708b775ca192cb9735589afa7e98b537357a^e64e579388e5615e11e939b12134d6ae8679eba6_0.app.frontendpagesindexJournal.php on line 37
  • screenshot
    Screenshot_2021-02-10 Jurnal Biomedika dan Kesehatan

Any clues for me about the issues?

Hi @yfktn,

Can you check if there is any active theme (Website → Appearance → Theme)?

Yes, this is the solution, somehow our previous theme doesn’t selected automatically.

Thank you …

1 Like