Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   [SOLVED] Error in bfa_header_config.php after migration (http://forum.bytesforall.com/showthread.php?t=4159)

paulalford Nov 1, 2009 12:52 PM

[SOLVED] Error in bfa_header_config.php after migration
 
Hi,

I have just migrated my site over to Rackspace cloud. Everything loaded fine, db went over without a hitch. DNS records are changed and a ping and tracert shows all in order. But when I access the site, first it is absolutely dog slow (think of access through a 56kbs modem). The site loads OK, but the first thing you notice is that the header image isn't displaying and only shows the alternate text. The second thing that happens is that when I am trying to log in to the WP Admin area it throws me an error "Page not found" and an "oops, you're looking for something that's not here". wp-login.php does exist. Checking the logs I find this error message:

[01-Nov-2009 13:24:06] PHP Warning: array_rand() [function.array-rand]: First argument has to be an array in /mnt/stor2-wc2-dfw1/531252/www.nameofdomain.com/web/content/wp-content/themes/atahualpa/functions/bfa_header_config.php on line 279

Not a clue what's happening as all was beautiful on the old server.

Any help much appreciated.

Cheers
Paul

juggledad Nov 1, 2009 04:47 PM

If you did a COPY of your database, then the Wordpress settings are most likely incorrect. Remember how in the WordPress dashboard->settings you set a 'ordPress address (URL)' and a 'Blog address (URL)'? They may be incorrect.

You can fix this by going ito the database with phpMyAdmin and looking in the wp-options table and changing the data

I always suggest doing an SQL export - editing the file to change the address from the old blog to the new, then importing the file into the new database,

paulalford Nov 1, 2009 04:55 PM

Hi juggledad,

Thanks for the response.

I did an SQL export for the db from phpMyAdmin and an import at the other end. All that went fine. All the posts and pages are showing up correctly when I access the site, it's just when I try to login using the link in Meta that it throws the error and writes the php log posted above. The new domain on the Rackspace server is exactly the same name, with the DNS records pointing to the new IP. The old files have been moved on the old server to stop any potential conflict.

I've been through WP-Options and all the links seem to be fine.

I think the problem might be here:

/mnt/stor2-wc2-dfw1/531252/ (from the log error thrown in bfa_header_config.php)

This is the new absolute mount point on the Rackspace Unix box.

Possibility maybe?

paulalford Nov 1, 2009 05:10 PM

SOLVED:

I re-read your post again, and again and.... :o

The site with the problem is located under the main site, and I hadn't re-created that sub-folder, instead loading the files in the root.

Thanks for that. I've moved about 20 domains this weekend and I think it was a case of not seeing the wood for the trees!


All times are GMT -6. The time now is 10:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.