The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. SiteDesignUSA
    Posted 3 years 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.



  2. Fill in the Blank
    Posted 2 years ago #

    Thank you for this workaround!

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

  3. Acunetix
    Plugin Author

    Posted 2 years ago #


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

    Thank you for your interest in our product!


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