wordpress迁移报错

 

背景:

因为一些原因迁移wordpress的博客。备份好数据库和网站源码到另一台生产环境上线的时候报错:

Warning: require(/www/wwwroot/pazzn/wp-includes/class-wp-comment.php): failed to open stream: No such file or directory in /www/wwwroot/pazzn/wp-settings.php on line 192

Fatal error: require(): Failed opening required '/www/wwwroot/pazzn/wp-includes/class-wp-comment.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/pazzn/wp-settings.php on line 192

The site is experiencing technical difficulties.

解决办法:

直接在所属文件报错的位置新建class-wp-comment.php空文件即可:

 

vi class-wp-comment.php

 

:wq保存退出,再次刷新网页:

 

posted @ 2019-07-23 09:42  疯刘小三  阅读(487)  评论(0编辑  收藏  举报