Error: Call to a member function getOption() on null, after UPGRADE from 3.2.1-4 to 3.3.0-10

Description of issue or problem I’m having:
Hello everyone. I got this error after upgrade with my OJS:

PHP message: PHP Fatal error: Uncaught Error:
Call to a member function getOption() on null in
(myfolder)/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^e64e579388e5615e11e939b12134d6ae8679eba6_0.app.frontendpagesindexJournal.php:37

Steps I took leading up to the issue:
1°) I upgraded from version 3.1.2-1 3.2.1-4 to 3.2.1-4 with success, how I discribed here: https://forum.pkp.sfu.ca/t/upgrade-ojs-3-1-2-1-to-3-2-1-4-successfully-upgraded/69850/9
(The main page and the magazines pages worked fine with)

2º) After, I upgraded from version 3.2.1-4 to 3.3.0-10 with success.
The main page are oppening very well, but when try to open some magazine page, these open broked and occur the above error in the error log file.

What I tried to resolve the issue:
I found the same error posted here: https://forum.pkp.sfu.ca/t/fatal-error-uncaught-error-call-to-a-member-function-getoption-after-update-from-3-0-4-to-3-0-8/71468
It was informed that it is due to an upgrade that occurred in the theme, but it was not informed how to solve it and the topic is closed for new messages.

I already tryed cleaning cache folder manually or as follows:
find /var/www/html/cache -type f -delete
But nothing has changed.

Application Version: OJS 3.3.0-10

Additional information, such as screenshots and error log messages if applicable:
Full error message log:

[error] 1251#1251: *14 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to a member function getOption() on null in (myfolder)/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^e64e579388e5615e11e939b12134d6ae8679eba6_0.app.frontendpagesindexJournal.php:37
Stack trace:
#0 (myfolder)/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(130): content_623e183b3dd3f3_45368627()
#1 (myfolder)/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(120): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#2 (myfolder)/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(222): Smarty_Template_Compiled->render()
#3 /home/(myuser)/Documentos” while reading response header from upstream, client: ::1, server: , request: “GET /index.php/desafios HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.4-fpm.sock:”, host: “localhost:8021”, referrer: “http://localhost:8021/

Hello there!
I come to inform that (with a help of a colleage @rafaelmansilha ) I found the solution. :smiley:

SOLUTION:
The maggazine(s) need to have set it’s default theme. (each one)

  1. So, using a web browser, a shortcut for it is:
    index.php/index/admin/wizard/[MAGGAZINE-NUMBER]#plugins
  2. Find and enable:
    ‘Theme Plugins (1)’ → ‘Default Theme’
4 Likes

This topic was automatically closed after 5 days. New replies are no longer allowed.