magento 管理断言问题

标签 magento admin assert

Error in file: "/home/siddharth/iphp/magento/app/code/core/Mage/Admin/sql/admin_setup/install-1.6.0.0.php" - SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'admin_role' already exists

追踪:

#0 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb('install', '', '1.6.1.1')
#2 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb('1.6.1.1')
#3 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /home/siddharth/iphp/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /home/siddharth/iphp/magento/index.php(87): Mage::run('', 'store')
#8 {main}

最佳答案

1) 转到服务器上的本地主机或 mysql,并删除出现错误的表...

2)清除cookie并再次刷新该页面

3) 在第 2 步后,如果同样的错误仍然存​​在,则关闭浏览器并重新启动...这将删除所有 cookie 和缓存,然后再次点击 url...对出现的所有错误执行这些步骤...之后这次成功完成将完成...

关于magento 管理断言问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20718927/

相关文章:

c++ - 发布版本中是否禁用断言?

c# - 关于 throw 和 assert 的困惑

php - 用 Magento 覆盖页面标题

php - 在 Magento 中自动创建购物车价格规则

php - Magento 使用 getCollection() 获取当前排序和方向

当我进入管理员时,Magento 货币符号 404

c++ - 为什么c++ assert()函数会带来程序开销

CSS使默认方向rtl而不是ltr

python - 从 ManyToMany 在 admin.py 中添加字段

magento - 在 magento 自定义模块的后端添加多个选项卡和表单,就像客户后端位置一样