Pro Editor doesn't show content after updating links

Hi,

I’v migrated my website from localhost to the hosting server.
I made the standard changes to the URLs in the DB at wp_options.

Everything seemed to be working well when I visited my WP dashboard and the website itself, except for the links which where still using “http://localhost/wordpress/”.

At this stage I could also use the Pro Editor and visite and edit the pages at “Content”.

For the broken links, I used “Velvet Blues UpdateThis text will be hidden URLs”, and selected all the options except for the last, which is “Update all GUIDs…”. And I updated the URLs.

At this stage I couldn’t see the content in the Pro Editor anymore. I could see the header and footer but not the content with its pages.

How can I update all the “broken links”, without loosing the “connection” with the pages build in Theme X Pro?

Thanks!

Hey Rik,

I believe Velvet Blues could not update the whole database and doesn’t support serialized data. You need to run a search and replace plugin that can do both like the Better Search & Replace plugin.

To learn how to use that, please refer to the plugin page or read this third-party article: https://kinsta.com/knowledgebase/wordpress-search-and-replace/#2-better-search-replace-plugin

Hope that helps.

Hi Christian,

Thank you for your advise. I did use the Better Search Replace plugin, and it seems to have worked partially.

All the links where changed correctly except for the URLs used in the Pro theme itself (e.g. URLs in buttons or URLs of used media).

Must I change these links via de Pro Editor, or is there another way to do this more efficiently?

Thanks!

Hello Rik,

Using the Better Search and Replace plugin, please also search for http:\/\/localhost\/wordpress and replace it with http:\/\/example.com. (please replace example.com with the correct domain of your site).

Please make sure to backup your database before making any changes.

Hope this helps.

Hi Jade,

I now see that the Better Search Replace plugin did the job after all.
The first time I used it, the ‘test checkbox’ was checked (whoops).

Unchecking this box was enough to replace all the links correctly.

Thanks and cheers!

You’re welcome. Glad we’re able to help.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.