【发布时间】:2017-12-28 12:48:05
【问题描述】:
所以我刚开始学习使用 Magento 2,但我从一开始就被阻止了:/ 我之前在很多网站上寻找过我的问题,我找到了解决方案,但没有一个能解决我的问题,我希望你们有一个想法! 所以我得到了: 安装不完整。 在重试之前检查控制台日志是否有错误。 它停在这一点上:
模块“Magento_Weee”: 正在安装数据... [错误] PDOException: SQLSTATE[42S21]: 列已存在: 1060 Nom du champ 'weee_tax_disposition' déjà utilisé in C:\wamp64\www\magento2\vendor\magento\zendframework1\library\Zend\Db\Statement\Pdo.php :228 堆栈跟踪:#0 C:\wamp64\www\magento2\vendor\magento\zendframework1\library\Zend\Db\Statement\Pdo.php(228): PDOStatement->execute(Array) #1 C:\wamp64 \www\magento2\lib\internal\Magento\Framework\DB\Statement\Pdo\Mysql.php(93): Zend_Db_Statement_Pdo->_execute(Array) #2 C:\wamp64\www\magento2\vendor\magento\zendframework1\ library\Zend\Db\Statement.php(303): Magento\Framework\DB\Statement\Pdo\Mysql->_execute(Array) #3 C:\wamp64\www\magento2\vendor\magento\zendframework1\library\Zend \Db\Adapter\Abstract.php(480): Zend_Db_Statement->execute(Array) #4 C:\wamp64\www\magento2\vendor\magento\zendframework1\library\Zend\Db\Adapter\Pdo\Abstract.php( 238): Zend_Db_Adapter_Abstract->query('ALTER TABLE
qu...', Array) #5 C:\wamp64\www\magento2\lib\internal\Magento\Framework\DB\Adapter\Pdo\Mysql.php(515): Zend_Db_Adapter_Pdo_Abstract->query('ALTER TABLEqu...', Array) #6 C:\wamp64\www\magento2\lib\internal\Magento\Framework\DB\Adapter \Pdo\Mysql.php(578): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('ALTER TABLEqu...', Array) #7 C:\wamp64\www\magento2\lib\internal\Magento\Framework\DB\Adapter\Pdo\Mysql.php(433): Magento\Framework\DB\Adapter\Pdo\Mysql->query('ALTER TABLEqu...') #8 C:\wamp64\www\magento2\lib\ internal\Magento\Framework\DB\Adapter\Pdo\Mysql.php(952): Magento\Framework\DB\Adapter\Pdo\Mysql->rawQuery('ALTER TABLE `qu...') #9 C:\wamp64 \www\magento2\app\code\Magento\Quote\Setup\QuoteSetup.php(126): Magento\Framework\DB\Adapter\Pdo\Mysql->addColumn('quote_item', 'weee_tax_dispos...', 'decimal (12,4) N...') #10 C:\wamp64\www\magento2\app\code\Magento\Quote\Setup\QuoteSetup.php(102): Magento\Quote\Setup\QuoteSetup->_addFlatAttribute( 'quote_item'、'weee_tax_dispos...'、数组)#11 C:\wamp64\www\magento2\app\code\Magento\Weee\Setup\InstallData.php(60): Magento\Quote\Setup\QuoteSetup-> addAttribute('quote_item', 'weee_tax_dispos...', Array) #12 C:\wamp64\www\magento2\setup\src\Magento\Setup\Model\Installer.php(867): Magento\Weee\Setup\InstallData ->安装(对象(Magento\Setup\Module\DataSetup),对象(Magento\Setup\Model\ModuleContext))#13 C:\wamp64\www\magen to2\setup\src\Magento\Setup\Model\Installer.php(791): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\DataSetup), 'data') #14 [内部函数]: Magento\Setup\Model\Installer->installDataFixtures() #15 C:\wamp64\www\magento2\setup\src\Magento\Setup\Model\Installer.php(342): call_user_func_array(Array, Array) #16 C:\wamp64\www\magento2\setup\src\Magento\Setup\Controller\Install.php(109): Magento\Setup\Model\Installer->install(Array) #17 C:\wamp64\www\magento2\ vendor\zendframework\zend-mvc\src\Controller\AbstractActionController.php(82): Magento\Setup\Controller\Install->startAction() #18 [内部函数]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object (Zend\Mvc\MvcEvent)) #19 C:\wamp64\www\magento2\vendor\zendframework\zend-eventmanager\src\EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) # 20 C:\wamp64\www\magento2\vendor\zendframework\zend-eventmanager\src\EventManager.php(214): Zend\EventManager\EventManager->tr iggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #21 C:\wamp64\www\magento2\vendor\zendframework\zend-mvc\src\Controller\AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #22 C:\wamp64\www\magento2\vendor\zendframework\zend-mvc\src\DispatchListener. php(93): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response)) #23 [内部函数]: Zend\Mvc\DispatchListener ->onDispatch(Object(Zend\Mvc\MvcEvent)) #24 C:\wamp64\www\magento2\vendor\zendframework\zend-eventmanager\src\EventManager.php(490): call_user_func(Array, Object(Zend\Mvc \MvcEvent)) #25 C:\wamp64\www\magento2\vendor\zendframework\zend-eventmanager\src\EventManager.php(214): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc \MvcEvent), Object(Closure)) #26 C:\wamp64\www\magento2\vendor\zendframework\zend-mvc\src\Application.php(314) : Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #27 C:\wamp64\www\magento2\setup\index.php(35): Zend\ Mvc\Application->run() #28 {main}
它说该列存在,但我检查了我的数据库,该列不存在:/ 我试图更改 php.ini 中的 max_input_time、max_execution_time 和 memory_limit 并重新启动 wamp 但仍然有同样的错误!! 提前致谢 非常感谢您的帮助!
【问题讨论】:
标签: mysql zend-framework installation magento2