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

XF 1.5 Solved - An unexpected error occurred. Please try again later.

#1
Right, so I went to bed last nifht and everything was working. Woke up this morning and when I try to get onto my forum, I get this

"An unexpected error occurred. Please try again later."

I've not done anything to any settings. I've checked the server error log, and nothing. I've checked the forum error log, nothing since 27th July.

I have asked the host and no changes have been made in the background any settings on the servers.

Does anyone have any advice on what I should do now?

Edit: forgot link http://forum.elgrandoc.uk
 
Last edited:

whynot

Well-known member
#2

Chris D

XenForo developer
Staff member
#3
You have to clean up the mess.
That could be a false positive, that sometimes happens.

It would be interesting to know what the "detailed report" says. If something happened ovenight, it's highly unlikely Norton will have picked it up and started blacklisting it already.
 

Mike

XenForo developer
Staff member
#4
If you access the installer, it appears that your host has enabled safe_mode, which XenForo actually requires being off.

That said, you may be able to temporarily workaround it by disabling the file cache.
 
#5
OK, that Norton warning definitely looks like a hack. How can I even start to clean up the mess? Not dealt with anything like this before.
 

Chris D

XenForo developer
Staff member
#8
Well, first step is to switch safe mode off, regardless. Whether it was already on or not, that should be eliminated. It's worth noting Mike's point, however, that the specific error on the install page suggests that the back end file caching is currently triggering the safe mode restriction error, so you may be able to disable that (in config.php) and that might be a workaround to get the site up and running.

As I stated earlier, the Norton thing is actually more likely to be a false positive than anything so I wouldn't worry about that, yet. Focus on getting the site up and running first.

You could try re-uploading the files from the current version you have installed (1.5.8), but I don't think that will make a difference while safe mode is enabled.
 

Mike

XenForo developer
Staff member
#9
An initial step would be to disable the file cache that you have configured in config.php. It appears to be what's causing this error. (Go to <url>/install/ and you'll see an error message.)

However, safe_mode is a blocker to XenForo installation, so that would have to be disabled. Note that safe_mode doesn't even exist in PHP 5.4+. Presumably you're running PHP 5.3, which hasn't been a supported PHP release since 2014 (http://php.net/supported-versions.php) so upgrading would be a good idea anyway (and would resolve the safe_mode issue).
 
#10
What do I need to change in config.php to resolve the issue? Am I looking in the right place?

/public_html/forum/library/Zend/config.php
 

Mike

XenForo developer
Staff member
#11
No, it's the library/config.php file. There's no external caching used out of the box, so this is something that you would have had to explicitly add to/enable in the file.
 
#12
You absolute legends. Thank you massively for your help. It's up and running again now.

I'll leave that set to false (think I turned it on the other day, so took a while to trigger an error).

Top level customer support right there. Thank you.