加载网站时Magento错误

时间:2015-06-24 09:04:56

标签: magento exception

在magento中收到此错误:

  

处理您的请求时出现异常打印异常   出于安全原因默认禁用。错误日志记录号:   506600012505

     

Magento是Magento Inc.的商标。版权所有©2012 Magento Inc.

错误日志记录编号各不相同。我更改了/lib/Zend/Cache/Backend/File.php中的一行并创建了一个tmp文件夹,但我的网站仍无效。

错误是:

Trace:
#0 /data/www/magento/release-20140930/www/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /data/www/magento/release-20140930/www/lib/Varien/Db/Adapter/Pdo/Mysql.php(313): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /data/www/magento/release-20140930/www/lib/Zend/Db/Adapter/Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /data/www/magento/release-20140930/www/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(‘SET NAMES utf8′, Array)
#4 /data/www/magento/release-20140930/www/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query(‘SET NAMES utf8′, Array)
#5 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query(‘SET NAMES utf8′)
#6 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection(‘pdo_mysql’, Object(Mage_Core_Model_Config_Element))
#7 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection(‘core_write’)
#8 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection(‘write’)
#9 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance(‘core_resource/w…’, Object(Mage_Core_Model_Resource_Website))
#14 /data/www/magento/release-20140930/www/app/Mage.php(490): Mage_Core_Model_Config->getResourceModelInstance(‘core/website_co…’, Object(Mage_Core_Model_Resource_Website))
#15 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel(‘core/website_co…’, Object(Mage_Core_Model_Resource_Website))
#16 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#17 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/App.php(608): Mage_Core_Model_Abstract->getCollection()
#18 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores()
#19 /data/www/magento/release-20140930/www/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore(”, ‘store’)
#20 /data/www/magento/release-20140930/www/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#21 /data/www/magento/release-20140930/www/index.php(91): Mage::run(”, ‘store’)
#22 {main}

你能帮我解决一下吗?

1 个答案:

答案 0 :(得分:0)

检查var/log/system.logvar/log/exception.log

打开文件(如果是远程ssh终端,则可以使用pico system.log。输入Ctrl+W+V会使您到达文件底部,显示最新错误。)

这些可以更具体地告诉您导致错误的原因。