Found the solution 🙂
The theme file (mentioned in the error) was using $wpdb->prepare in insecure manner. Changing following did the trick. The warning was earlier being issued by wordpress since it now wants developers to parse variables securely instead of directly parsing in the statement. So another argument is a must in $wpdb->prepare call in such cases.
For example you can change
$wpdb->prepare( “SELECT * FROM table WHERE id = $id” );
to
$wpdb->prepare( “SELECT * FROM table WHERE id = %d”, $id );
Cheers,
Tushar
Just to update, I am seeing this error on certain themes only especially themes from one particular developer (blocks, blocks2, elegent box etc)
If I choose some other themes, this error disappears but I somehow don’t want to change the theme. Please help.
Hi,
I am also getting EXACTLY the same error after I upgraded to 3.5. Please help me.