HTTP 500 caused by classes/observers/listeners/error_log

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.

seems similar to PHP Fatal error: Uncaught Exception: Failed to map the file "/DATA/name of journal/public_html/classes/observers/listeners/error_log" to a full qualified class name in public_html/lib/pkp/classes/core/Core.php:511 - #7 by Fauji_Nurdin .

Thank you for the solution. But unfortunately it’s not working for Namecheap hosting.

if you have access to your Hosting control panel you can view hidden file .htaccess and edit the file