Errore dopo la patch di successo supee-5994: classe 'mage_install_controller_router_install' non trovato
-
13-12-2019 - |
Domanda
Ho installato con successo la patch Supee-5994:
[root@x]# sh PATCH_SUPEE-5994_EE_1.14.1.0_v1-2015-05-14-05-05-02.sh
Checking if patch can be applied/reverted successfully...
Patch was applied/reverted successfully.
.
Ma ora, tutte le mie pagine Web sono vuote.
Il registro degli errori httpd:
.[ERRORE] [client x] Errore irreversibile PHP: CLASS 'MAGE_INSTALL_CONTROLLER_ROUTER_INSTALL' NON FONDO IN /VAR/WWW/X/PULIC_HTML/APP/CODE/CORE/MAGE/CORE/CONTROLER/VARIEN/FONT.PHP ON LINE 138
Ho provato a:
- .
- Cancella il / var / cache
- Reset the chmod / chown
- Riavvia il servizio httpd
Ma niente sembra funzionare.
Qualcuno ha lo stesso problema?
Modifica: il file front.php:
Varien_Profiler::start('mage::app::init_front_controller::collect_routers');
foreach ($routersInfo as $routerCode => $routerInfo) {
if (isset($routerInfo['disabled']) && $routerInfo['disabled']) {
continue;
}
if (isset($routerInfo['class'])) {
// LINE 138 HERE
$router = new $routerInfo['class'];
if (isset($routerInfo['area'])) {
$router->collectRoutes($routerInfo['area'], $routerCode);
}
$this->addRouter($routerCode, $router);
}
}
Varien_Profiler::stop('mage::app::init_front_controller::collect_routers');
. Soluzione
Hai disattivato e cancellato la compilazione?
Via la console / ssh è possibile utilizzare
$ php -f shell/compiler.php -- disable
$ php -f shell/compiler.php -- clear
$ php -f shell/compiler.php -- compile
$ php -f shell/compiler.php -- enable
.
potrebbe aver bisogno della quarta linea ... non è sicuro.
Potrebbe essere un problema con la linea che viene fornita prima del codice che hai mostrato
$routersInfo = Mage::app()->getStore()->getConfig(self::XML_STORE_ROUTERS_PATH);
.
Nota: ho avuto un problema simile in cui l'amministratore era vuoto, tuttavia che si è rivelato un file in un modulo che ha sovrascritto uno dei file core, ma questo non è nel tuo caso.Nel caso in cui gli altri guardano a questo problema.
Altri suggerimenti
Se hai disabilitato il compilatore e cancella la cache e si è ancora eseguito nell'errore
Class 'Mage_Install_Controller_Router_Install' not found
.
Verifica se il file app/code/core/Mage/Install/Controller/Router/Install.php
esiste.
Quando si esegue la patch, la directory Router
non esisteva in app/code/core/Mage/Install/Controller
e quindi il file Install.php
non è stato creato nonostante sia stato detto al contrario nel file applied.patches.list
.Ciò significa che ti manca una classe e ottieni il messaggio:
Fatal error: Class 'Mage_Install_Controller_Router_Install' not found
.
Estratto dal applied.patches.list
per l'installazione di patch apparentemente 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 file app/code/core/Mage/Install/etc/config.xml
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>
.
Campione di ciò che il file mancante app/code/core/Mage/Install/Controller/Router/Install.php
deve contenere.
<?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;
}
}
.