• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 An unexpected database error occurred. Please try again later.

Recep Baltaş

Well-known member

yesterday we had a database issue. We have solved it but some users still getinng this error:

An unexpected database error occurred. Please try again later.
It is beacuse of the cache. When they clear the cache, they can browse the site but not everyone know what is even cache. So, is there a way to solve it from the server side ?



XenForo developer
Staff member
If they're getting that, it's because their browsers aren't even hitting your server so you can't fix it after the fact. I could only guess that some extra cache headers have been added somewhere outside of XF, as we actually explicitly disable caching in most cases, though that's probably moot on a DB error page (and browsers won't really aggressively cache stuff unless you explicitly tell them to). Those headers would need to be removed to prevent something happening like this again, but you can't really do much if they're already there.