安装Magento - 错误

时间:2015-05-28 15:02:04

标签: magento

我在WAMP上安装Magento时遇到此错误。有解决方案吗

a:5:{i:0;s:430:"Error in file: "C:\wamp\www\magento\app\code\core\Mage\Newsletter\data\newsletter_setup\data-upgrade-1.6.0.0-1.6.0.1.php" - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magentodb.newsletter_subscriber' doesn't exist, query was: DELETE `main_table`  FROM `newsletter_subscriber` AS `main_table`
 INNER JOIN `customer_entity` AS `customer` ON main_table.customer_id = customer.entity_id WHERE (customer.website_id = 0)";i:1;s:819:"#0 C:\wamp\www\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 C:\wamp\www\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(392): Mage_Core_Model_Resource_Setup->_modifyResourceDb('data-upgrade', false, '1.6.0.2')
#2 C:\wamp\www\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(289): Mage_Core_Model_Resource_Setup->_installData('1.6.0.2')
#3 C:\wamp\www\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(269): Mage_Core_Model_Resource_Setup->applyDataUpdates()
#4 C:\wamp\www\magento\app\code\core\Mage\Core\Model\App.php(351): Mage_Core_Model_Resource_Setup::applyAllDataUpdates()
#5 C:\wamp\www\magento\app\Mage.php(684): Mage_Core_Model_App->run(Array)
#6 C:\wamp\www\magento\index.php(87): Mage::run('', 'store')
#7 {main}";s:3:"url";s:18:"/magento/index.php";s:11:"script_name";s:18:"/magento/index.php";s:4:"skin";s:7:"default";}

2 个答案:

答案 0 :(得分:1)

如果是第一次安装,请尝试对数据库进行掺杂,然后重新创建,清除缓存并启动Magento页面。

如果不是第一次安装,请转到core_resource表并删除包含' newsletter_setup'强制magento重新安装新闻稿模块并运行它的安装脚本。

-----------------------------------------------
|code               | version   | data_version |
-----------------------------------------------
|newsletter_setup   | 1.6.0.2   | 1.6.0.2      |
-----------------------------------------------

,然后清除缓存并打开magent页面。

答案 1 :(得分:1)

按照以下步骤执行上述错误。

检查config.xml(新闻稿模块)使用的版本,与core_resource使用的版本相同。如果它相同但出现问题意味着将newsletter_setup行放在核心资源并运行该站点并确认“newsletter_subscriber” “表格在数据库中找到。