升级Magento从1.4.2到1.6.0出现问题:Fatal error: Undefined class constant ‘XML_PATH_USE_CUSTOM_ADMIN_PATH’

2,269 人次阅读
一条评论

共计 1035 个字符,预计需要花费 3 分钟才能阅读完成。

今天心血来潮,重新体验了下从1.4.2升级到1.6.0版本,结果和第一次完美过渡完全不一样,出现一个以前没有出现的错误:
Fatal error: Undefined class constant ‘XML_PATH_USE_CUSTOM_ADMIN_PATH’ in \app\code\core\Mage\Core\Controller\Varien\Router\Admin.php on line 123

现在正在找解决方法呢,具体原理还没有明白。

 

现在引用下几位大哥的解决办法:

After upgrading the Magento mostly the following error is occurred.

Fatal error: Undefined class constant ‘XML_PATH_USE_CUSTOM_ADMIN_URL’ in /app/code/core/Mage/Core/Controller/Varien/Router/Admin.php on line 123

Solution : To resolve the above error refer the following steps.

1st) take backup for the file /app/code/core/Mage/Adminhtml/helper/Data.php

2nd) Change the following line in the file /app/code/core/Mage/Adminhtml/helper/Data.php

From

class Mage_Adminhtml_Helper_Data extends Mage_Core_Helper_Abstract
{
protected $_pageHelpUrl;
To
{
const ML_PATH_ADMINHTML_ROUTER_FRONTNAME=’admin/routers/adminhtml/args/frontName’;
const XML_PATH_USE_CUSTOM_ADMIN_URL=’default/admin/url/use_custom’;
const XML_PATH_CUSTOM_ADMIN_URL=’default/admin/url/custom’;
protected $_pageHelpUrl;
Save the file and delete the Magento cache from the /var/cache directory and now browse the domain
正文完
 0
评论(一条评论)
2012-01-16 14:12:13 回复

我也在找问题的解决方法

 Windows  Firefox  中国浙江省杭州市联通