Magento - 致命错误:Class'Mage_Http:_Helper'

时间:2012-11-26 15:55:31

标签: php magento mage

所有网页都显示致命错误:

  

致命错误:未找到类'Mage_Http:_Helper'   第521行/web/htdocs/www.dolcefuoco.com/home/app/Mage.php

错误与以下功能有关:

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;

我该怎么做才能修复它?任何建议都非常感谢,该网站已经关闭!!

1 个答案:

答案 0 :(得分:0)

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

如果是这样,那里的路径/设置可能不正确或者可能缺少某些东西。