Frequently "A database error occurred while processing this request."

Permalink
Hello,
I have a fully functional concrete5 site (version 5.6.34)

But frequently when people visit my site views a white screen with "A database error occurred while processing this request." They have to reload the page to enter, it's not a permanent error.

How can I solve this error? Is the posibility to custom the style for this white screen error?

thanks!

 
JohntheFish replied on at Permalink Reply
JohntheFish
You may be able to provide a custom screen as you woudl for a 404 or via .htaccess, but consider:
1) if the custom screen accesses the database, and the error continues, you could bring your server to a grinding halt.
2) Better to find the actual cause of the error rather than mask it on the front end.
sopTin replied on at Permalink Reply
Yes, I need to clear the error, but I'm researching and don't find solutions.

The white screen for database error isn't a 404 error.
Gondwana replied on at Permalink Reply
Gondwana
If it's spasmodic, it could be a server load or timeout problem. If you can monitor or increase those things...
jordif replied on at Permalink Reply
jordif
I agree with Gondwana.

I think this error comes up when concrete5 cannot establish a connection with the database.

Are you on a shared hosting plan? Probably the issue has something to do with the server (for instance, hitting the limit of mysql connections...)

If I were you, I'd contact the hosting company (ask them to have a look at their logs and send them any information you have on when this happens).

Regards,

Jordi
sopTin replied on at Permalink Reply
thanks Jordi and Godwana

I was looking the visit stats fro mthe host and don't seem to be hit a limit of connections