WordPress.org

Forums

Acunetix Secure WordPress
[resolved] Missing argument 2 for wpdb::prepare() And trying to load the rss feed error (3 posts)

  1. SiteDesignUSA
    Member
    Posted 1 year ago #

    Hello and thanks for this plugin.

    I upgraded to wp 3.6 today and started gettin php-fpm errors.

    Setup: php-fpm 5.3 wordpress 3.6, on nginx 1.4 server. Running Centos 6.4

    2013/08/15 12:32:57 [error] 2902#0: *427 FastCGI sent in stderr: "PHP message: PHP Warning: Missing argument 2 for wpdb::prepare(), called in /home/releases/20130815035315/content/plugins/secure-wordpress/inc/swUtil.php on line 137 and defined in /home/releases/20130815035315/wp/wp-includes/wp-db.php on line 992" while reading upstream,

    I see line 137 has this

    $obj->data = $wpdb->prepare($out);

    Seeing how prepare is for query strings and this seems to be just a string, we should be ok. See This Link for the source of that analysis.

    So I changed to

    $obj->data = $out;

    Seems to work.

    The "An error has occurred while trying to load the rss feed!" Error is gone and RSS is working again.

    Look forward to update.

    Thanks.

    http://wordpress.org/plugins/secure-wordpress/

  2. Fill in the Blank
    Member
    Posted 1 year ago #

    Thank you for this workaround!

    Yes I am getting this with WordPress 3.6. On all sites...

  3. Acunetix
    Member
    Plugin Author

    Posted 1 year ago #

    Hello

    The latest update of the plugin should fix this issue :)

    Thank you for your interest in our product!

    Regards,
    Acunetix

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Acunetix Secure WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic