Search Regex
Error with WP 3.5 (2 posts)

  1. jcmilton
    Posted 3 years ago #

    Hello, this plugin has worked perfectly for me until I upgraded WP to 3.5. Now when I try to do a Replace I get this error message at the top of the screen:

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/xxxxx/public_html/wp-content/plugins/search-regex/searches/post_content.php on line 10 and defined in /home/xxxxx/public_html/wp-includes/wp-db.php on line 990

    I never got this error message until I updated to 3.5.

    Any ideas what this means? Is there any known incompatibility with WP 3.5? Is a new version of this plugin going to be produced? Thanks!


  2. termik
    Posted 3 years ago #


    I also got this problem after upgrading WP to 3.5.

    I found some solutions, but with every plugin you need to edit this one line differently:

    $wpdb->prepare( "SELECT * FROM some_table WHERE ID = $id AND name = $name" );
    $wpdb->prepare( "SELECT * FROM some_table WHERE ID = %d AND name = %s", $id, $name );

    I don't have idea how to edit this...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Search Regex
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic