2012-11-26 95 views
2

在所有网页致命错误apperead:Magento的 - 致命错误:类 'Mage_Http:_Helper'

Fatal error: Class 'Mage_Http:_Helper' not found in /web/htdocs/www.dolcefuoco.com/home/app/Mage.php on line 521

的错误与下面的功能:

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; 

我能做些什么来解决这个问题?任何建议非常感谢,该网站已关闭!

+0

你做了什么改变? –

+0

我禁用了标签模块,并错误地禁用了Mage_Admin。 我想通过点击保存按钮后,我禁用了Mage_admin。一旦完成该网站下降。然后我再次启用它。但没有发生。我不知道这个Mage_admin是否会产生影响,但是在编辑完成后每一次都发生了。 – mayamale

+0

还有其他事情正在发生。禁用“Mage_Admin”不会占用该网站。而且,根据您的版本,“Mage_Admin”甚至不会禁用您的管理员。我认为还有其他事情正巧发生了。有可能是另一个导致问题的模块。 'Mage_Http:_Helper'是对'Mage_Core_Helper_Http'的引用。你最近安装了什么? –

回答

0

你的config.xml引用了任何助手吗? (任何自定义添加/更改已经完成)

如果是这样,那里的路径/设置可能不正确,或者可能会丢失所需的东西。

相关问题