Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 迁移站点问题_Php_Wordpress_.htaccess_Plugins - Fatal编程技术网

Php 迁移站点问题

Php 迁移站点问题,php,wordpress,.htaccess,plugins,Php,Wordpress,.htaccess,Plugins,我已将我的站点迁移到另一个主机(云主机);新主机的配置和测试没有问题。但是,从旧主机复制所有文件后,wp管理员停止响应,我被卡在那里。还有一件事,下面的错误出现在主页上。有什么想法吗 警告:include(/home5/dndrhcom/public_html/3indubai/wp content/plugins/wp super cache/wp cache base.php):无法打开流:第65行的/srv/users/serverpilot/apps/wordpress/public/w

我已将我的站点迁移到另一个主机(云主机);新主机的配置和测试没有问题。但是,从旧主机复制所有文件后,wp管理员停止响应,我被卡在那里。还有一件事,下面的错误出现在主页上。有什么想法吗

警告: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():在/srv/users/serverpilot/apps/wordpress/public/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中打开“/home5/dndrhcom/public/wp content/plugins/wp super cache/wp cache base.php”以供包含时失败

警告: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():在/srv/users/serverpilot/apps/wordpress/public/wp content/plugins/wp super cache/ossdl cdn.php第82行的/srv/users/serverpilot/apps/wordpress/wp content/plugins/wp super cache/wp-cache.php中打开“/home5/dndrhcom/public”以包含(include_-path=”://sp/php5.6/lib/php)失败


解决方法是删除所有.php文件并从新的wordpress文件夹中添加新文件,然后只编辑指向我的网站的链接。非常感谢

我在迁移后从主题目录加载css以及使用serverpilot时遇到了类似的问题。include_路径被设置为php安装目录,因此我通过向include添加get_template_directory()解决了这个问题

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

~~~~~已更改为~~~~~~~~~~~~~~~
看起来您可能可以对插件执行类似的操作。

如果您使用
root@xx.xx.xx.xx
user,文件权限与使用
serverpilot@xx.xx.xx.xx
user


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

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

您可以找到此文件的定义路径,只需更改托管路径即可

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


这将很好。

尝试理解错误。它说您丢失了一些文件,如cache base.php,…关于警告:很明显,您包含的文件不存在。这就是警告所说的。您的问题是什么?当您迁移站点时,是否修改了数据库文件中的wordpress URL?您必须有新的URL。请遵循此URL中的所有步骤:-我不确定您为什么要将其标记为.htaccess,因为您没有包含任何.htaccess文件,甚至没有提到它。cache-base.php存在,并且所有文件都已正确复制,即使警告中提到的苍蝇也存在。对于数据库,“siteurl&home”字段是自定义的。我遵循了法典的步骤。但我仍然面临同样的警告和wp管理员不工作