Problem publishing OJS 3.4.0-7

PHP 8.2
OJS 3.4.0-7

The preview button show good the issue, but Wwhen I click the button “Ok” in the tab Publish Issue, it keeps loading and never finish the process:

i going to the error_log and see this:

mod_fcgid: stderr: PHP Fatal error: Uncaught AssertionError: assert(false) in /home/xko251/site/classes/submission/Submission.php:109
mod_fcgid: stderr: Stack trace:
mod_fcgid: stderr: #0 /home/xko251/site/classes/submission/Submission.php(109): assert(false, ‘assert(false)’)

The phpinfo shows assert as active:
Screenshot 2024-09-15 at 6.15.12 PM

I edited the submission.php file, i commented the lines 94-110, it was the solution, after this i could publish the issue:

Why? i don’t know what is the problem

Regards
Jose

Hi @Jose_Hernandez,

Could you include the rest of the stack trace in that error message?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi, @asmecher , here you go:

[Sat Sep 14 02:22:52.175267 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: Stack trace:
[Sat Sep 14 02:22:52.175269 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #0 [internal function]: APP\plugins\generic\pdfJsViewer\PdfJsViewerPlugin->submissionCallback(‘ArticleHandler:…’, Array)
[Sat Sep 14 02:22:52.175293 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #1 home/xko251/site/lib/pkp/classes/plugins/Hook.php(139): call_user_func_array(Array, Array)
[Sat Sep 14 02:22:52.175296 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #2 home/xko251/site/lib/pkp/classes/plugins/Hook.php(113): PKP\plugins\Hook::run(‘ArticleHandler:…’, Array)
[Sat Sep 14 02:22:52.175298 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #3 home/xko251/site/pages/article/ArticleHandler.php(366): PKP\plugins\Hook::call(‘ArticleHandler:…’, Array)
[Sat Sep 14 02:22:52.175301 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #4 [internal function]: APP\pages\article\ArticleHandler->view(Array, Object(APP\core\Request))
[Sat Sep 14 02:22:52.175303 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #5 home/xko251/site/lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
[Sat Sep 14 02:22:52.175305 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #6 home/xko251/site/lib/pkp/classes/core/PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
[Sat Sep 14 02:22:52.175319 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #7 home/xko251/site/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
[Sat Sep 14 02:22:52.175321 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #8 home/xko251/site/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
[Sat Sep 14 02:22:52.175324 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #9 home/xko251/site/index.php(21): PKP\core\PKPApplication->execute()
[Sat Sep 14 02:22:52.175326 2024] [fcgid:warn] [pid 291208:tid 140625947121216] [remote 217.113.194.74:0] mod_fcgid: stderr: #10 {main}

Hi @Jose_Hernandez,

You should be able to resolve this by reviewing and saving the settings on Settings > Distribution > License. Specifically, this setting needs an option chosen:

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Thanks @asmecher , the error is gone. that was the problem, blank the checkbox.

Tanks a lot!!

Regards
Jose

This topic was automatically closed after 12 days. New replies are no longer allowed.