PDA

View Full Version : Server move: nothing works.


Peter Ostry
03-13-2009, 04:16 PM
No response from vBulletin.com but we are really in trouble here ...
Excuse me to post it here either.

===========================================

I get this on top of the start page and only this (on a blank page) when I try to log in into admincp:

------------------------------------------------------------
Warning: array_keys() [function.array-keys]: The first argument should be an array in [path]/includes/functions.php on line 4107

Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 4107
------------------------------------------------------------

vBulletin 3.7.5 PL1. We want to launch a new site today, moved the whole webroot and the MySQL database to another server. The files were moved via the shell and using a tar archive, the database was moved by mysql (not phpMyAdmin). I adapted the config.php and we don't use any special database thingies, no memcache, datastore, nothing that is mentioned in the various posts I found about this issue.

I see an incomplete forum start page but cannot login into the admin.cp

If it helps, there is also a MODx installation on this server that doesn't work either. It looks like a path/include problem. The document root of the two servers is different. I don't see a difference in php ini.

Can I fix this somewhere in a file or directly in the database?
Needless to say, its very urgent, thanks in advance.

Lynne
03-13-2009, 04:18 PM
Try disabling your modifications/plugins in your config file and see if then you can login to your site.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

Peter Ostry
03-13-2009, 05:06 PM
No change with disabled hooks.

On the start page I see the forum template but without the forums. I found the the old http address in the database and changed it to the new one but it didn't help either. The launch is spoiled and it's getting hotter here ...

I have no idea what could be the cause for this path or include error. Apache, PHP, vBulletin, a config file? Is there something in the MySQL database I could check? Permission problem probably, should I try to chmod 777 everything? Or can we grep the whole site for a certain expression/path/setting in some file?

(MODx works almost in the meantime btw, this was another problem.)

veenuisthebest
03-13-2009, 05:18 PM
Upload tools.php in admincp/ and run the options like datastore clear, cache clear etc .

Peter Ostry
03-13-2009, 05:43 PM
Upload tools.php in admincp/ and run the options like datastore clear, cache clear etc .

Whooops!
That did it, a thousand thanks!

Could you explain in short what happened?

veenuisthebest
03-13-2009, 05:48 PM
I am glad it worked. I was sure tools.php is going to work as I had been in the EXACT SAME situation 2 days back when I was experimenting with a new server. tools.php had been a life saviour for me.

Not sure, but I guess the database was storing stuff from your previous server, that got freshen up on clearing it from tools.php ;)

Peter Ostry
03-13-2009, 07:49 PM
Upload tools.php in admincp/ and run the options like datastore clear, cache clear etc .
Finally, as we do the final cleanup, I am relaxed. But I think this hint from veenuisthebest should make it into the docs for server migration. Currently the docs give the impression that tools.php is a delicate, even dangerous tool, only to be installed after advice of a support technician.

In fact, if we had had this knowledge today, I would have migrated the website alone in less than one hour. Without, we were two people working desperately 6 hours with all kinds of server configurations and database fiddling. The other guy missed 2 appointments and we missed the deadline. Such a stunt is not necessary.

Kyle55155
06-10-2010, 11:51 PM
Try disabling your modifications/plugins in your config file and see if then you can login to your site.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

similar issue here.

I disabled my plugins per your instructions and now i can get in. Of course minus all my plugins. How to I fix this?

Lynne
06-11-2010, 03:09 AM
You'll need to go through your products/plugins one-by-one to figure out which one is causing the issue.