gpt4 book ai didi

magento2 - 在安装 2.0 版本的 magento 时如何修复此控制台日志错误?

转载 作者:行者123 更新时间:2023-12-01 06:09:41 25 4
gpt4 key购买 nike

我在安装 magento 2.0 时遇到问题。

如何修复此控制台日志错误以便我安装 magento?

[ERROR] exception 'Zend_Db_Exception' with message 'Column "code" does not exist in table "widget".' in C:\wamp\www\magent\vendor\magento\framework\DB\Adapter\Pdo\Mysql.php:967 Stack trace: #0 C:\wamp\www\magent\vendor\magento\module-widget\Setup\InstallSchema.php(102): Magento\Framework\DB\Adapter\Pdo\Mysql->changeColumn('widget', 'code', 'widget_code', Array) #1 C:\wamp\www\magent\setup\src\Magento\Setup\Model\Installer.php(798): Magento\Widget\Setup\InstallSchema->install(Object(Magento\Setup\Module\Setup), Object(Magento\Setup\Model\ModuleContext)) #2 C:\wamp\www\magent\setup\src\Magento\Setup\Model\Installer.php(732): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\Setup), 'schema') #3 [internal function]: Magento\Setup\Model\Installer->installSchema() #4 C:\wamp\www\magent\setup\src\Magento\Setup\Model\Installer.php(331): call_user_func_array(Array, Array) #5 C:\wamp\www\magent\setup\src\Magento\Setup\Controller\Install.php(97): Magento\Setup\Model\Installer->install(Array) #6 C:\wamp\www\magent\vendor\zendframework\zend-mvc\src\Controller\AbstractActionController.php(82): Magento\Setup\Controller\Install->startAction() #7 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent)) #8 C:\wamp\www\magent\vendor\zendframework\zend-eventmanager\src\EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #9 C:\wamp\www\magent\vendor\zendframework\zend-eventmanager\src\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #10 C:\wamp\www\magent\vendor\zendframework\zend-mvc\src\Controller\AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #11 C:\wamp\www\magent\vendor\zendframework\zend-mvc\src\DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response)) #12 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent)) #13 C:\wamp\www\magent\vendor\zendframework\zend-eventmanager\src\EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #14 C:\wamp\www\magent\vendor\zendframework\zend-eventmanager\src\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #15 C:\wamp\www\magent\vendor\zendframework\zend-mvc\src\Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #16 C:\wamp\www\magent\setup\index.php(31): Zend\Mvc\Application->run() #17 {main}



提前致谢。

最佳答案

  • 确保您在数据库详细信息步骤中输入了正确的数据库名称。
  • 检查您的数据库,它必须是干净的。
  • 删除您的数据库并重新创建它。
  • 关于magento2 - 在安装 2.0 版本的 magento 时如何修复此控制台日志错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34056921/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com