1. 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.

Discussion in 'Troubleshooting and Problems' started by Recep Baltaş, Mar 21, 2015.

  1. Recep Baltaş

    Recep Baltaş Well-Known Member

    Hi,

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

    Code:
    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 ?

    Thanks.
     
  2. Mike

    Mike 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.
     
  3. Recep Baltaş

    Recep Baltaş Well-Known Member

    We are behind Sucuri Firewall. This is the setting at the momoment:

    Sucuri.jpg

    I think I should disable cache after same problems ?
     

Share This Page