• Resolved djp1900

    (@djp1900)


    A few months ago I accidentally deleted almost everything from my server. my backups were not thorough and I was only able to restore part of some of my sites. One in particular has a bunch of images that are now gone. I have been manually replacing the images but I have thousands, it’s a real pain. I downloaded this plugin to search for and replace an image url with the updated image urls, but it’s not working.

    I have tried the search feature at the top. it finds the image. I then try to replace the image with the new one. I see this:

    Searching post content …

    … in table posts, Field: post_content: || – 2 entries found.

    So, it finds the image, but I don’t see any indication the the replacing of the url with the new one has taken place. There is nothing on the plugin screen that says “it worked”, and the image path is NOT updated on my site.

    One thing I was thinking was that in my posts, where the images are that I am trying to replace, each image has a medium, large and full size option. I use the large size in my posts, when the user clicks on the image they are shown the full size image. So, if I replace an image with this plugin, it probably won’t create medium and large versions of image at the same time for display in the post, right? I still see a blank frame where the image was in my posts… title, caption, and alt text are still there but no image. Hopefully that makes sense. Will this plugin even work for me? How is everyone else replacing their images? Are they being replaced in a gallery or in a post, like mine?

    https://ww.wp.xz.cn/plugins/search-and-replace/

Viewing 1 replies (of 1 total)
  • on the Plugins page, scroll down to Search & Replace, click Settings.
    Select “search only!” or “search and replace!”

    But don’t use this plugin, it doesn’t handle “serialized data”.

    Many plugins use “serialized data”, several settings put into one field in the database. The length of each setting string is stored along with the setting.

    If you use a tool that replaces text without replacing the length of the text in the serialized data, your data is messed up for the plugin.

    The Changelog for this plugin says “Exclude serialized data from replace function”.

    Find another tool. I’m trying “WPEX Replace DB Urls” which specifically says “Serialized strings are also supported. You can replace a URL with another.”

Viewing 1 replies (of 1 total)

The topic ‘Search & Replace not working for me’ is closed to new replies.