Hello PKP Community,
I am experiencing a recurring HTTP 500 error on my OJS installation.
Environment:
OJS Version: 3.5.0.5
PHP Version: 8.2
Hosting: Namecheap Shared Hosting
Problem:
The website works normally, but suddenly all pages return HTTP 500 Internal Server Error.
I found that an error_log file is automatically created in the following directory: classes/observers/listeners/error_log
As soon as I delete this file, the website starts working again.
However, after some time/day the error_log file is created again and the HTTP 500 error returns.
Error inside the error_log
One of the repeated errors is:
PHP Fatal error: Uncaught Error:
Class “PKP\observers\listeners\SendSubmissionAcknowledgement” not found
in classes/observers/listeners/SendSubmissionAcknowledgement.php on line 25
I verified that the parent class file exists:
lib/pkp/classes/observers/listeners/SendSubmissionAcknowledgement.php
The file contents appear to be correct.
Hosting provider response:
Namecheap checked the server but could not identify why the error_log file is being created inside this directory. They suggested disabling PHP error logging, but I believe that would only hide the underlying problem.
Any guidance on identifying the root cause would be greatly appreciated.
Thank you.