2

所有网页中都出现了一个致命错误:

致命错误:在第 521 行的 /web/htdocs/www.dolcefuoco.com/home/app/Mage.php 中找不到类“Mage_Http:_Helper”

该错误与以下功能有关:

public static function helper($name)
{
    if (strpos($name, '/') === false) {
        $name .= '/data';
    }

    $registryKey = '_helper/' . $name;
    if (!self::registry($registryKey)) {
        $helperClass = self::getConfig()->getHelperClassName($name);
        self::register($registryKey, new $helperClass);
    }
    return self::registry($registryKey);
}

第 521 行是:

self::register($registryKey, new $helperClass);

在日志警告下方:

2012-11-26T22:27:10+00:00 ERR (3): Warning: include(Mage/Http:/Helper.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory  in /web/htdocs/www.dolcefuoco.com/home/lib/Varien/Autoload.php on line 93
2012-11-26T22:27:10+00:00 ERR (3): Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'Mage/Http:/Helper.php' for inclusion (include_path='/web/htdocs/www.dolcefuoco.com/home/app/code/local:/web/htdocs/www.dolcefuoco.com/home/app/code/community:/web/htdocs/www.dolcefuoco.com/home/app/code/core:/web/htdocs/www.dolcefuoco.com/home/lib:.:/php5/lib/php/')  in /web/htdocs/www.dolcefuoco.com/home/lib/Varien/Autoload.php on line 93

而这里的 autoload.php 函数正在产生问题:

 * Register SPL autoload function
 */
static public function register()
{
    spl_autoload_register(array(self::instance(), 'autoload'));
}

/**
 * Load class source code
 *
 * @param string $class
 */
public function autoload($class)
{
    if ($this->_collectClasses) {
        $this->_arrLoadedClasses[self::$_scope][] = $class;
    }
    if ($this->_isIncludePathDefined) {
        $classFile = $class;
    } else {
        $classFile = str_replace(' ', DIRECTORY_SEPARATOR, ucwords(str_replace('_', ' ', $class)));
    }
    $classFile.= '.php';
    //echo $classFile;die();
    return include $classFile;
}

第 93 行是:

return include $classFile;

我能做些什么来修复它?非常感谢任何建议,该网站已关闭!

4

1 回答 1

0

您的 config.xml 是否引用了任何帮助程序?(已进行的任何自定义添加/更改)

如果是这样,则其中的路径/设置可能不正确,或者可能缺少所需的内容。

于 2012-12-29T01:33:00.517 回答