Error After Patch SUPEE-5994 – Class ‘Mage_Install_Controller_Router_Install’ Not Found

errorpatchesroutersupee-5994

I successfully installed the SUPEE-5994 patch :

[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.

But now, all my webpages are blank.

The httpd error log :

[error] [client x] PHP Fatal error: Class 'Mage_Install_Controller_Router_Install' not found in /var/www/x/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php on line 138

I've tried to :

  • Clear the /var/cache
  • Reset the chmod / chown
  • Restart the httpd service

But nothing seems to work.

Anyone have the same issue ?

EDIT: The Front.php file :

 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');

Best Answer

Have you switched off and cleared compilation?

via the console/ssh you can use

$ php -f shell/compiler.php -- disable

$ php -f shell/compiler.php -- clear

$ php -f shell/compiler.php -- compile

$ php -f shell/compiler.php -- enable

might need the fourth line...not sure.

It might be a problem with the line that comes before the code you showed

$routersInfo = Mage::app()->getStore()->getConfig(self::XML_STORE_ROUTERS_PATH);

Note: I had a similar problem where the admin was blank, however that turned out to be a file in a module that was overriding one of the core files - but this is not in your case. Just in case others look at this with that issue.

Related Topic