douhoulei4706 2018-10-15 11:20
浏览 265

WordPress PHP警告:require(/home/cluster-sites/6/e/expertfaculty.org/public_html/wp-includes/class-wp-widget.php):无法打开流

I have recently moved a domain from an old server to a new hosting package.

I moved over all the previous files and backed up the MySQL databases.The website is not loading, with the following error:

expertfaculty.org [Mon Oct 15 11:11:39 2018] [error] [client 77.89.128.187:0] PHP Warning: require(/home/cluster-sites/6/e/expertfaculty.org/public_html/wp-includes/class-wp-widget.php): failed to open stream: No such file or directory in /home/cluster-sites/6/e/expertfaculty.org/public_html/wp-settings.php on line 187

expertfaculty.org [Mon Oct 15 11:11:39 2018] [error] [client 77.89.128.187:0] PHP Fatal error: require(): Failed opening required '/home/cluster-sites/6/e/expertfaculty.org/public_html/wp-includes/class-wp-widget.php' (include_path='.:/usr/share/pear72:/usr/share/php') in /home/cluster-sites/6/e/expertfaculty.org/public_html/wp-settings.php on line 187

The class-wp-widget.php is there in the wp-includes file. One wp-settings.php on line 187 there isn't anything that's relevant.

The website definitely worked under the old server. Not sure what is wrong.

Anyone can help on that? Thanks!

  • 写回答

1条回答 默认 最新

  • doupengxie4195 2018-10-15 11:26
    关注

    Edit the new site file: wp-config.php

    Add the below above: /* That's all, stop editing! Happy blogging. */

    define( 'WP_HOME', 'http://example.com' );
    define( 'WP_SITEURL', 'http://example.com' );
    

    Change the example.com URLs to your new site URLs.

    Thanks.

    评论

报告相同问题?

悬赏问题

  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码
  • ¥15 如何在Linux系统中,但是在window系统上idea里面可以正常运行?(相关搜索:jar包)
  • ¥50 400g qsfp 光模块iphy方案
  • ¥15 两块ADC0804用proteus仿真时,出现异常
  • ¥15 关于风控系统,如何去选择