Hello, in OPS if the category has no description and you try to access from the link that appears in the home page, it gives an error:
Fatal error : Uncaught TypeError: PKP\category\Category::getLocalizedDescription(): Return value must be of type string, null returned in /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/classes/category/Category.php:112 Stack trace: #0 /home/customer/www/preprints.latarxiv.org/public_html/cache/t_compile/487b610351ebf9d7c64f1869ee8d77745c23a9cb^5d0ca16a7c78afd59d26eb1b852e00f92f50a8d9_0.app.frontendpagescatalogCategory.tpl.php(48): PKP\category\Category->getLocalizedDescription() #1 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65d520ef0a97b2_74014635(Object(Smarty_Internal_Template)) #2 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #3 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #4 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1) #5 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, ‘487b610351ebf9d…’, NULL, 1) #6 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/classes/template/PKPTemplateManager.php(1325): Smarty_Internal_TemplateBase->display(‘frontend/pages/…’, NULL, ‘487b610351ebf9d…’, NULL) #7 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/pages/catalog/PKPCatalogHandler.php(113): PKP\template\PKPTemplateManager->display(‘frontend/pages/…’) #8 [internal function]: PKP\pages\catalog\PKPCatalogHandler->category(Array, Object(APP\core\Request)) #9 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request)) #10 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/classes/core/PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false) #11 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route(Object(APP\core\Request)) #12 /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch(Object(APP\core\Request)) #13 /home/customer/www/preprints.latarxiv.org/public_html/index.php(21): PKP\core\PKPApplication->execute() #14 {main} thrown in /home/customer/www/preprints.latarxiv.org/public_html/lib/pkp/classes/category/Category.php on line 112
Hi @Ppantaleo,
See:
This fix will be released in OPS 3.4.0-5, which should come out very shortly.
Regards,
Alec Smecher
Public Knowledge Project Team