Transferring domains, I migrated a WordPress database using the export/import functions in phpmyadmin.
Everything worked as intended, until I tried to change permalink appearance in the WP dashboard. Since then, all posts have disappeared from the Posts tab in the WP dashboard. The posts still exist in the DB.
Measures I have tried already:
I even tried importing the DB on a fresh install of WP to see if the posts would show up. Even without modifying the permalinks, they do not.
I can create new posts and they show up in the dashboard without any problems. The permalinks also display properly. I can also visit the old permalink-style URIs of the existing posts and they display properly.
Any further ideas on what to try would be great. My client has existing content they do not wish to lose editing privileges to in the dashboard. Thank you!
Transferring domains, I migrated a WordPress database using the export/import functions in phpmyadmin.
Everything worked as intended, until I tried to change permalink appearance in the WP dashboard. Since then, all posts have disappeared from the Posts tab in the WP dashboard. The posts still exist in the DB.
Measures I have tried already:
I even tried importing the DB on a fresh install of WP to see if the posts would show up. Even without modifying the permalinks, they do not.
I can create new posts and they show up in the dashboard without any problems. The permalinks also display properly. I can also visit the old permalink-style URIs of the existing posts and they display properly.
Any further ideas on what to try would be great. My client has existing content they do not wish to lose editing privileges to in the dashboard. Thank you!
A great tool for WordPress database and domain migration is Search-Replace-DB
. It does all the rename work for you and even takes care of serialized data.
You can find here.
What you should do:
./srdb
http://new-domain.com/srdb
You should see something like this:
Database credentials should be detected automatically. If not, you put it in the wrong place.
dry run
to see if it works.live run
to replace.Note: This only takes care of the database. If you have domain names hardcoded in your theme files, like CSS, PHP or JS, you have to manually search and replace them.
Hope this helps.