wordpress迁移报错

时间:2024-06-24 09:33:32

背景:

因为一些原因迁移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.

wordpress迁移报错

解决办法:

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

vi class-wp-comment.php

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

wordpress迁移报错