I recently upgraded two journal websites to OJS 3.5.0-5, and since the upgrade I have been encountering an issue in the administration area on both sites.
When accessing parts of the dashboard/admin panel, OJS displays the following popup message:
Error
“An unexpected error has occurred. Please reload the page and try again.”
The issue started immediately after upgrading to OJS 3.5.0-5. Prior to the upgrade, both journals were functioning normally.
Environment
OJS Version: 3.5.0-5
Number of affected journals: 2
Same issue occurring on both websites after the update
The page loads, but when certain admin functions are accessed, a popup appears with the generic error message shown above, preventing normal administration.
Go to ‘…’
Click on ‘…’
Scroll down to ‘…’
See error
What application are you using?
For example, OJS 3.3.0-4
Additional information
Please add any screenshots, logs or other information we can use to investigate this problem.
For errors of this nature, the error messages are often not helpful - you have to check your PHP error log for error messages there- you can then share those error log messages here.
Thank you for the suggestion. I investigated further on one of the affected sites (fssrjournal.org).
Initially, I found entries in an error_log file indicating:
Plain Text
1
Composer detected issues in your platform:
2
Your Composer dependencies require a PHP version “>= 8.2.0”.
3
You are running 8.0.30.
Show more lines
However, after checking the hosting configuration, the affected OJS journals are actually configured to run PHP 8.2, so I am not sure whether those log entries are related to the current issue or originate from another application on the hosting account.
I then inspected the browser developer console while reproducing the error. I found API requests returning errors, and one response contained the following warning:
Plain Text
1
Deprecated: Optional parameter $anonymizeReviews declared before required parameter $stages is implicitly treated as a required parameter in
The journal is running O3.5.0.1 and PHP 8.2. The issue started immediately after the upgrade. Aside from the deprecation warning above, I have not yet found a more specific PHP fatal error related to the dashboard popup.
Thank you for your help. I found that the issue was caused by a Cloudflare security rule rather than OJS.
I had configured a Cloudflare Interactive Challenge rule for URLs containing login, submission, and register. This was unintentionally challenging OJS API requests related to submissions, which caused the admin dashboard to display the generic error message.
After removing submission from the Cloudflare rule and keeping only login and register, the dashboard started working normally again.