컴파일러를 비활성화하고 캐시를 지우고 여전히 오류가 발생하는 경우
Class 'Mage_Install_Controller_Router_Install' not found
파일 app/code/core/Mage/Install/Controller/Router/Install.php
이 존재 하는지 확인하십시오 .
패치를 실행할 때 디렉토리 Router
가 존재하지 않았 app/code/core/Mage/Install/Controller
으므로 Install.php
파일에서 다르게 지시 되었음에도 불구하고 파일이 작성되지 않았습니다 applied.patches.list
. 이것은 수업이 빠졌고 메시지를 받는다는 것을 의미합니다.
Fatal error: Class 'Mage_Install_Controller_Router_Install' not found
applied.patches.list
Install.php 파일을 작성하지 못하는 패치 설치에 성공한 것으로 발췌 한 것 입니다.
patching file app/code/core/Mage/Install/Controller/Router/Install.php
patching file app/code/core/Mage/Install/etc/config.xml
패치 app/code/core/Mage/Install/etc/config.xml
는 누락 된 파일을 참조하는 파일에 다음을 추가 합니다.
<default>
<web>
<routers>
<install>
<area>frontend</area>
<class>Mage_Install_Controller_Router_Install</class>
</install>
</routers>
</web>
</default>
<stores>
<default>
<web>
<routers>
<install>
<area>frontend</area>
<class>Mage_Install_Controller_Router_Install</class>
</install>
</routers>
</web>
</default>
</stores>
누락 된 파일 app/code/core/Mage/Install/Controller/Router/Install.php
에 포함 된 샘플
<?php
/**
* Magento Enterprise Edition
*
* NOTICE OF LICENSE
*
* This source file is subject to the Magento Enterprise Edition End User License Agreement
* that is bundled with this package in the file LICENSE_EE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.magento.com/license/enterprise-edition
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magento.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magento.com for more information.
*
* @category Mage
* @package Mage_Install
* @copyright Copyright (c) 2006-2014 X.commerce, Inc. (http://www.magento.com)
* @license http://www.magento.com/license/enterprise-edition
*/
class Mage_Install_Controller_Router_Install extends Mage_Core_Controller_Varien_Router_Standard
{
/**
* Check if current controller instance is allowed in current router.
*
* @param Mage_Core_Controller_Varien_Action $controllerInstance
* @return boolean
*/
protected function _validateControllerInstance($controllerInstance)
{
return $controllerInstance instanceof Mage_Install_Controller_Action;
}
}