2

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

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

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

我已经清除了整个 webroot 并再次解压所有内容,运行安装程序。但每次我得到同样的错误。

我能做些什么?

谢谢,阿诺


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

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
4

2 回答 2

1

如果安装程序没有写入权限,则可能会发生这种情况app/etc

于 2013-06-23T18:27:00.350 回答
0

删除您的 var 文件夹。

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

希望这对您有所帮助。

于 2014-09-12T09:30:32.290 回答