cancel
Showing results for 
Search instead for 
Did you mean: 

Can't access backend after migration from 1.7.0.2 to 2.1.6

Can't access backend after migration from 1.7.0.2 to 2.1.6

Hello,

I used migration tool to migrate my Magento 1.7.0.2 to Magento 2.1.6. All migrated well, but when I try to access backend, I get this message :

Notice: Undefined index:  in /var/www/html/magento2/vendor/magento/module-developer/Model/View/Page/Config/RendererFactory.php on line 64

Does someone have a solution?

You can see the call stack at the end.

Thanks

a:4:{i:0;s:137:"Notice: Undefined index:  in /var/www/html/magento2/vendor/magento/module-developer/Model/View/Page/Config/RendererFactory.php on line 64";i:1;s:9413:"#0 /var/www/html/magento2/vendor/magento/module-developer/Model/View/Page/Config/RendererFactory.php(64): Magento\Framework\App\ErrorHandler->handler(8, 'Undefined index...', '/var/www/html/m...', 64, Array)
#1 /var/www/html/magento2/vendor/magento/framework/View/Result/Page.php(149): Magento\Developer\Model\View\Page\Config\RendererFactory->create(Array)
#2 /var/www/html/magento2/vendor/magento/framework/View/Result/Page.php(139): Magento\Framework\View\Result\Page->initPageConfigReader()
#3 /var/www/html/magento2/var/generation/Magento/Framework/View/Result/Page/Interceptor.php(14): Magento\Framework\View\Result\Page->__construct(Object(Magento\Framework\View\Element\Template\Context), Object(Magento\Framework\View\LayoutFactory), Object(Magento\Framework\View\Layout\ReaderPool), Object(Magento\Framework\Translate\Inline), Object(Magento\Framework\View\Layout\BuilderFactory), Object(Magento\Framework\View\Layout\GeneratorPool), Object(Magento\Developer\Model\View\Page\Config\RendererFactory), Object(Magento\Framework\View\Page\Layout\Reader), 'Magento_Theme::...', false)
#4 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Magento\Framework\View\Result\Page\Interceptor->__construct(Object(Magento\Framework\View\Element\Template\Context), Object(Magento\Framework\View\LayoutFactory), Object(Magento\Framework\View\Layout\ReaderPool), Object(Magento\Framework\Translate\Inline), Object(Magento\Framework\View\Layout\BuilderFactory), Object(Magento\Framework\View\Layout\GeneratorPool), Object(Magento\Developer\Model\View\Page\Config\RendererFactory), Object(Magento\Framework\View\Page\Layout\Reader), 'Magento_Theme::...', false)
#5 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(89): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#6 /var/www/html/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array)
#7 /var/www/html/magento2/vendor/magento/framework/View/Result/PageFactory.php(55): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array)
#8 /var/www/html/magento2/vendor/magento/framework/App/View.php(74): Magento\Framework\View\Result\PageFactory->create(true)
#9 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Magento\Framework\App\View->__construct(Object(Magento\Framework\View\Layout\Interceptor), Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\Config\Scope), Object(Magento\Framework\Event\Manager\Proxy), Object(Magento\Framework\View\Result\PageFactory), Object(Magento\Framework\App\ActionFlag))
#10 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(89): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#11 /var/www/html/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...')
#12 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(126): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#13 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'view', 'Magento\\Framewo...')
#14 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Framewo...', Array, Array)
#15 /var/www/html/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...')
#16 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(126): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#17 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'context', 'Magento\\Framewo...')
#18 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Framewo...', Array, Array)
#19 /var/www/html/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array)
#20 /var/www/html/magento2/vendor/magento/framework/App/ActionFactory.php(40): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...')
#21 /var/www/html/magento2/vendor/magento/framework/App/Router/DefaultRouter.php(51): Magento\Framework\App\ActionFactory->create('Magento\\Framewo...')
#22 /var/www/html/magento2/vendor/magento/framework/App/FrontController.php(50): Magento\Framework\App\Router\DefaultRouter->match(Object(Magento\Framework\App\Request\Http))
#23 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#24 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#25 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'requestPreproce...')
#26 /var/www/html/magento2/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#27 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#28 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#29 /var/www/html/magento2/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#30 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#31 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#32 /var/www/html/magento2/vendor/magento/module-page-cache/Model/App/FrontController/VarnishPlugin.php(55): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#33 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\PageCache\Model\App\FrontController\VarnishPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#34 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#35 /var/www/html/magento2/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#36 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(142): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#37 /var/www/html/magento2/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#38 /var/www/html/magento2/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#39 /var/www/html/magento2/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#40 /var/www/html/magento2/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#41 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}

 

6 REPLIES

Re: Can't access backend after migration from 1.7.0.2 to 2.1.6

Anyone had the same problem?

Undefined index: RendererFactory.php - Magento CE 2.1.6

I have same error - cannot log in? Any know solutions?

 

Magento CE  2.1.6

Notice: Undefined index:  in /vendor/magento/module-developer/Model/View/Page/Config/RendererFactory.php on line 64

Re: Undefined index: RendererFactory.php - Magento CE 2.1.6

Have Exactly same error.  Happened after i used Magento Store Manager

There has been an error processing your request

Notice: Undefined index:  in /home/shopcom/public_html/vendor/magento/module-developer/Model/View/Page/Config/RendererFactory.php on line 64

Re: Can't access backend after migration from 1.7.0.2 to 2.1.6

I have same error.

 

Notice: Undefined index:  in /var/www/vhosts/lynwooddeals.com/httpdocs/vendor/magento/module-developer/Model/View/Page/Config/RendererFactory.php on line 64

Re: Can't access backend after migration from 1.7.0.2 to 2.1.6

 If you look at $renderer = $this->scopeConfig->getValue(WorkflowType::CONFIG_NAME_PATH, ScopeInterface:Smiley FrustratedCOPE_STORE); 

 

in vendor/magento/module-developer/Model/View/Page/Config/RendererFactory.php, you will see this is trying to get the value of the frontend dev workflow type which is either -> server side compilation or client side compilation. And $renderer is called on line 64. 

 

In your admin dashboard navigate to stores->configuration->advanced->developer.

If your scope is set to default config, then the 'Frontend Development Workflow' configuration exist. But if you change your scope to store view or website, then 'Frontend Development Workflow' configuration no longer displays. 

 

My assumption would be that the $renderer is trying to load the value from scope_store = 1 or store view. Which is why it comes back as undefined index ' '. When it should be looking at scope_store = default config or 0. 

Re: Can't access backend after migration from 1.7.0.2 to 2.1.6

For me was working after I clear the cache: php bin/magento cache:clean - also after migration you have to reindex: php bin/magento indexer:reindex