由于以下错误,新安装的Magento无法正常工作。我使用的是php5-fpm和nginx。
搜索网络显示该错误可能与php-dom和simplexml有问题,我已经重新安装它们并更新到最新版本但该网站仍无效。
安装向导完成后,我从未见过首页和后端。
TIA
013/07/26 23:02:09 [error] 870#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to a member function setParent() on a non-object in /var/www/staging.site.com/lib/Varien/Simplexml/Element.php on line 440
PHP message: PHP Stack trace:
PHP message: PHP 1. {main}() /var/www/staging.site.com/index.php:0
PHP message: PHP 2. Mage::run() /var/www/staging.site.com/index.php:87
PHP message: PHP 3. Mage_Core_Model_App->run() /var/www/staging.site.com/app/Mage.php:683
PHP message: PHP 4. Mage_Core_Model_App->_initModules() /var/www/staging.site.com/app/code/core/Mage/Core/Model/App.php:343
PHP message: PHP 5. Mage_Core_Model_Config->loadDb() /var/www/staging.site.com/app/code/core/Mage/Core/Model/App.php:420
PHP message: PHP 6. Mage_Core_Model_Resource_Config->loadToXml() /var/www/staging.site.com/app/code/core/Mage/Core/Model/Config.php:354
PHP message: PHP 7. Varien_Simplexml_Element->extend() /var/www/staging.site.com/app/code/core/Mage/Core/Model/Resource/Config.php:112
PHP message: PHP 8. Varien_Simplexml_Element->extendChild() /var/www/staging.site.com/lib/Varien/Simplexml/Element.php:387" while reading response header from upstream, client: 112.198.90.162, server: staging.site.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "staging.site.com"