Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php index.php update - Class Magento\Store\Model\StoreManagerInterface does not exist #1014

Closed
SKovbel opened this issue Jan 31, 2015 · 3 comments

Comments

@SKovbel
Copy link

SKovbel commented Jan 31, 2015

Module 'Magento_Webapi':
Module 'Magento_Weee':
Module 'Magento_CurrencySymbol':

Module 'Magento_Wishlist':

The application has thrown an exception!

Magento\Framework\Exception

Error in file: "/srv/www/magento2.dev/pub/app/code/Magento/Theme/data/theme_setup/data-install-2.0.0.php" - Class Magento\Store\Model\StoreManagerInterface does not exist

/srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Module/DataSetup.php:232
#0 /srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Module/DataSetup.php(132): Magento\Framework\Module\DataSetup->_modifyResourceDb('data-install', '', '2.0.1')
#1 /srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Module/DataSetup.php(119): Magento\Framework\Module\DataSetup->_installData('2.0.1')
#2 /srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Module/Updater.php(60): Magento\Framework\Module\DataSetup->applyDataUpdates()
#3 /srv/www/magento2.dev/pub/setup/module/Magento/Setup/src/Model/Installer.php(586): Magento\Framework\Module\Updater->updateData()
#4 /srv/www/magento2.dev/pub/setup/module/Magento/Setup/src/Controller/ConsoleController.php(362): Magento\Setup\Model\Installer->installDataFixtures()
#5 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/Controller/AbstractActionController.php(83): Magento\Setup\Controller\ConsoleController->updateAction()
#6 /srv/www/magento2.dev/pub/setup/module/Magento/Setup/src/Controller/ConsoleController.php(302): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 [internal function]: Magento\Setup\Controller\ConsoleController->onDispatch(Object(Zend\Mvc\MvcEvent))
#8 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#9 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#10 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/Controller/AbstractController.php(117): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#11 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Console\Request), Object(Zend\Console\Response))
#12 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#13 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#14 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#15 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/Application.php(313): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#16 /srv/www/magento2.dev/pub/setup/index.php(25): Zend\Mvc\Application->run()
#17 {main}

Previous Exception(s):

ReflectionException

Class Magento\Store\Model\StoreManagerInterface does not exist

/srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Code/Reader/ClassReader.php:37
#0 /srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Module/DataSetup.php(132): Magento\Framework\Module\DataSetup->_modifyResourceDb('data-install', '', '2.0.1')
#1 /srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Module/DataSetup.php(119): Magento\Framework\Module\DataSetup->_installData('2.0.1')
#2 /srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Module/Updater.php(60): Magento\Framework\Module\DataSetup->applyDataUpdates()
#3 /srv/www/magento2.dev/pub/setup/module/Magento/Setup/src/Model/Installer.php(586): Magento\Framework\Module\Updater->updateData()
#4 /srv/www/magento2.dev/pub/setup/module/Magento/Setup/src/Controller/ConsoleController.php(362): Magento\Setup\Model\Installer->installDataFixtures()
#5 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/Controller/AbstractActionController.php(83): Magento\Setup\Controller\ConsoleController->updateAction()
#6 /srv/www/magento2.dev/pub/setup/module/Magento/Setup/src/Controller/ConsoleController.php(302): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 [internal function]: Magento\Setup\Controller\ConsoleController->onDispatch(Object(Zend\Mvc\MvcEvent))
#8 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#9 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#10 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/Controller/AbstractController.php(117): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#11 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Console\Request), Object(Zend\Console\Response))
#12 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#13 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#14 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#15 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/Application.php(313): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#16 /srv/www/magento2.dev/pub/setup/index.php(25): Zend\Mvc\Application->run()
#17 {main}

ReflectionException

Class Magento\Store\Model\StoreManagerInterface does not exist

/srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Code/Reader/ClassReader.php:29
#0 /srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Module/DataSetup.php(132): Magento\Framework\Module\DataSetup->_modifyResourceDb('data-install', '', '2.0.1')
#1 /srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Module/DataSetup.php(119): Magento\Framework\Module\DataSetup->_installData('2.0.1')
#2 /srv/www/magento2.dev/pub/lib/internal/Magento/Framework/Module/Updater.php(60): Magento\Framework\Module\DataSetup->applyDataUpdates()
#3 /srv/www/magento2.dev/pub/setup/module/Magento/Setup/src/Model/Installer.php(586): Magento\Framework\Module\Updater->updateData()
#4 /srv/www/magento2.dev/pub/setup/module/Magento/Setup/src/Controller/ConsoleController.php(362): Magento\Setup\Model\Installer->installDataFixtures()
#5 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/Controller/AbstractActionController.php(83): Magento\Setup\Controller\ConsoleController->updateAction()
#6 /srv/www/magento2.dev/pub/setup/module/Magento/Setup/src/Controller/ConsoleController.php(302): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 [internal function]: Magento\Setup\Controller\ConsoleController->onDispatch(Object(Zend\Mvc\MvcEvent))
#8 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#9 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#10 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/Controller/AbstractController.php(117): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#11 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Console\Request), Object(Zend\Console\Response))
#12 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#13 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#14 /srv/www/magento2.dev/pub/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#15 /srv/www/magento2.dev/pub/vendor/zendframework/zend-mvc/Zend/Mvc/Application.php(313): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#16 /srv/www/magento2.dev/pub/setup/index.php(25): Zend\Mvc\Application->run()
#17 {main}

@otoolec
Copy link
Contributor

otoolec commented Jan 31, 2015

@Mackovey can you try clearing out your var/generation directory? That fixed the problem for me. I think there is an old generated file that is using an outdated class reference. We can use this ticket to see about getting the setup script to clear that directory for you.

@otoolec
Copy link
Contributor

otoolec commented Feb 2, 2015

Internal ticket is MAGETWO-33519

@sshrewz sshrewz added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Feb 2, 2015
@sshrewz sshrewz added in progress and removed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development labels Mar 3, 2015
@sshrewz
Copy link

sshrewz commented Mar 23, 2015

@Mackovey, this is now resolved in 0.74.0-beta1. Thank you again for submitting this issue. Should you have any additional questions, please don't hesitate to let us know.

@sshrewz sshrewz closed this as completed Mar 23, 2015
magento-team pushed a commit that referenced this issue Apr 18, 2017
[Epam] Extend functional test sprint 7

- MTO-147: [Variation] Display images for a configurable product on store front
- MTO-139: [Test] Price for configurable product
magento-team pushed a commit that referenced this issue Dec 13, 2017
Merge pull request #1014 from magento-engcom/2.2-develop-prs

[EngCom] Public Pull Requests - 2.2-develop

Public Pull Requests
 - #1012 10814: Attribute repository resets sourceModel for new attributes. by @nmalevanec
- #1006 #12285: The option false for mobile device don't work in product -
view page gallery by @p-bystritsky
- #983 #12259: Save and Duplicated product not working by @p-bystritsky
- #1000 8204: catalog:images:resize = getimagesize(): Read error! by @RomaKis
#12633 Magento Connect no longer exist by @miguelbalparda

Fixed Public Issues
 - #10814 Attribute repository resets sourceModel for new attributes
 - #12285 The option false for mobile device don't work in product view page gallery
 - #12490 I can't disable full screen gallery on mobile on magento 2.2.1
 - #12259 Save and Duplicated product not working
 - #8204 catalog:images:resize = getimagesize(): Read error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes
 - #12632 Magento Connect no longer exist
VitaliyBoyko pushed a commit to VitaliyBoyko/magento2 that referenced this issue Jun 22, 2018
MSI-992: Cannot add Configurable product to cart on Custom Stock.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants