Title: Errors after moving site
Last modified: August 19, 2016

---

# Errors after moving site

 *  [sharonf](https://wordpress.org/support/users/sharonf/)
 * (@sharonf)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/errors-after-moving-site/)
 * 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)

 *  [John H](https://wordpress.org/support/users/wpbloghost/)
 * (@wpbloghost)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/errors-after-moving-site/#post-1025627)
 * Hard to say. Make sure you did the transfer correctly. I have some [videos on a tutorial page](http://wpbloghost.com/wpbloghost-home-school-for-wordpress/#wpschool)
   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](https://wordpress.org/support/users/sharonf/)
 * (@sharonf)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/errors-after-moving-site/#post-1025677)
 * 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!!
 *  [John H](https://wordpress.org/support/users/wpbloghost/)
 * (@wpbloghost)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/errors-after-moving-site/#post-1025693)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [John H](https://wordpress.org/support/users/wpbloghost/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/errors-after-moving-site/#post-1025693)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
