警告:require(__ DIR __ / warp.php) - 将站点从一台服务器切换到另一台服务器

时间:2014-09-25 04:00:25

标签: php wordpress yoothemes

我正在将一个基于Wordpress构建的网站从一个HostGator服务器切换到另一个HostGator服务器。我已成功通过FTP传输文件,并迁移了MySQL数据库并成功连接。

当我在浏览器中查看该网站时遇到问题,我收到以下错误消息:

警告:require( DIR /warp.php)[function.require]:无法打开流:/ home / abcworld / public_html / new2 / wp-content /中没有此类文件或目录第10行的themes / yoo_moustache_wp1 / index.php

警告:require( DIR /warp.php)[function.require]:无法打开流:/ home / abcworld / public_html / new2 / wp-content /中没有此类文件或目录第10行的themes / yoo_moustache_wp1 / index.php

致命错误:require()[function.require]:在/中打开所需的' DIR /warp.php'(include_path ='。:/ opt / php52 / lib / php')失败第10行的home / abcworld / public_html / new2 / wp-content / themes / yoo_moustache_wp1 / index.php

当我切换到Wordpress附带的主题时,该网站会显示MySQL数据库中的数据,因此模板似乎是导致错误的原因。我正在使用名为“Mustache”的Yootheme模板,并已下载最新版本并将其上传到Wordpress,错误消息仍在那里。

我正在处理的网站是:http://abcworldwidestone.com/new2/

我不确定是什么导致这种情况,并且会喜欢一些帮助 - 有什么想法吗?

2 个答案:

答案 0 :(得分:2)

您的服务器仍必须使用PHP 5.2,至少使用5.3.3或更高版本。

答案 1 :(得分:0)

根据the documentation;

  

5.3.0 添加 DIR NAMESPACE 常量

您很可能正在运行PHP版本< 5.3.0。

相关问题