安装Magento CE 1.7:安装数据库时出错

时间:2012-05-05 12:26:04

标签: php magento

在我的开发服务器上安装新的Magento CE 1.7时出现了一个奇怪的错误。我已经在1.5,1.6和1.6.1版本中成功运行了测试安装。

解压缩tar后(根据the SSH install guide正确设置权限)我正在运行安装程序。我填写了我的mysql凭据并点击继续按钮。 Magento尝试运行所有查询以安装新数据库,但在几秒钟后出现错误

  

致命错误:在/var/www/html/magento/1.7/app/code/core/Mage/Core/Model/Resource/Resource.php上的非对象上调用成员函数insert() 133

我已经彻底清除了整个webroot,然后再次解压缩所有内容,全部运行安装程序。但每次我都得到同样的错误。

我该怎么办?

谢谢,aeno


作为参考,包括调用堆栈的完整错误:

Fatal error: Call to a member function insert() on a non-object in /var/www/html/magento/1.7/app/code/core/Mage/Core/Model/Resource/Resource.php on line 133

Call Stack
#   Time    Memory  Function    Location
1   0.0002  341476  {main}( )   ../index.php:0
2   0.0034  685872  Mage::run( '', 'store', ??? )   ../index.php:87
3   0.0128  1810524 Mage_Core_Model_App->run( array ('scope_code' => '', 'scope_type'     => 'store', 'options' => array ()) )  ../Mage.php:683
4   0.5342  4244156 Mage_Core_Controller_Varien_Front->dispatch( )  ../App.php:354
5   0.5386  4728048 Mage_Core_Controller_Varien_Router_Standard->match( class     Mage_Core_Controller_Request_Http { protected $_originalPathInfo = '/install/wizard/installDb/'; protected $_storeCode = NULL; protected $_requestString = '/install/wizard/installDb/'; protected $_rewritedPathInfo = NULL; protected $_requestedRouteName = NULL; protected $_routingInfo = array (); protected $_route = 'install'; protected $_directFrontNames = array ('api' => '', 'xmlconnect' => ''); protected $_controllerModule = 'Mage_Install'; protected $_isStraight = FALSE; protected $_beforeForwardInfo = array (); protected $_paramSources = array (0 => '_GET', 1 => '_POST'); protected $_requestUri = '/index.php/install/wizard/installDb/'; protected $_baseUrl = '/index.php'; protected $_basePath = ''; protected $_pathInfo = '/install/wizard/installDb/'; protected $_params = array (); protected $_rawBody = NULL; protected $_aliases = array (); protected $_dispatched = TRUE; protected $_module = 'install'; protected $_moduleKey = 'module'; protected $_controller = 'wizard'; protected $_controllerKey = 'controller'; protected $_action = 'installDb'; protected $_actionKey = 'action' } )   ../Front.php:176
6   0.5502  5886736 Mage_Core_Controller_Varien_Action->dispatch( 'installDb' ) ../Standard.php:250
7   0.5669  6692776 Mage_Install_WizardController->installDbAction( )   ../Action.php:419
8   0.6027  7141188 Mage_Install_Model_Installer->installDb( )  ../WizardController.php:344
9   0.6046  7362904 Mage_Core_Model_Resource_Setup::applyAllUpdates( )  ../Installer.php:161
10  0.6052  7366236 Mage_Core_Model_Resource_Setup->applyUpdates( ) ../Setup.php:235
11  0.6062  7421544 Mage_Core_Model_Resource_Setup->_installResourceDb( '1.6.0.2' ) ../Setup.php:327
12  0.6091  7421736 Mage_Core_Model_Resource_Resource->setDbVersion( 'core_setup', '1.6.0.2' )  ../Setup.php:423

2 个答案:

答案 0 :(得分:1)

如果安装程序没有app/etc

中的写入权限,则可能会发生这种情况

答案 1 :(得分:0)

删除您的var文件夹。

我有同样的问题,删除var文件夹后,Magento安装顺利..

希望这会对你有所帮助。

相关问题