• Patrick Steil

    (@patrickchurchbuzzorg)


    Hello, getting this warning on our WPMU install of this plugin. WP is latest: 4.4 and all other plugins updated to latest as well.

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/churchw9/public_html/wp-content/plugins/tt_cloudflare_wpmu/tt_cloudflare_wpmu.php on line 176 and defined in /home/churchw9/public_html/wp-includes/wp-db.php on line 1246
    There are currently 26 blogs running on this server.

    Here is the error in a screenshot:
    http://screencast.com/t/rCLBPDPd

    If I need to purchase the pro version to get this fixed I am good with that, thanks!
    Patrick

    https://ww.wp.xz.cn/plugins/tt-cloudflare-wpmu-plugin/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Patrick Steil

    (@patrickchurchbuzzorg)

    I reported this 4 months ago with no answer. I am actually getting these 4 errors showing up in my error log. They don’t seem to be hurting anything, but it makes me feel like this plugin is not very clean / trustworthy.

    Let me know if you want to transfer control of the plugin to another developer, thanks.
    Patrick

    Thread Starter Patrick Steil

    (@patrickchurchbuzzorg)

    In fact, why is this code even being executed except when I create new sites in my MS setup?

    Thread Starter Patrick Steil

    (@patrickchurchbuzzorg)

    Update, still getting this error 14 months later… great…

    Thread Starter Patrick Steil

    (@patrickchurchbuzzorg)

    Ok, I fixed it myself…

    Replaced line 176 with this:

    //original code erroring out
    //$blog_list = $wpdb->get_results( $wpdb->prepare( “SELECT * FROM “.$table_prefix.”blogs ORDER BY blog_id” ) );
    $ptable = $table_prefix.”blogs”;
    $blog_list = $wpdb->get_results( $wpdb->prepare( “SELECT * FROM “.$ptable.” ORDER BY blog_id”, 0 ) );

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Warning on wpdb::prepare()’ is closed to new replies.