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

我最近将域名从旧服务器移动到新的托管包。 </ p>

我移动了所有以前的文件并备份了MySQL数据库。网站未加载,出现以下错误:</ p>


< p> expertfaculty.org [Mon Oct 15 11:11:39 2018] [错误] [client
77.89.128.187:0] PHP警告:require(/home/cluster-sites/6/e/expertfaculty.org/public_html /wp-includes/class-wp-widget.php):nn无法打开流:
/home/cluster-sites/6/e/expertfaculty.org/public_html/wp-settings中没有此类文件或目录。 php
on the line 187 </ p>

expertfaculty.org [Mon Oct 15 11:11:39 2018] [错误] [client
77.89.128.187:0] PHP致命错误:require( ):无法打开所需的'/home/cluster-sites/6/e/expertfaculty.org/public_html/wp-includes/class-wp-widget.php'
(include_path ='。:/ usr / share / pear72: / usr / share / php')在第187行的
/home/cluster-sites/6/e/expertfaculty.org/public_html/wp-settings.php
</ p>
</ blockquote>

类wp-widget.php位于wp-includes文件中。

第187行的wp-settings.php没有任何相关内容。 </ p>

该网站肯定在旧服务器下工作。 不确定有什么问题。 </ p>

任何人都可以提供帮助吗? 谢谢!</ p>
</ div>

展开原文

原文

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!

dongyou5098
dongyou5098 这是你的根路径?
接近 2 年之前 回复
doubo4336
doubo4336 似乎是PHP配置问题。您咨询了托管服务提供商吗?
接近 2 年之前 回复

1个回答



编辑新的站点文件: wp-config.php </ strong> </ p>

添加以上内容: / *这就是全部,停止编辑! 快乐的博客。 * / </ strong> </ p>

  define('WP_HOME','http://example.com'); 
define('WP_SITEURL','http://示例 .com');
</ code> </ pre>

将example.com网址更改为新网站网址。</ p>

谢谢。</ p >
</ div>

展开原文

原文

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.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐