Se hai disabilitato il compilatore e cancellato la cache e continui a riscontrare l'errore
Class 'Mage_Install_Controller_Router_Install' not found
Controlla se il file app/code/core/Mage/Install/Controller/Router/Install.php
esiste.
Quando hai eseguito la patch, la directory Router
non esisteva app/code/core/Mage/Install/Controller
e quindi il Install.php
file non è stato creato nonostante sia stato detto diversamente nel applied.patches.list
file. Ciò significa che ti manca una lezione e ricevi il messaggio:
Fatal error: Class 'Mage_Install_Controller_Router_Install' not found
Estratto dall'installazione della applied.patches.list
patch presumibilmente riuscita che non riesce a creare il file Install.php:
patching file app/code/core/Mage/Install/Controller/Router/Install.php
patching file app/code/core/Mage/Install/etc/config.xml
La patch crea la seguente aggiunta al app/code/core/Mage/Install/etc/config.xml
file che fa riferimento al file mancante:
<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>
Esempio di ciò che app/code/core/Mage/Install/Controller/Router/Install.php
dovrebbe contenere il file mancante .
<?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;
}
}