An unexpected error occurred. Please try again later -> After Upgrading To PHP 5.

TheBigK

Well-known member
Mod Note: The Thread Title Need PHP version : 5.4.15, instead of 5. Sorry :-)

I'm performing a test upgrade of my latest Xenforo on a clone server. I successfully upgraded php from 5.2 -> 5.4.15 and the other test server details are as follows.

Apache version: 2.2.24
PHP version:5.4.15

MySQL version: 5.0.96-community

After upgrading the site, I'm getting "An unexpected error occurred. Please try again later." on the site.

I've few questions:

1. What's the right way to fix that error?

2. What's the latest MySQL version I can upgrade to without worrying about errors.

3. If there are issues running 5.4.15; which is the latest PHP I can upgrade to without worrying about errors?
 
1) Need more details. Check your error logs for PHP and your server.

2) We've been running MySQL 5.5.30 without any issues. (test box has 5.6.x, not really done much with it yet)

3) No problems noted with 5.4.15 (that I have seen).

Overall, you shouldn't have any problem with the PHP version. Something may be misconfigured somewhere.


Mod Note: The Thread Title Need PHP version : 5.4.15, instead of 5. Sorry :)

I'm performing a test upgrade of my latest Xenforo on a clone server. I successfully upgraded php from 5.2 -> 5.4.15 and the other test server details are as follows.

Apache version: 2.2.24
PHP version:5.4.15

MySQL version: 5.0.96-community

After upgrading the site, I'm getting "An unexpected error occurred. Please try again later." on the site.

I've few questions:

1. What's the right way to fix that error?

2. What's the latest MySQL version I can upgrade to without worrying about errors.

3. If there are issues running 5.4.15; which is the latest PHP I can upgrade to without worrying about errors?
 
1. I had server admin look at the logs; but there's nothing he could find. I'll check with him again.

2. By the way - the upgrade process is smooth; right? Do we need to change anything while heading over from PHP 5.2 - 5.4?
 
What version of xF? There is a small bug in versions 1.1.3 and prior (maybe 1.1.4?) that if you have debug enabled in config.php, it throws some error notices in the admin.php section, but I don't think that would result in the xF default you're seeing.

I made the upgrade from 5.2 to 5.3, and eventually to 5.4, but I don't recall anything out of the ordinary other than the debug problem above.
 
What version of xF? There is a small bug in versions 1.1.3 and prior (maybe 1.1.4?) that if you have debug enabled in config.php, it throws some notices in the admin.php section.

1.1.5. I read a few posts that say it works perfectly. I'm however not able to go beyond
An unexpected error occurred. Please try again later
 
Can you get into your admin.php section and see if there are any error logs there, or do you get the same error message?

I assume you are running apache and it's been restarted?
 
Can you get into your admin.php section and see if there are any error logs there, or do you get the same error message?

Nope, getting the same error all over the site. Even admin.php throws the same error. I even checked the page source of the error - but it's got just the message and nothing else.

Currently MySQL is being upgraded.
 
Can you get into your admin.php section and see if there are any error logs there, or do you get the same error message?

I assume you are running apache and it's been restarted?

Yeah, we did try restarting apache. Right now MySQL is being upgraded and my server admin says -


As of right now the php shared mysql libraries are broke while mysql updates .
these will not be available again until the upgrade completes. I'll keep you

updated.
 
Thanks a lot folks! Recompiling memcached for PHP solved the error. The site seems to be working fine. Will perform upgrade on my live server soon :-).
 
Good deal, glad my suggestion helped :)

One more question :)

I'm trying to install lightspeed on my server which currently runs apache. Is it necessary to stop apache (or uninstall it) before I attempt to install lightspeed? Or will lightspeed automatically replace apache on port 80?
 
You'll need to install it, but it is easier and you get a GUI panel..

Ok first in ssh do nano /var/cpanel/cpanel.config

find maxmem= and change 256 to 1024 and save

service cpanel restart

Ok go into WHM and go to the LS panel link

Ok after you see the link, click it..

http://awesomescreenshot.com/05e1by1m53

Starting from the left your gonna be doing all 3 circles you see in the screenshot

Ok 1st one, if you already have a key enter it there. If not browse to where you downloaded trial.key on your computer. Do not switch from Apache yet.

Once that installs you'll see it says 4.2.2 and new version in avail.. that's because it is a bug, click it and then click on force reinstall, now you'll really have 4.2.2 and not the visual bugged 4.2.1

ok second circle.. enable easy apache intergration

third circle, recompile php.. be sure to check off the check box too.

Once done, click the change to litespeed link and your off!
 
Back
Top Bottom