关于WordPress和函数mysqli_init()的警告

时间:2015-05-19 15:13:12

标签: php mysql wordpress mysqli

版本和环境:

  • Apache / 2.4.7(Win64)
  • PHP / 5.5.23
  • TS,VC11 X64
  • mysqli:mysqlnd 5.0.11-dev - 20120503

当我打开WordPress页面时,会显示一条警告:

( ! ) Warning: mysqli_init(): Property access is not allowed yet in
D:\amp\www\localhost\wordpress\wp-includes\wp-db.php on line 1363 Call
Stack
#   Time    Memory  Function    Location
1   0.2010  239016  {main}()...\index.php:0
2   0.2020  242152  require('D:\amp\www\localhost\wordpress\wp-blog-header.php' )   ...\index.php:21
3   0.2020  260504  require_once('D:\amp\www\localhost\wordpress\wp-load.php')  ...\wp-blog-header.php:12
4   0.2050  272024  require_once('D:\amp\www\localhost\wordpress\wp-config.php' )   ...\wp-load.php:38
5   0.2080  371352  require_once('D:\amp\www\localhost\wordpress\wp-settings.php')  ...\wp-config.php:87
6   0.2400  2151376 require_wp_db() ...\wp-settings.php:119
7   0.2440  2481160 wpdb->__construct(string(4), string(4), string(9), string(9) )  ...\load.php:362
8   0.2450  2482824 wpdb->db_connect( ??? ) ...\wp-db.php:612
9   0.2460  2483016 mysqli_init ( ) ...\wp-db.php:1363

我该如何解决这个问题?

0 个答案:

没有答案