I successfully upgraded version 3.5 a few days ago, but I haven't seen it for the past few days. Today I suddenly see the following error: Missing argument 2 for wpdb: prepare () search for the solution and find footer in the directory of your current topic. php, edit it and find the following line of code: $ post_datetimes = $ wpdb-> get_row ($ wpdb-> prepare ("select year (min (post_date_gmt) AS firstyear, YEAR (max (post_date_gmt) AS lastyear FROM $ wpdb-> posts WHERE post_date_gmt> 1970 "); replace: $ post_datetimes = $ wpdb-> get_row ($ wpdb-> prepare ("select year (min (post_date_gmt) AS firs Tyear, YEAR (max (post_date_gmt) AS lastyear FROM $ wpdb-> posts WHERE post_date_gmt> 1970 "," "); Warning: Missing argument 2 for wpdb: prepare () when you see this information, you will surely think that an error occurred during the update process. However, please note that: this has nothing to do with your updates and the topics you are currently using! This is a security change made in version 3.5 to avoid security issues caused by SQL injection!