- This topic has 4 replies, 2 voices, and was last updated 11 years, 11 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Warning: Missing argument 2 for wpdb::prepare()
Hi I am getting the following error message since upgrading to wordpress 3.5. Can someone tell how to resolve this issue?
Warning: Missing argument 2 for wpdb::prepare() called in . . . tags.php on line 318 and defined in . . . wp-db.php on line 990
This should not be coming from any of our plugin.
You deleted the reference to the file and line number of the file that is triggering this error so I can’t tell you exactly which plugin or theme is causing this. Copy and paste the full error and I will be able to tell you exactly which one is causing this error.
Thanks Key. See below:
Warning: Missing argument 2 for wpdb::prepare(), called in /hermes/waloraweb039/b1567/moo.spiritinsideoutorg/newadventures/wp-content/plugins/nextgen-gallery/lib/tags.php on line 318 and defined in /hermes/waloraweb039/b1567/moo.spiritinsideoutorg/newadventures/wp-includes/wp-db.php on line 990
Hi Key,
I now see that this is a nextgen gallery and wordpress 3.5 issue. Apparently others are having the same issue.
http://wordpress.org/support/topic/missing-argument-wpdb-in-35-final
Yeah WordPress changed the behavior of the “wpdb::prepare()” function in WP 3.5. You need to pass the user inputs as arguments to that function. If user input is not present then the prepare function should not be used, instead the plugin should directly execute the query.