Jump to content

500 Error Caused by Automatic Permission Change on controller.php File in PrestaShop 1.7.5.2


Jixart31

Recommended Posts

Hello.

I'm encountering a 500 error on my website, and it seems to be caused by the controller.php file, which automatically changes its permissions to 204. When I reset the permissions to 644 and clear the cache, the site works again. However, after 5 to 10 minutes, the 500 error reappears!

I haven't been able to identify the source of the problem, and I couldn't find any similar issues on the forum.

Has anyone else experienced this problem?

PrestaShop version: 1.7.5.2 PHP version: 7.3

The site was functioning correctly, and this issue appeared suddenly without any new module installations or updates. The bug started occurring out of nowhere. There's no console error or error in debug mode, except when the issue occurs, where it reports that the Controller class is not found because the controller.php file has been set to 204 permissions.

I ran a script for prestashop to identify modified files from original versions and everything looks fine.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Hi Jixart31,
Since weeks, I can also see that my Prestahop main files (under controllers, classes, etc.) are automatically changed always at the same time (3:45 AM).
I cannot find how it's done therefore I would appreciate if you can let me know what you found on your site:

-was it done by a Prestashop cron process
-a specific call was done?
-??

Thanks in advance for your help.

Best
Bads

Edited by baden32
no terminated enter (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...