OJS 3.4.0.1 , trying to save journal keeps loading ajax and doesn't complete

Describe the issue or problem
Hello,

I was in the process of manual installation of OJS 3.4.0.1 on PHP 8.0, MYSQL 5.7, Apache 2.2.
However I face this issue when i go to Create journal → Enter journal details and click on save .

Ajax keeps on loading and doesn’t complete. Reloading the page shows error occured and clicking on journal name shows blank page.

Following error is thrown after enabling debug (debug=On in config.inc.php file) under apache logs :

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

What could be the issue ?. Can you please replicate?.

Steps I took leading up to the issue
For example:

  1. Go to ‘Create journal’
  2. Enter journal details.
  3. Click on save , nothing happens.
  4. Turn debug = on in config.inc.php file .

What application are you using?
3.4.0.1

Additional information
Please add any screenshots, logs or other information we can use to investigate this problem.
ojserr

Hi @rckab7,

Apparently there is no current theme selected. Are you sure the installation completed successfully? Setting the default theme is one of the last steps in the installation process, so if it did not complete fully, this may not have been done.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello @asmecher,

Following is the sample setup for my OJS 3.4.0.1. Please zoom and check with the following screenshot.

I cannot see any default theme setup option .

Are you sure the installation completed successfully?

Yes.

Let me know if there is yet another way to debug?.

Hi @rckab7,

Is there another (different) message in the error log above the one you’ve quoted?

Regards,
Alec Smecher
Public Knowledge Project Team

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