I just finished migrating a wordpress website into a new website (hosted on godaddy's managed wordpress). Here is what I did:
- Exported the database using this plugin: https://wordpress.org/plugins/wp-migrate-db/
- Changed my site-url and home-url to the new ones
- Did a search and replace for 'wp_' in the exported db for the correct 'wp_xxx' in production
- imported the backup into prod.
- copied over the entire wp-content onto the new server.
Everything worked well except for two issues that I ran into (wondering what happened):
The first issue was with the pages templates. While the pages (in the db) and templates (in the source) were transferred just fine. I lost the association of page -> template. I had to go in to the production dashboard and re-select the pages' templates.
Something happened with all my media. Basically, the media files moved over just fine to the prod server but when I go into the wordpress dashboard > media, they all appear like gray files. Also, I cannot add them to any posts (as featured images). However, if I grab the media item's url and just paste it into my address bar, it is shown just fine (which means that they are where they are supposed to be on the server, and the server is serving them up).
I just don't understand why these issues occured. Where could I have lost information given that I moved over all of wp-content and the entire db?
Thanks in advance.