cache errors with smartytemplate

Hi folks,
Working out a few issues with OJS and the Bootstrap 3 theme. Seems that when I try to load the /journalName/search page … it is returning an error in the section where the Search Results would be loaded (where in other journals on different themes are saying “No Results” on initial load or the search results when something is searched for):
Fatal error: Uncaught Error: Call to a member function getBestId() on null in /var/www/html/cache/t_compile/2d2f0b6fe9e301f4b66f758b857db3f773774568^7cf1cd52b8ba8108de77f197078de34b733dd394_0.app.frontendobjectsarticlesum.php:25
Stack trace:
#0 /var/www/html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_605b42d247be40_81455455()
#1 /var/www/html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#2 /var/www/html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()
#3 /var/www/html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(385): Smarty_Internal_Template->render()
#4 /var/www/html/cache/t_compile/2d2f0b6fe9e301f4b66f758b857db3f773774568^756a7119cb48731a8fd45c250b45f4bcca2d6b01_0.app.frontendpagessearch.tpl.php(117): Smarty_Internal_Template->_subTemplateRender()
#5 /var/www/html/lib/pk in /var/www/html/cache/t_compile/2d2f0b6fe9e301f4b66f758b857db3f773774568^7cf1cd52b8ba8108de77f197078de34b733dd394_0.app.frontendobjectsarticlesum.php on line 25

Anyone have any ideas?

Now on and I’m seeing the same error. @NateWr … any ideas here? Journal is using Bootstrap 3 w/ the Sandstone variation.

This was happening as a result of installing the master branch of the bootstrap3 theme. To get the correct version, it seems that you need to use the GUI or consider the versions in https://pkp.sfu.ca/ojs/xml/plugins.xml … Looking into an option for command line installation of the correct version based on this script… pkp-lib/installPluginVersion.php at main · pkp/pkp-lib · GitHub time will tell. Thanks to anyone who took a look at this. Cheers, +A

1 Like