访问网站出现下列错误:
PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in E:\fanyi\wwwroot\wp-includes\class-wp.php:611
Stack trace:
#0 E:\fanyi\wwwroot\wp-settings.php(527): WP->init()
#1 E:\fanyi\wwwroot\wp-config.php(93): require_once('D:\\wwwroot\\duji...')
#2 E:\fanyi\wwwroot\wp-load.php(37): require_once('D:\\wwwroot\\duji...')
#3 E:\fanyi\wwwroot\wp-blog-header.php(13): require_once('D:\\wwwroot\\duji...')
#4 E:\fanyi\wwwroot\index.php(17): require('D:\\wwwroot\\duji...')
#5 {main}
thrown in E:\fanyi\wwwroot\wp-includes\class-wp.php on line 611
经检查,未修改相关代码,无法找到问题所在。
最后,重启服务器,问题解决。