迁移站点问题



我已将我的站点迁移到另一台主机(云主机);新主机已配置和测试,没有问题。但是,从旧主机复制所有文件后,wp-admin 停止响应,我被困在那里。还有一件事,下面的错误出现在主页上。知道吗?

警告:include(/home5/dndrhcom/public_html/3indubai/wp-content/plugins/wp-super-cache/wp-cache-base.php):无法打开流:在第65行的/srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/wp-super-cache/wp-cache.php中没有这样的文件或目录

警告:include():打开 '/home5/dndrhcom/public_html/3indubai/wp-content/plugins/wp-super-cache/wp-cache-base.php' 进行包含失败 (include_path='.:/opt/sp/php5.6/lib/php') 在/srv/users/serverpilot/apps/WordPress/public/wp-content/plugins/wp-super-cache/wp-cache.php 第 65 行

警告:include_once(/home5/dndrhcom/public_html/3indubai/wp-content/plugins/wp-super-cache/ossdl-cdn.php):无法打开流:第 82 行的/srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/wp-super-cache/wp-cache.php 中没有这样的文件或目录

警告:include_once():打开"/home5/dndrhcom/public_html/3indubai/wp-content/plugins/wp-super-cache/ossdl-cdn.php"以包含(include_path='.:/opt/sp/php5.6/lib/php') 在/srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/wp-super-cache/wp-cache.php 第 82 行

通过删除所有.php文件并从新的WordPress文件夹中添加新文件来解决,然后仅编辑指向我网站的链接。

非常感谢

我在迁移后从主题目录加载 css 并使用服务器飞行员时遇到了类似的问题。include_path被设置为php安装目录,所以我通过将get_template_directory()添加到包含中来解决问题。

<?php include '/style.css'; ?>
~~~~~Changed to ~~~~~~~~~~~~~~~
<?php include( get_template_directory() .  '/style.css'); ?>

看起来你可以为插件做类似的事情。https://codex.wordpress.org/Function_Reference/plugin_dir_path#Examples

如果您通过root@xx.xx.xx.xx用户上传文件,则文件权限与通过serverpilot@xx.xx.xx.xx用户上传文件不同。

遇到了非常相似的问题,直到我删除了root上传的文件,并使用serverpilot重新上传。

只需更改路径配置文件 (wp-config.php) 更改路径。

您可以为此找到Defien路径,只需更改您的托管路径即可

定义('WPCACHEHOME',你的主机路径);

这将正常工作。

最新更新