500 Internal Server Error on Record Editorial Decision

Hello!
Editors reported a problem with endless loading when pressing Record Editorial Decision button. No mail is sent with action even though mail works fine in other cases. The action is recorded (e.g. if a submission is declined, it is moved to archives)

Browser console reports 500 Internal Server Error:
500 Internal Server Error
Version HTTP/1.0
Transferred1.53 KB (0 B size)
Referrer Policy strict-origin-when-cross-origin
Request Priority Highest

Server error log records the following around the event:

[php7:warn] [pid 225781] [client ipaddress] PHP Warning: require_once(/home/traffic/public_html/classes/file/LibraryFileManager.inc.php): failed to open stream: No such file or directory in /home/traffic/public_html/lib/pkp/includes/functions.inc.php on line 25, referer: https://traffic2.fpz.hr/index.php/PROMTT/workflow/index/9/3

[php7:error] [pid 225781] [client ipaddress] PHP Fatal error: require_once(): Failed opening required ‘/home/traffic/public_html/classes/file/LibraryFileManager.inc.php’ (include_path=‘.:/usr/share/php’) in /home/traffic/public_html/lib/pkp/includes/functions.inc.php on line 25, referer: https://traffic2.fpz.hr/index.php/PROMTT/workflow/index/9/3

[php7:warn] [pid 226029] [client ipaddress] PHP Warning: require_once(/home/traffic/public_html/classes/file/LibraryFileManager.inc.php): failed to open stream: No such file or directory in /home/traffic/public_html/lib/pkp/includes/functions.inc.php on line 25, referer: https://traffic2.fpz.hr/index.php/PROMTT/workflow/index/20/3

[php7:error] [pid 226029] [client ipaddress] PHP Fatal error: require_once(): Failed opening required ‘/home/traffic/public_html/classes/file/LibraryFileManager.inc.php’ (include_path=‘.:/usr/share/php’) in /home/traffic/public_html/lib/pkp/includes/functions.inc.php on line 25, referer: https://traffic2.fpz.hr/index.php/PROMTT/workflow/index/20/3

We are using OJS 3.3.0.11
|OS platform |Linux|
|PHP version |7.3.31-1~deb10u1|
|Apache version |Apache|
|Database driver |mysql|

It seems like a permission problem, but all the required permissions seem to be OK.

I’d be grateful for any help!

Hello @Promet ,

I would suggest changing php version to 7.4 and try again.
For me it helped on many 500 server errors.

Best regards,
JHRS

Hi @Promet,

Your installation of OJS appears to be missing a file: classes/file/LibraryFileManager.inc.php

Regards,
Alec Smecher
Public Knowledge Project Team

Thank you for the reply.
The file classes/file/LibraryFileManager.inc.php is there, and the permissions seem fine (I could be wrong).
Could it be a php version issue? There is no /usr/share/php folder on my server. The php related folders in the share folder are all named differently.

Everything I have found so far points to a pathing issue, but I can’t find a solution.

Kind regards,
Nikola

Hi @Promet,

It still looks to me like a missing file. Are you sure the name is exactly as it should be, including capitalization? Is it in the right directory (for example, /home/traffic/public_html/classes/file and not /home/traffic/public_html/lib/pkp/classes/file)?

Because the .inc.php files are PHP classes, you can go to them directly by URL and get a blank response. For example, this one is in the same directory and behaves as expected (blank page):

https://traffic2.fpz.hr/classes/file/IssueFileManager.inc.php

However, this one gives a 404 “not found”:

https://traffic2.fpz.hr/classes/file/LibraryFileManager.inc.php

Regards,
Alec Smecher
Public Knowledge Project Team

Dear @asmecher ,
thank you very much for your help and prompt replies!

I managed to solve the issue in a bit of a weird way. Even though I quadruple checked the path and filename for classes/file/LibraryFileManager.inc.php and it all seemed OK, something told me I should try to rename the file. I just copy-pasted the rename ‘LibraryFileManager.inc.php’, it was exactly the same as before, but it worked. I have no idea how the filename encoding got corrupted or what exactly happened, but it all works now, with no errors in the log.

Thanks again!

Kind regards,
Nikola

1 Like