Broken in WP 3.x
-
It was once a great and useful plugin, unfortunately it has not been updated to work with WP 3.9.
-
Seems not to work anymore with WP 3.9.1
I really loved this plugin 🙁
I explain this in this post It’s not that the plugin doesn’t work with 3.9+, it does. It just doesn’t work on 3.9+ when PHP 5.5+ is in use.
It is possible to get the plugin working again if you insert this line:
$sardb = mysql_select_db(DB_NAME, mysql_connect(DB_HOST, DB_USER, DB_PASSWORD));
Before this line:
// Pre-2.6 compatibilityIn the file search-and-replace.php . Please note that this opens a second connection to your database. Advise you only enable the plugin to use it and then disable it again. Hopefully the author will release an updated version soon.
Thanks a lot!
Appreciate your posting a fix.
Just a note – I am using PHP 5.4.x. and it does not work with PHP 5.4.x either.
And a thought – If a plugin does not work with the current version of WP and the current version of PHP, it just does not work and is actually broken until the code is incorporated and the plugin download is updated and working in the current WP.
It has a bug. It needs to be fixed. But it is not correct to make a blanket statement that it doesn’t work with 3.9 when it does for some people.
If the author doesn’t fix it in a month or so I will try to fix it myself since a friend of mine uses this plug in frequently.
Terrific! You might consider just going ahead and forking it now with your updates and placing in the repository.
It has been almost a year and a half since it was updated. The last time this was updated was for the per-release of WP3.5
You can also write a mail to me, I will add the user to the repository to develop the plugin. Currently is my time small, to small for this plugin.
I’m also too busy for this, and I’m not particularly qualified to work on it, but I’ll try to convert the mysql_ calls into $wpdb object calls. If it works, I’ll mail you about getting it into the repository.
I have a version ready to be tested for anyone who’s interested in helping. As always, back up your database before using this plugin.
I need to update the translation files still, and the zip file below does not contain the plugin folder and all of its contents. The zip below only contains a changed version of search-and-replace.php, which should be used to replace the one in the wp-content/plugins/search-and-replace folder.
Thanks for the effort. I installed the update file to a site in development, search seems to work but unfortunately the replace function is not working.
Replace works fine for me and the web developer I gave it to for testing. What exactly are you doing?
Thanks for the reply!
Find and replace from /ovi to /neu . It is related to changing the site’s url and needing to replace the src for images in uploads folder and the instances when they are used in content.
It finds all the instances of /ovi fine.
I am unable to replicate this.
I put several URLs into a WP database like this:
http://blah.com/ovi/1.jpgThen I used the plugin to change them to /neu and this is what I ended up with:
I think if it’s not working for you, that it’s some issue other than the WP3.9 database changes. You did say it wasn’t working for you prior to those changes. Perhaps you have a character set problem.
Thanks for the edited file, RonG! I just used the test file on a rather large database, and it worked perfectly!
The topic ‘Broken in WP 3.x’ is closed to new replies.