Hello everyone, can you guys help me with this?? I was trying to add a browse block on my sidebar and it isn’t working as expected. It lets me add categories but when i try to enable the browse block plugin it shows me this error.
I am new to this and I am not that good at writing/understanding codes yet (especially php). I have tried to download this plugin from git but it still the same
i am using xampp btw and also the latest version of OJS which is the 3.4.0-4 i think?
ps. I also use the manuscript theme but i tried using all of the themes and it still wouldnt let me enable the browse block plugin with categories set on it. any help and response would be appreciated, thank you so much!
Here’s the error:
[Sun Feb 18 21:37:44 2024] [::1]:59063 [500]: GET /index.php/CMUJS/index - Uncaught Error: Call to a member function getIsInactive() on null in C:\xampp\htdocs\ojs-3.4.0-4\cache\t_compile\e9acfaa63992be8b73da417127735d220ff56549_0.plugins-1-plugins-blocks-browse-blocks-browse.block.tpl.php:44
Stack trace:
#0 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_65d2065f8fe481_91275050(Object(Smarty_Internal_Template))
#1 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0)
#4 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
#5 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\classes\plugins\BlockPlugin.php(75): Smarty_Internal_TemplateBase->fetch('plugins-1-plugi...')
#6 C:\xampp\htdocs\ojs-3.4.0-4\plugins\blocks\browse\BrowseBlockPlugin.php(66): PKP\plugins\BlockPlugin->getContents(Object(Smarty_Internal_Template))
#7 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\classes\template\PKPTemplateManager.php(1447): APP\plugins\blocks\browse\BrowseBlockPlugin->getContents(Object(Smarty_Internal_Template), Object(APP\core\Request))
#8 [internal function]: PKP\template\PKPTemplateManager->displaySidebar('Templates::Comm...', Array)
#9 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\classes\plugins\Hook.php(139): call_user_func_array(Array, Array)
#10 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\classes\plugins\Hook.php(113): PKP\plugins\Hook::run('Templates::Comm...', Array)
#11 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\classes\template\PKPTemplateManager.php(1740): PKP\plugins\Hook::call('Templates::Comm...', Array)
#12 C:\xampp\htdocs\ojs-3.4.0-4\cache\t_compile\b9da708b775ca192cb9735589afa7e98b537357a^4dffb64063bb972c37e05619a2ccd9d0ea7473ac_0.app.frontendcomponentsfooter.tpl.php(29): PKP\template\PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template))
#13 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_65d20627aada63_68651676(Object(Smarty_Internal_Template))
#14 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#15 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#16 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(386): Smarty_Internal_Template->render()
#17 C:\xampp\htdocs\ojs-3.4.0-4\cache\t_compile\b9da708b775ca192cb9735589afa7e98b537357a^e64e579388e5615e11e939b12134d6ae8679eba6_0.app.frontendpagesindexJournal.tpl.php(87): Smarty_Internal_Template->_subTemplateRender('app:frontend/co...', NULL, 'b9da708b775ca19...', 0, 3600, Array, 0, false)
#18 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_65d206267d4686_53463009(Object(Smarty_Internal_Template))
#19 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#20 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#21 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#22 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, 'b9da708b775ca19...', NULL, 1)
#23 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\classes\template\PKPTemplateManager.php(1325): Smarty_Internal_TemplateBase->display('frontend/pages/...', NULL, 'b9da708b775ca19...', NULL)
#24 C:\xampp\htdocs\ojs-3.4.0-4\pages\index\IndexHandler.php(83): PKP\template\PKPTemplateManager->display('frontend/pages/...')
#25 [internal function]: APP\pages\index\IndexHandler->index(Array, Object(APP\core\Request))
#26 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\classes\core\PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#27 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\classes\core\PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
#28 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\classes\core\Dispatcher.php(165): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
#29 C:\xampp\htdocs\ojs-3.4.0-4\lib\pkp\classes\core\PKPApplication.php(388): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#30 C:\xampp\htdocs\ojs-3.4.0-4\index.php(21): PKP\core\PKPApplication->execute()
#31 {main}
thrown in C:\xampp\htdocs\ojs-3.4.0-4\cache\t_compile\e9acfaa63992be8b73da417127735d220ff56549_0.plugins-1-plugins-blocks-browse-blocks-browse.block.tpl.php on line 44