WordPress.org

Ready to get started?Download WordPress

Forums

Search and Replace
[resolved] Search & Replace plugin breaks sites in newest WP (8 posts)

  1. andisites
    Member
    Posted 2 years ago #

    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. :-(

    http://wordpress.org/extend/plugins/search-and-replace/

  2. Frank
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. magnyz
    Member
    Posted 2 years ago #

    Frank,
    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?

  4. Frank
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  5. andisites
    Member
    Posted 2 years ago #

    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.

  6. eljouaidin
    Member
    Posted 2 years ago #

    Hi!
    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!

  7. circlecube
    Member
    Posted 1 year ago #

    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.

  8. Frank
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic