OMP 3.4.0-4 categories not working

Describe the issue or problem
At the moment, we are testing OMP 3.4.0-4. By selecting ‘categories’ an error occured. In the 3.4.0-3 it was still working. On your own demo it is also broken. (There, in the sidebar, I do not see the categories option, while it is selected in the plugin… On our site it does appear.)

Steps I took leading up to the issue

  1. Go to ‘https://omp34.testdrive.publicknowledgeproject.org/index.php/td-press/catalog/category/womens_studies
  2. See error

What application are you using?
OMP 3.4.0-4

Additional information

When I add a description to the categorie, the problem seemed to be solved.

Hi @ugp2,

Can you check your PHP error log? A 500 error should result in something further being captured there.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec,

In our error.log I found this:

[Fri Jan 05 08:00:07.554214 2024] [proxy_fcgi:error] [pid 5289] [client 999.999.999.999:61876] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: PKP\category\Category::getLocalizedDescription(): Return value must be of type string, null returned in =====/lib/pkp/classes/category/Category.php:112\nStack trace:\n#0 =====/cache/t_compile/487b610351ebf9d7c64f1869ee8d77745c23a9cb^5d0ca16a7c78afd59d26eb1b852e00f92f50a8d9_0.app.frontendpagescatalogCategory.tpl.php(46): PKP\category\Category->getLocalizedDescription()\n#1 =====/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6597a8a25fc138_32694983()\n#2 =====/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()\n#3 =====/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()\n#4 =====/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_…’, referer: =====

(but it also appears on your own test environment)

Kind regards,
Pia Spriensma (UGP2)

Tracked here Opening category in OPS/OMP causes 500 · Issue #9632 · pkp/pkp-lib · GitHub