Fatal error: require_once() [function.require]: Failed opening required global.php

Fatal error: require_once() [function.require]: Failed opening required global.php

我正在尝试在本地打开我的网站。 xampp 已安装,但出现以下错误。我该如何纠正:

Warning: require_once(/Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php) [function.require-once]: failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/global.php on line 104

并且:

Fatal error: require_once() [function.require]: Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear') in /Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/global.php on line 104

此警告不是 Failed opening required global.php。此警告表示 global.php 的第 104 行有一条语句要求名为 class.inputfilter.php 的文件但是加载失败。

在以下情况下可能会出现此问题:

--> File does not exists.

--> File exists but do not have READ permission.

解法:

前往路径:

/Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/classes/phpInputFilter/

并找到名为 class.inputfilter.php.

的文件

如果没有找到就从美图的新包中获取(记得检查版本,两个文件必须来自同一个美图版本)。

如果存在则将其权限更改为 644755