Page 1 of 1

500 error But when I turn to Maintenance mode it is work fine

Posted: Wed Sep 16, 2020 5:58 pm
by erik216
My opencart suddenly display 500 error. But when I turn to Maintenance mode it is work.
So anyone can tell me what is the problem I am facing?

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Wed Sep 16, 2020 6:03 pm
by khnaz35
erik216 wrote:
Wed Sep 16, 2020 5:58 pm
My opencart suddenly display 500 error. But when I turn to Maintenance mode it is work.
So anyone can tell me what is the problem I am facing?
Have you change anything recently? Live site url?

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Wed Sep 16, 2020 6:17 pm
by erik216
I can access website when I change to Maintenance mode. But when I turn of Maintenance mode. I can access website once time. But after load it again. It is same display 500 error

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Wed Sep 16, 2020 6:18 pm
by erik216
I did not change any setting

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Wed Sep 16, 2020 6:25 pm
by khnaz35
erik216 wrote:
Wed Sep 16, 2020 6:18 pm
I did not change any setting
Live site url? Is it the whole website throwing error of 500 or only certain pages?

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Wed Sep 16, 2020 6:29 pm
by thekrotek
Check your error log. Nobody will tell you anything by Error 500, it's just a generic error message.

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Wed Sep 16, 2020 6:33 pm
by khnaz35
thekrotek wrote:
Wed Sep 16, 2020 6:29 pm
Check your error log. Nobody will tell you anything by Error 500, it's just a generic error message.
could be Mod_security again ;) Which is why many people complaining around.

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Thu Sep 17, 2020 8:43 am
by erik216
2020-09-16 19:45:25 - PHP Warning: fread(): Length parameter must be greater than 0 in /home/websites/web-shop.xxx.com/content.20180822/system/library/cache/file.php on line 32
2020-09-16 19:45:28 - PHP Warning: fread(): Length parameter must be greater than 0 in /home/websites/web-shop.ks2020-09-16 22:25:06 - PHP Warning: fread(): Length parameter must be greater than 0 in /home/websites/web-shop.xxx.com/content.20180822/system/library/cache/file.php on line 32

The whole website down O0 :choke:

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Thu Sep 17, 2020 8:43 am
by erik216
anyone have idea how to solve it?

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Thu Sep 17, 2020 3:54 pm
by thekrotek
Cache file size is wrong somehow, this is what this error says.

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Thu Sep 17, 2020 6:27 pm
by ADD Creative
erik216 wrote:
Thu Sep 17, 2020 8:43 am
anyone have idea how to solve it?
Have you tried deleting the cache files in storage\cache?

Re: 500 error But when I turn to Maintenance mode it is work fine

Posted: Thu Sep 17, 2020 9:09 pm
by JNeuhoff
If I understand it correctly you get the Internal Error 500 on a frontend page. Please provide more details, e.g. OC version, extensions used, web theme. Also, what's in your server's error.log (ask your webhost for the relevant log entries)?