HTTP ERROR 500 and Failed Ajax request or invalid JSON returned when adding Categories and Section

Hello everyone! I am an intern and I was tasked to migrate our old custom Journal System to OJS. However, when I try to add Categories, the whole website refuses to load (HTTP ERROR 500) and it wouldn’t even let me add a new section (Failed Ajax request or invalid JSON returned). I am using OJS 3.3.0-4 and manuscript theme. I noticed that some plugins are preventing things to work. But I couldn’t find which one.

Your response would be appreciated so much, help me graduate. Thank you!

Hi @yannalogy,

Are you able to access your PHP error logs and report on messages from there (you may need a systems administrators help with this). For errors such as these, the error log messages usually provide more information on what the issue is exactly.

-Roger
PKP Team

I actually managed to fix this just today but can I ask if the announcement block plugin will be available on version 3.4.0-4 soon? I tried to upload the plugin but its not working as expected (i figured it can be upload). Is it possible for the announcement block to work on the latest version?

This was the error when I enabled the announcement block:

 [::1]:54219 [500]: GET /index.php/CMUJS/index - Uncaught Error: Class "PKP\announcement\AnnouncementDAO" not found in C:\xampp\htdocs\CMUJS\lib\pkp\classes\db\DAORegistry.php:81
Stack trace:
#0 C:\xampp\htdocs\CMUJS\plugins\blocks\announcementsBlock\AnnouncementsBlockPlugin.inc.php(24): PKP\db\DAORegistry::getDAO('AnnouncementDAO')   
#1 C:\xampp\htdocs\CMUJS\lib\pkp\classes\template\PKPTemplateManager.php(1447): AnnouncementsBlockPlugin->getContents(Object(Smarty_Internal_Template), Object(APP\core\Request))
#2 [internal function]: PKP\template\PKPTemplateManager->displaySidebar('Templates::Comm...', Array)
#3 C:\xampp\htdocs\CMUJS\lib\pkp\classes\plugins\Hook.php(139): call_user_func_array(Array, Array)
#4 C:\xampp\htdocs\CMUJS\lib\pkp\classes\plugins\Hook.php(113): PKP\plugins\Hook::run('Templates::Comm...', Array)
#5 C:\xampp\htdocs\CMUJS\lib\pkp\classes\template\PKPTemplateManager.php(1740): PKP\plugins\Hook::call('Templates::Comm...', Array)
#6 C:\xampp\htdocs\CMUJS\cache\t_compile\b9da708b775ca192cb9735589afa7e98b537357a^4dffb64063bb972c37e05619a2ccd9d0ea7473ac_0.app.frontendcomponentsfooter.tpl.php(29): PKP\template\PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template))
#7 C:\xampp\htdocs\CMUJS\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_65d41b87df63a2_34784304(Object(Smarty_Internal_Template))
#8 C:\xampp\htdocs\CMUJS\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#9 C:\xampp\htdocs\CMUJS\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#10 C:\xampp\htdocs\CMUJS\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(386): Smarty_Internal_Template->render() 
#11 C:\xampp\htdocs\CMUJS\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) 
#12 C:\xampp\htdocs\CMUJS\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_65d41b859b26c5_41165857(Object(Smarty_Internal_Template))
#13 C:\xampp\htdocs\CMUJS\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#14 C:\xampp\htdocs\CMUJS\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#15 C:\xampp\htdocs\CMUJS\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#16 C:\xampp\htdocs\CMUJS\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)
#17 C:\xampp\htdocs\CMUJS\lib\pkp\classes\template\PKPTemplateManager.php(1325): Smarty_Internal_TemplateBase->display('frontend/pages/...', NULL, 'b9da708b775ca19...', NULL)
#18 C:\xampp\htdocs\CMUJS\pages\index\IndexHandler.php(83): PKP\template\PKPTemplateManager->display('frontend/pages/...')
#19 [internal function]: APP\pages\index\IndexHandler->index(Array, Object(APP\core\Request))
#20 C:\xampp\htdocs\CMUJS\lib\pkp\classes\core\PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#21 C:\xampp\htdocs\CMUJS\lib\pkp\classes\core\PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
#22 C:\xampp\htdocs\CMUJS\lib\pkp\classes\core\Dispatcher.php(165): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
#23 C:\xampp\htdocs\CMUJS\lib\pkp\classes\core\PKPApplication.php(388): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#24 C:\xampp\htdocs\CMUJS\index.php(21): PKP\core\PKPApplication->execute()
#25 {main}
  thrown in C:\xampp\htdocs\CMUJS\lib\pkp\classes\db\DAORegistry.php on line 81

Thank you so much for the response I appreciate it!

Hi @yannalogy,

Sorry, I won’t be able to provide an estimate for the updating of that plugin as it is a third party developed plugin and not developed by PKP. As such, it would be up to the developer (or someone who took on the development/updating) of the plugin to update the plugin, and I believe that the developer may no longer be active in developing the plugin.

-Roger
PKP team

Thank you so much! I appreciate it!