Addressing wpdb::prepare() Errors After Upgrading to WordPress 3.5
Seeing errors like this after
upgrading to WordPress 3.5?:
“Warning: Missing argument 2 for wpdb::prepare(), called in /home/adorable/public_html/wp-content/plugins/nextgen-gallery/lib/tags.php on line 318 and defined in /home/adorable/public_html/wp-includes/wp-db.php on line 990”
Answer: That’s a security warning and related to the nextgen library (or the plugin you are using) not calling wpdb in a secure way. Nothing is broke per se… but that plugin needs updated and is insecure.
WordPress version 3.5 introduced this security warning to alert site owners to plugins that were being sloppy in calling that particular function. This particular sloppiness can increase the odds of your site being hacked… so the message is useful!
This is one of many reasons I recommend a one week wait before making the WordPress 3.5 upgrade…. Give these plugin devs some time to catch up and clean up!
~ Kim ~
Simple Tech Tips For Marketing