php - 发现 fatal error : While Transfering website One server to another Server

标签 php html css opencart

<分区>

我已经更改了我的服务器并尝试将 Opencart 网站从旧服务器转移到新服务器,但我这边无法在新服务器上工作 我发现以下错误 fatal error :require_once()

Warning: require_once(/home/haratist/public_html/system/startup.php): failed to open stream: No such file or directory in /home/haratistore/public_html/index.php on line 16

Fatal error: require_once(): Failed opening required '/home/haratist/public_html/system/startup.php' (include_path='.:/opt/php55/lib/php/php') in /home/haratistore/public_html/index.php on line 16

我的域名是 http://haratistore.com/

最佳答案

您显然在新服务器上重命名了您的用户并使用了绝对路径,因为您可以看到required 路径:

/home/haratist/public_html/system/

以及你的文件所在的路径:

/home/haratistore/public_html/

你看出区别了吗?您需要在元素的所有绝对路径中将 haratist 替换为 haratistore。希望不会有很多。

关于php - 发现 fatal error : While Transfering website One server to another Server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36793823/

上一篇:javascript - 当鼠标向下移动时滚动/拖动 div 中的值

下一篇:css 特殊的 box-shadow of form

相关文章:

php:确定从哪里调用函数

html - Font Awesome 图标不起作用,我已经包含了所有必需的文件

HTML:无法获得工具提示溢出:使用 position:relative div 时可见

javascript - 使用服务器发送的事件将更新推送到网页

html - html 页面上动态粘贴在底部的页脚

html - 带有CSS的倾斜边框?

PHP 依赖注入(inject) - fatal error

php - Zend Framework 1.10.7 电话验证器

php - MySQL 查询使用来自不同表的字段的总和计算

html - 从 HTML5 Canvas 导出矢量图形