cancel
Showing results for 
Search instead for 
Did you mean: 

problem while installing magento 2

problem while installing magento 2

Module 'Magento_WishlistSampleData':


Installing user configuration...
[ERROR] exception 'ReflectionException' with message 'Class Magento\Config\Model\Config\Structure does not exist' in C:\wamp\www\Magento\vendor\magento\framework\Code\Reader\ClassReader.php:29 Stack trace: #0 C:\wamp\www\Magento\vendor\magento\framework\Code\Reader\ClassReader.php(29): ReflectionParameter->getClass() #1 C:\wamp\www\Magento\vendor\magento\framework\ObjectManager\Definition\Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\\Config\\...') #2 C:\wamp\www\Magento\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php(71): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\\Config\\...') #3 C:\wamp\www\Magento\vendor\magento\framework\ObjectManager\ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Config\\...', Array) #4 C:\wamp\www\Magento\vendor\magento\module-config\Model\Config\Factory.php(35): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Config\\...', Array) #5 C:\wamp\www\Magento\setup\src\Magento\Setup\Model\Installer.php(848): Magento\Config\Model\Config\Factory->create() #6 [internal function]: Magento\Setup\Model\Installer->installUserConfig(Array) #7 C:\wamp\www\Magento\setup\src\Magento\Setup\Model\Installer.php(331): call_user_func_array(Array, Array) #8 C:\wamp\www\Magento\setup\src\Magento\Setup\Controller\Install.php(97): Magento\Setup\Model\Installer->install(Array) #9 C:\wamp\www\Magento\vendor\zendframework\zend-mvc\src\Controller\AbstractActionController.php(82): Magento\Setup\Controller\Install->startAction() #10 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent)) #11 C:\wamp\www\Magento\vendor\zendframework\zend-eventmanager\src\EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #12 C:\wamp\www\Magento\vendor\zendframework\zend-eventmanager\src\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #13 C:\wamp\www\Magento\vendor\zendframework\zend-mvc\src\Controller\AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #14 C:\wamp\www\Magento\vendor\zendframework\zend-mvc\src\DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response)) #15 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent)) #16 C:\wamp\www\Magento\vendor\zendframework\zend-eventmanager\src\EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #17 C:\wamp\www\Magento\vendor\zendframework\zend-eventmanager\src\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #18 C:\wamp\www\Magento\vendor\zendframework\zend-mvc\src\Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #19 C:\wamp\www\Magento\setup\index.php(31): Zend\Mvc\Application->run() #20 {main} Next exception 'ReflectionException' with message 'Class Magento\Config\Model\Config\Structure does not exist' in C:\wamp\www\Magento\vendor\magento\framework\Code\Reader\ClassReader.php:37 Stack trace: #0 C:\wamp\www\Magento\vendor\magento\framework\ObjectManager\Definition\Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\\Config\\...') #1 C:\wamp\www\Magento\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php(71): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\\Config\\...') #2 C:\wamp\www\Magento\vendor\magento\framework\ObjectManager\ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Config\\...', Array) #3 C:\wamp\www\Magento\vendor\magento\module-config\Model\Config\Factory.php(35): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Config\\...', Array) #4 C:\wamp\www\Magento\setup\src\Magento\Setup\Model\Installer.php(848): Magento\Config\Model\Config\Factory->create() #5 [internal function]: Magento\Setup\Model\Installer->installUserConfig(Array) #6 C:\wamp\www\Magento\setup\src\Magento\Setup\Model\Installer.php(331): call_user_func_array(Array, Array) #7 C:\wamp\www\Magento\setup\src\Magento\Setup\Controller\Install.php(97): Magento\Setup\Model\Installer->install(Array) #8 C:\wamp\www\Magento\vendor\zendframework\zend-mvc\src\Controller\AbstractActionController.php(82): Magento\Setup\Controller\Install->startAction() #9 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent)) #10 C:\wamp\www\Magento\vendor\zendframework\zend-eventmanager\src\EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #11 C:\wamp\www\Magento\vendor\zendframework\zend-eventmanager\src\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #12 C:\wamp\www\Magento\vendor\zendframework\zend-mvc\src\Controller\AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #13 C:\wamp\www\Magento\vendor\zendframework\zend-mvc\src\DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response)) #14 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent)) #15 C:\wamp\www\Magento\vendor\zendframework\zend-eventmanager\src\EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #16 C:\wamp\www\Magento\vendor\zendframework\zend-eventmanager\src\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #17 C:\wamp\www\Magento\vendor\zendframework\zend-mvc\src\Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #18 C:\wamp\www\Magento\setup\index.php(31): Zend\Mvc\Application->run() #19 {main}

2 REPLIES 2

Re: problem while installing magento 2

Can you give a little more background?

 

How many times did you try?

Did you drop and recreate the database?

Are you trying to install sample data?

Have you been successful?

Magento Moderator since 2009
Keep Calm and Clear Cache!

Re: problem while installing magento 2

Yes. I tried everything. I tried to install at least 20-30 times deleting both magento and wamp installations.

Problem still exists.I changed to magento 1.9 and it worked straight away. I even tried to install magento sample data.even that didn't work.