• I just moved my site to a new server. The site comes up but displays an error at the top of the page.

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/content/m/u/s/mustangalley/html/wp-includes/widgets.php on line 1045

    Any help sorting this out would be most appreciated!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hard to say. Make sure you did the transfer correctly. I have some videos on a tutorial page showing how to transfer WordPress.

    I assume since you can see your home page you updated your config.php file with the correct database info?

    Make sure too that your widgets.php file was transfered over.

    Thread Starter sharonf

    (@sharonf)

    Thanks for your help. I’m pretty sure that I transfered correctly. I’ve gone through the process before. So, I knew what to expect. The site is working perfectly on the original server. I copied the DB files, did a search and replace on all the urls, created a new DB and imported. I also took all the WP files from the original server and moved them to the new site. I changed the config file. The worked but with an error msg at the top. It seemed to indicate that some path was not pointing where it should. I couldn’t figure out how to fix that. I decided to try Plan B.

    This time I started fresh with a new WP install. Did an export/import from the old (working) site to the new. Figured I’d just manually re configure the plugins I’d used. That went well EXCEPT for some reason the new install doesn’t think I have any categories. Any thoughts on that? I noticed that the category ids are different. I don’t know what to do about that.

    Any thoughts on getting either of these approaches to work would be most appreciated!!

    Not sure about the categories.

    However, on your first method, how did you download your files from the original server? Did you use the hosting’s zip and download function?

    If so, make sure you zipped up and downloaded ALL the files. Sometimes in your hosting control panel (depending on which host) only so many files are in view and therefore can be “Check All” at once.

    Widgets.php is at the bottom of the list, maybe that file was on page two in your file manager and was never included in the zip and downloaded file?

    Just a though.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Errors after moving site’ is closed to new replies.