We may receive the warning message Missing argument 2 for wpdb::prepare() when upgrade to the new WordPress version (3.6 is my case) due to the incompatible regarding function calling inside a particular plugin or theme.
In order to fix this quickly or hide this warning and keep waiting for new version of plugin or theme, we can turn off the displaying of errors or warnings in PHP. Edit the wp-config.php file which is located at the web root and add this line on the top:
@ini_set('display_errors', 0); |