Theme error after 3.4 upgrade - function getOption() ... cache/t_compile/

Hi everyone,

I upgraded an 3.3.0-13 OJS installation to 3.4.0-4 version, but an error related to theme is happening. I’ve changed to default theme before upgrade and uninstalled the theme I developed to 3.3 OJS version.

After upgrade, I have checked database and my custom theme still was there, on versions table.

On database, journal_settings table, setting_value to journalTheme was empty, so I putted default as a value and removed .php files from cache directory, as this topic.

Upgrading proccess had no error on SSH.

OJS version: 3.4.0-4
PHP: 8.2

I expected these tasks would solve the issue, but I don’t know if I missed something. It seems the system is still trying to load the custom theme. How can I chage to default theme now, after upgrade?

Error log

PHP Fatal error: Uncaught Error: Call to a member function getOption() on null in /./cache/t_compile/d6c71e0541d1698f84ebc9206738b3382520b420^e64e579388e5615e11e939b12134d6ae8679eba6_0.app.frontendpagesindexJournal.tpl.php:36
Stack trace:
#0 /./lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_656db00fbb64d4_47191352(Object(Smarty_Internal_Template))
#1 /./lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /./lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /./lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#4 /./lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, 'd6c71e0541d1698...', NULL, 1)
#5 /./lib/pkp/classes/template/PKPTemplateManager.php(1325): Smarty_Internal_TemplateBase->display('frontend/pages/...', NULL, 'd6c71e0541d1698...', NULL)
#6 /./pages/index/IndexHandler.php(83): PKP\template\PKPTemplateManager->display('frontend/pages/...')
#7 [internal function]: APP\pages\index\IndexHandler->index(Array, Object(APP\core\Request))
#8 /./lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#9 /./lib/pkp/classes/core/PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
#10 /./lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
#11 /./lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#12 /./index.php(21): PKP\core\PKPApplication->execute()
#13 {main}
thrown in /./cache/t_compile/d6c71e0541d1698f84ebc9206738b3382520b420^e64e579388e5615e11e939b12134d6ae8679eba6_0.app.frontendpagesindexJournal.tpl.php on line 36```