Warning: Redis::connect(): connect() failed: Connection refused in /var/www/admclub.com/wp-content/object-cache.php on line 418
快速修复wordpress升级到3.5后出现PHP Warning: Missing argument 2 for wpdb::prepare()的BUG | _站长俱乐部站长俱乐部

快速修复wordpress升级到3.5后出现PHP Warning: Missing argument 2 for wpdb::prepare()的BUG

WordPress 3.5新增了不少功能,不过,如果你的机器配置是显示Warnning的话,会出错,显示:php Warning: Missing argument 2 for wpdb::prepare() 的BUG.
解决这个问题只需要在index.php增加

@ini_set('display_errors', 0);

就可以了.
修改后的index.php是这样的:

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);
//加入这行就可以修复BUG
@ini_set('display_errors', 0);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>