cancel
Showing results for 
Search instead for 
Did you mean: 

There has been an error processing your request - Exception printing is disabled by default for...

SOLVED
Highlighted

There has been an error processing your request - Exception printing is disabled by default for...

Hi,

I changed an image path in our Magento 1 shop and since then we get the error message above. I tried the solutions from the other people with the same problem but they don't work in our case.

 

The info in the report file is the following:

a:4:{i:0;s:41:"SQLSTATE[HY000] [2002] Connection refused";i:1;s:3412:"#0 /lib/Zend/Db/Adapter/Pdo/Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /lib/Varien/Db/Adapter/Pdo/Mysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /lib/Zend/Db/Adapter/Abstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 /app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 /app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 /app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 /app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 /app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 /app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#17 /app/code/core/Mage/Core/Model/App.php(608): Mage_Core_Model_Abstract->getCollection()
#18 /app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores()
#19 /app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 /app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /index.php(87): Mage::run('', 'store')
#22 {main}";s:3:"url";s:6:"/admin";s:11:"script_name";s:10:"/index.php";}

 

What SSH commands do we need to solve this error?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: There has been an error processing your request - Exception printing is disabled by default for.

Hello @HsDaughter ,

 

Please check app/etc/local.xml is available on this path. If not then please copy from any magento project and configure database detail.

 

If local.xml is available on that place then try to login on mysql with those detail. There is error on that place.

 

--
If my answer is useful, please Accept as Solution & give Kudos

 

View solution in original post

2 REPLIES 2

Re: There has been an error processing your request - Exception printing is disabled by default for.

Hello @HsDaughter ,

 

Please check app/etc/local.xml is available on this path. If not then please copy from any magento project and configure database detail.

 

If local.xml is available on that place then try to login on mysql with those detail. There is error on that place.

 

--
If my answer is useful, please Accept as Solution & give Kudos

 

View solution in original post

Highlighted

Re: There has been an error processing your request - Exception printing is disabled by default for.

 I am also experiencing this error.  In my case local.xml is available and is connecting mysql without any issues.

I also change server path to 127.0.0.1 from localhost as recommended in other threads

 

Can you please provide more input on what I should be looking for in mysql?

This is the error I am receiving.

Website front end is working fine and the website is functional. However  I suspect this error is causing the website to free at intervals and causing cpu to overload.

this  error is logged in var/reports in over 100 log files for the same timestamp.

Please advise.

a:4:{i:0;s:41:"SQLSTATE[HY000] [2002] Connection refused";i:1;s:2645: