An unexpected error has occurred. Please reload the page and try again?

Error During Manuscript Submission in OJS 3.4.0.8

An unexpected error occurred during manuscript submission. Please reload the page and try again.

OJS Version: 3.4.0.8

Error Log:

[05-Feb-2025 09:22:26 UTC] PHP Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/website.com/public_html/lib/pkp/lib/vendor/slim/slim/Slim/Http/Uri.php on line 716

[05-Feb-2025 09:22:31 UTC] PHP Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/website.com/public_html/lib/pkp/lib/vendor/slim/slim/Slim/Http/Uri.php on line 716

[05-Feb-2025 09:22:31 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /www/website.com/public_html/lib/pkp/lib/vendor/slim/slim/Slim/Http/Request.php on line 1019

Hi @openaccessjournals,

I believe these are only warnings, and will not cause OJS to stop working. However, if you’ve configured OJS or PHP to send errors/warnings to the browser, they may interfere with AJAX requests. Make sure display_errors is set to Off, both in config.inc.php and your PHP configuration. (This is recommended for production use anyway.)

Once you’ve done that, unless it solves the problem, I suspect you’ll see other kinds of errors/warnings in your log that better explain what you’re encountering; I’d recommend taking another look once you encounter “An unexpected error has occurred” again.

Regards,
Alec Smecher
Public Knowledge Project Team