站长的NeoEase Inove主题 博客出现 Warning: Missing argument 2 for wpdb::prepare(), called in /wp-content/themes/inove/footer.php 的错误,经过搜索,发现解决的正确方法为:

打开:主题的 footer.php,找到:

$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″));

将其修改为:

$post_datetimes = $wpdb->get_row(“SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM $wpdb->posts WHERE post_date_gmt > 1970”);

提交刷新,然后OK了!

发表评论

您的电子邮箱地址不会被公开。