【问题标题】:Failed opening required 'System.php' (include_path='.;C:\php\pear') in D:\wamp\www\z在 D:\wamp\www\z 中打开所需的 'System.php' (include_path='.;C:\php\pear') 失败
【发布时间】:2014-11-19 17:43:38
【问题描述】:

我对 php 有点陌生。我下载了一个 wordpress 并安装在我的 wamp 中。但是遇到了下面的错误。

Fatal error: require_once() [function.require]: Failed opening required 'System.php'
(include_path='.;C:\php\pear') in D:\wamp\www\fundwe\...

我的 Wamp 没有安装在 C 盘。相反,它位于 D 驱动器中。请帮帮我

【问题讨论】:

  • include_path 包含一个分号 (;) 分隔的包含路径列表。所以它正在寻找.C:\php\pear,这应该没问题。您是否检查过该文件是否存在并且位于正确的位置?
  • 我不记得 Wordpress 使用 system.php,你确定你的 Wampp 安装正确吗?
  • 它使用高级主题进行众筹。 Wamp安装在D盘
  • 致命错误:require_once() [function.require]:在 D:\wamp\www\ 中打开所需的 'System.php' (include_path='.;C:\php\pear') 失败fundweb\wp-content\themes\funding_press\funding\lib\PayPal\Serializer\Serializer.php 在第 54 行
  • 显示此错误。我更改了 Db 连接没问题,我更改了 wp 选项表中的字段,主页和站点 url 是 localhost/fundweb

标签: php wordpress wamp


【解决方案1】:

在 WAMPServer 中,include_path 已被注释掉,因此您将获得默认版本,这就是它指向 include_path='.;C:\php\pear' 的原因

所以你可以尝试编辑 php.ini 文件,使用 wampserver 菜单确保你编辑了正确的文件(\wamp\bin\php\{phpVersion}\bin\phpForApache.ini)

wampmanager->PHP->php.ini

并添加一个正确的包含路径来代替已经注释掉的路径

include_path=".;d:\wamp\bin\php\{yourPHPVersion}\pear"

虽然我有一个想法,这与 PEAR 完全无关。

您可能最好为 Wordpress 网站创建一个虚拟主机以在其中运行,然后它可能会在主题文件夹中找到它正在寻找的文件。

【讨论】:

  • 现在解决了。现在发生此错误.. 致命错误:调用 D:\wamp\www\fundweb\wp-content\themes\funding_press\header.php 中的未定义函数 of_get_option() 第 50 行调用堆栈#TimeMemoryFunctionLocation 10.0016364760{main}() ..\index.php:0 20.0027368464require('D:\wamp\www\fundweb\wp-blog-header.php')..\index.php:17 32.019643028592require_once('D:\wamp\www\fundweb \wp-includes\template-loader.php')..\wp-blog-header.php:16 42.062043735696include('D:\wamp\www\fundweb\wp-content\themes\funding_press\tmp-home.php ')..
猜你喜欢
  • 1970-01-01
  • 2016-06-29
  • 1970-01-01
  • 2017-07-16
  • 2018-05-27
  • 2011-05-27
  • 1970-01-01
  • 2014-10-02
  • 2020-02-14
相关资源
最近更新 更多