Environment:
- Nginx 1.23
- MySQL 8.0
- PHP 8
- OJS 3.4.0.6
Note:
- I understand OJS may perform better with Apache, so I also tested with Apache and encountered the exact same issue.
Problem:
- Newly registered users can successfully upload files during the initial submission stage. However, they cannot upload files in the Review stage. Any file upload-related action triggers the errors:
"You are not allowed to add and edit these files."
and"You are not authorized to access the requested resource."
- This occurs even when I set the regular user’s permissions to be identical to the ojsadmin user.
- There is a timing dependency: if a user submits an article first and then has their permissions set to match ojsadmin, they still cannot upload files.
- Conversely, if a user registers, has their permissions set to match ojsadmin, and then submits an article, they can upload files throughout all subsequent stages.
- The ojsadmin account can upload files without any issues. However, all other accounts, even with identical permissions, cannot upload files in the Review stage.
- Even more perplexing is that there are no error logs to indicate the problem, leaving me completely clueless.
Attempts Made:
- Set
session_check_ip = Off
inconfig.inc.php
. - Cleared all website caches using the ojsadmin account.
- Tested in incognito mode.
- The OJS system has not been recently upgraded; it was migrated from another Apache server to Nginx.
I am seeking help from the community. Thank you!