Edit discussions from the submission "Test 1" when i click one of the submissions because the status response error 500

Describe the issue or problem
I tested edit discussions but the form edit discussions to do not appears in the OJS because the status error 500 appears and the data doesn’t appear from url https://example.com/index.php/example/$$$call$$$/grid/queries/queries-grid/edit-query?submissionId=6&stageId=1&queryId=7&_=1737887422728. how do i fix?

Steps I took leading up to the issue
For example:

  1. Go to ‘submissions’
  2. Click on ‘edit discussion’
  3. Scroll down to ‘screenshot error edit discussion’
  4. See error

What application are you using?
For example, OJS 3.3.0-4
OJS version 3.4.0-7
PHP version 8.1

Additional information
Please add any screenshots, logs or other information we can use to investigate this problem.

Hi @fauzi-dhuhuri,

For 500 errors it is best to check your PHP error logs and report back on what is found there. If unsure of how to do that, please refer to this post: How do I find my PHP error log?

-Roger
PKP Team

Hi @rcgillis.

I found errors log but is this a problem with php version 8.1? how do i fix?

[29-Jan-2025 15:13:27 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/poly3652/public_html/jurnal.polbang.ac.id/cache/t_compile/dd3b30d2edee5faedbd050778582a900e61b1c1f^cf0184772fdd3e26e3949ba5f0001e34b4a3c1c1_0.app.controllersgridqueriesformqueryForm.tpl.php:26
Stack trace:
#0 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_679617e0d327a5_21444857()
#1 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#2 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#3 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render()
#4 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()
#5 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/classes/template/PKPTemplateManager.php(1205): Smarty_Internal_TemplateBase->fetch()
#6 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/classes/form/Form.php(217): PKP\template\PKPTemplateManager->fetch()
#7 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/controllers/grid/queries/form/QueryForm.php(263): PKP\form\Form->fetch()
#8 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/controllers/grid/queries/QueriesGridHandler.php(586): PKP\controllers\grid\queries\form\QueryForm->fetch()
#9 [internal function]: PKP\controllers\grid\queries\QueriesGridHandler->editQuery()
#10 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/classes/core/PKPRouter.php(334): call_user_func()
#11 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#12 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route()
#13 /home/poly3652/public_html/jurnal.polbang.ac.id/lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch()
#14 /home/poly3652/public_html/jurnal.polbang.ac.id/index.php(21): PKP\core\PKPApplication->execute()
#15 {main}
  thrown in /home/poly3652/public_html/jurnal.polbang.ac.id/cache/t_compile/dd3b30d2edee5faedbd050778582a900e61b1c1f^cf0184772fdd3e26e3949ba5f0001e34b4a3c1c1_0.app.controllersgridqueriesformqueryForm.tpl.php on line 26

Hi @fauzi-dhuhuri,

This seems to be cause by your theme, please try the default OJS theme to see if it solves the problem.

Best regards,
Josh

Hi @jnoronha .

I already try all the default OJS theme and i try delete data cache and template cache but that doesn’t solve because there are still errors. Thanks.

Is there anything else you would like to suggest to fix that my OJS 3.4.0-7?

HI @jnoronha , @rcgillis.

I already know that my website has decreased performance so that edit discussions don’t appear and there are errors.

Thank you very much for helping solve the problem :).