Support » Plugin: Search & Replace » [Plugin: Search and Replace] Search & Replace plugin breaks sites in newest WP

  • Resolved andisites


    I’ve always loved Search & Replace, but I can’t use it anymore…too much heartbreak, unfortunately. The last three sites I used it on (all on WP 3.3.2) broke terribly. All text widgets disappeared–and weren’t even in the Inactive section for me to restore from–and in two of the cases theme customizations were completely undone.

    Thank goodness for nightly backups, but they weren’t able to solve everything.

    I’ll miss you, Search & Replace. 🙁

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Frank Bueltge


    I have active the plugin in the current dev and also 3.3.2; but I dont have problems; maybe you have replace text in the options of widgets? the first area on this plugin replace in all tables, in you start it.

    I don’t understand your comment. I have this plugin installed but don’t see anything about “options of widgts”. Can you clarify and elaborate pls?

    Plugin Author Frank Bueltge


    the options of widgets was saved in the database, table options. If you start an search/replace about the completly database, all tables, then replace the plugin all strings, there he found, also the options of widgets, if she have the string. Its important, that you check this before, where is the string and was is the result.

    Sorry, I don’t understand at all. The main problem is that when I use the Search & Replace plugin after changing the URLs in the wp_options table, all of the text widgets disappear.

    Great plugin!
    However, how do we search and replace text in multiple lines?

    For example, I am trying to change this text :

    – Day 1 is sunny
    – Day 2 is cloudy

    – Day 7 is stormy

    With this text :

    This week’s weather is very changing

    Thanks in advance for your help!

    Meaning that text widgets are stored in the database as a serialized data. Serialized data needs to know how many characters are in the text (or any data), so if you replace a string with a different length string the length of the value in the serilaized data changes and unless you update the length value as well the serialized data becomes corrupt. It’d sure be nice if the plugin supported this, but it’d get pretty complex to read and write serialized data, but I’d hope a workaround would be to have a setting to omit text widgets from the replace Frank?

    Moral of the story, don’t use this to replace text in your text widgets because it will break them.

    Frank refers to the “All – only search!” field to test your search first and see if the search is found in your text widget(s). Once you see if it is, then I’d recommend updating the text widgets manually first and then continue with the search and replace.

    Plugin Author Frank Bueltge


    Yes, the first area function search in all tables! Maybe an workaround is an check for dont change seriallized data. It is important, that you create an backup and an search before you replace.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Search and Replace] Search & Replace plugin breaks sites in newest WP’ is closed to new replies.