Missing argument 2 for wpdb::prepare() And trying to load the rss feed error
-
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.
- The topic ‘Missing argument 2 for wpdb::prepare() And trying to load the rss feed error’ is closed to new replies.