Moved to new server: An unexpected error occurred. Please try again later.

jgas

Active member
Hi,
I just moved database and files to a new server, the login to the database is correct, the nameservers have been updated.
But now I get this error:

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

http://musicadigitale.net/

How can I understand what kind of error it is?

Many thanks!
 
Thanks Brogan.
I restarted the server but nothing happened.
Which logs should I look at?
I opened the "messages" log and i get lots of these:

Jul 14 04:52:55 legendary named[1118]: error (network unreachable) resolving 'ns2.surfnet.nl/AAAA/IN': 2a00:d78:0:102:193:176:144:5#53
 
Thanks Brogan.
I restarted the server but nothing happened.
Which logs should I look at?
I opened the "messages" log and i get lots of these:

Jul 14 04:52:55 legendary named[1118]: error (network unreachable) resolving 'ns2.surfnet.nl/AAAA/IN': 2a00:d78:0:102:193:176:144:5#53
That is just named reporting problems (presume you are using the same server for DNS?) in /var/log/messages.

You need to check if there are any error logs reported in your forum directory (should be error_log if that is how it's configured in php.ini) or any errors in apache's error logs.
 
Oh thanks!

I get lots of these... forumdisplay.php is a file to redirect the old traffic from vbulletin, from what I recall.. I don't know why it appears everywhere in these logs!

Actually, now the folder structure is not /var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php anymore,
but it should be something like /home/musicadi/public_html//library/XenForo/Autoloader.php

Code:
[15-Jul-2013 12:19:08 America/Detroit] PHP Warning:  require(/var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/musicadi/public_html/forum/forumdisplay.php on line 11
[15-Jul-2013 12:19:08 America/Detroit] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/musicadi/public_html/forum/forumdisplay.php on line 11
[15-Jul-2013 12:19:09 America/Detroit] PHP Warning:  require(/var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/musicadi/public_html/forum/forumdisplay.php on line 11
[15-Jul-2013 12:19:09 America/Detroit] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/musicadi/public_html/forum/forumdisplay.php on line 11
 
Make sure you updated the DNS Zone on the old server to redirect traffic to the new one

EDIT: Actually, make sure that the MySQLi connection adapter is turned on, on the new server. I was having this same problem when I moved to a new server, and this was the reason.
 
Last edited:
Actually, now the folder structure is not /var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php anymore,
but it should be something like /home/musicadi/public_html//library/XenForo/Autoloader.php
Make sure your base for your web server definition is pointing at the new directory. It almost appears that it is pointing at the old installation.
You will have a directive in your vhost config file for that server (which points at your old installation)
Code:
<Directory "/var/www/localhost/htdocs">
Make sure it now points to the correct location and restart apache.
Also check your .htaccess and make sure that any locations in there have been updated as required.
 
The problem was xcache not installed, but now I managed to make it work.
I only need now to rebuild apache optimizing it for xenforo!
Could you please recommend me any tutorial related to our dear xenforo, guys?
 
Make sure you updated the DNS Zone on the old server to redirect traffic to the new one

EDIT: Actually, make sure that the MySQLi connection adapter is turned on, on the new server. I was having this same problem when I moved to a new server, and this was the reason.

Yep I just moved to a dedicated server and had the same issue. The quote above fixed the issue for me. Awesome!!!!
 
Top Bottom