magento2: Magento 2 Admin Login gives: There has been an error processing your request Invalid scope type ''

When I login at Magento 2 Admin I get:

There has been an error processing your request

Invalid scope type ‘’

The error log say:

a:4:{i:0;s:21:"Invalid scope type ''";i:1;s:6480:"#0 ROOT/vendor/magento/framework/App/Config/ScopeCodeResolver.php(48): Magento\Framework\App\ScopeResolverPool->get(NULL)
#1 ROOT/vendor/magento/framework/App/Config.php(79): Magento\Framework\App\Config\ScopeCodeResolver->resolve(NULL, NULL)
#2 ROOT/vendor/magento/module-config/Model/Config.php(480): Magento\Framework\App\Config->getValue('design/theme/th...', NULL, NULL)
#3 ROOT/app/code/Codazon/ThemeOptions/Backend/Model/Menu/Builder/Plugin.php(35): Magento\Config\Model\Config->getConfigDataValue('design/theme/th...')
#4 ROOT/app/code/Codazon/ThemeOptions/Backend/Model/Menu/Builder/Plugin.php(62): Codazon\ThemeOptions\Backend\Model\Menu\Builder\Plugin->getThemeId()
#5 ROOT/vendor/magento/framework/Interception/Interceptor.php(152): Codazon\ThemeOptions\Backend\Model\Menu\Builder\Plugin->afterGetResult(Object(Magento\Backend\Model\Menu\Builder\Interceptor), Object(Magento\Backend\Model\Menu))
#6 ROOT/var/generation/Magento/Backend/Model/Menu/Builder/Interceptor.php(26): Magento\Backend\Model\Menu\Builder\Interceptor->___callPlugins('getResult', Array, Array)
#7 ROOT/vendor/magento/module-backend/Model/Menu/Config.php(146): Magento\Backend\Model\Menu\Builder\Interceptor->getResult(Object(Magento\Backend\Model\Menu))
#8 ROOT/vendor/magento/module-backend/Model/Menu/Config.php(109): Magento\Backend\Model\Menu\Config->_initMenu()
#9 ROOT/vendor/magento/module-backend/Model/Url.php(348): Magento\Backend\Model\Menu\Config->getMenu()
#10 ROOT/vendor/magento/module-backend/Model/Url.php(308): Magento\Backend\Model\Url->_getMenu()
#11 ROOT/vendor/magento/module-backend/Controller/Adminhtml/Index/Index.php(21): Magento\Backend\Model\Url->getStartupPageUrl()
#12 ROOT/vendor/magento/framework/App/Action/Action.php(102): Magento\Backend\Controller\Adminhtml\Index\Index->execute()
#13 ROOT/vendor/magento/module-backend/App/AbstractAction.php(226): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#14 ROOT/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#15 ROOT/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->___callParent('dispatch', Array)
#16 ROOT/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Array, 'adminAuthentica...')
#17 ROOT/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#18 ROOT/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#19 ROOT/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Array, 'adminMassaction...')
#20 ROOT/vendor/magento/module-backend/App/Action/Plugin/MassactionKey.php(33): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#21 ROOT/vendor/magento/framework/Interception/Interceptor.php(142): Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#22 ROOT/var/generation/Magento/Backend/Controller/Adminhtml/Index/Index/Interceptor.php(26): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#23 ROOT/vendor/magento/framework/App/FrontController.php(55): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#24 ROOT/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#25 ROOT/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#26 ROOT/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#27 ROOT/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#28 ROOT/vendor/magento/framework/Interception/Interceptor.php(142): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#29 ROOT/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#30 ROOT/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#31 ROOT/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#32 ROOT/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#33 {main}";s:3:"url";s:97:"admin/index/index/key/d6da202f324298e6492136f19b5200d311ec208d3fe62be48745910532c707dc/";s:11:"script_name";s:10:"/index.php";}

Nobody knows, google says nothing

Anyone know are familiar with this solution?

Many Thanks

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

I’m having the same issue when I try and migrate a Magento CE 1.7.0.2 to Magento Open Source 2.2.3. Here are the steps I used: (1) Did a fresh install of 2.2.3 (2) composer config repositories.magento composer https://repo.magento.com (3) composer require magento/data-migration-tool:2.2.3 (4) updated my data-migration-tool/etc/1.7.0.2/config.xml file to contain my source (1.7.0.2)db and destination (2.2.3)db credentials and 1.7.0.2 crypt key. (5) php bin/magento migrate:settings --reset vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.7.0.2/config.xml (6) php bin/magento migrate:data --reset --auto vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.7.0.2/config.xml (7) php bin/magento indexer:reindex (8) php -f bin/magento cache:clean

All steps worked properly. But when I go to my website, I get the following error: An error has happened during application run. See exception log for details. Could not write error message to log. Please use developer mode to see the message.

Exception.log simply says: [2018-04-20 15:26:29] main.CRITICAL: Invalid scope type ‘’ {“exception”:“[object] (InvalidArgumentException(code: 0): Invalid scope type ‘’ at /home/…/vendor/magento/framework/App/ScopeResolverPool.php:40)”} []

I have now tried the migration procedure 6 times on mutiple servers, all configured with the correct magento stack requirements.