cancel
Showing results for 
Search instead for 
Did you mean: 

There has been an error processing your request...

SOLVED

There has been an error processing your request...

New Magento user here...

I was working on a local Magento 1.9 community site (set up on windows 10, Xampp) and all was going well when I had a power failure on the computer (power cut - no 'lecky for a day).  Anyway, when the power was restored, I booted up my computer and all seems well with the machine - it seems to work, I can access my MySQL dbs via PhpMyAdmin but I get an error when I try and view it in a browser:

 

SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.


Trace:
#0 C:\xampp\htdocs\swimbest\lib\Zend\Db\Adapter\Pdo\Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 C:\xampp\htdocs\swimbest\lib\Varien\Db\Adapter\Pdo\Mysql.php(396): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 C:\xampp\htdocs\swimbest\lib\Zend\Db\Adapter\Abstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 C:\xampp\htdocs\swimbest\lib\Zend\Db\Adapter\Pdo\Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 C:\xampp\htdocs\swimbest\lib\Varien\Db\Adapter\Pdo\Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Resource.php(179): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Resource\Db\Collection\Abstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Config.php(1357): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Config.php(1389): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 C:\xampp\htdocs\swimbest\app\Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#17 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\App.php(619): Mage_Core_Model_Abstract->getCollection()
#18 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\App.php(477): Mage_Core_Model_App->_initStores()
#19 C:\xampp\htdocs\swimbest\app\code\core\Mage\Core\Model\App.php(360): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 C:\xampp\htdocs\swimbest\app\Mage.php(684): Mage_Core_Model_App->run(Array)
#21 C:\xampp\htdocs\swimbest\index.php(83): Mage::run('', 'store')
#22 {main}

 

Does any one have any idea where I can start to fix this?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: There has been an error processing your request...

Fixed - All I needed to do was change the IP address of my local machine. Quick edit to ..app/ect/local.xml 

 

MySql on the dev computer was on a fixed IP, but my router was cooked by lighting so the replacement router gave the dev computer a new IP address. Duh!

View solution in original post

2 REPLIES 2

Re: There has been an error processing your request...

Fixed - All I needed to do was change the IP address of my local machine. Quick edit to ..app/ect/local.xml 

 

MySql on the dev computer was on a fixed IP, but my router was cooked by lighting so the replacement router gave the dev computer a new IP address. Duh!

Re: There has been an error processing your request...

As a rule, this message tells you nothing about the issues that need to be fixed. So to make it disappear you need to:

  1. Connect to your Magento 2 server via SSH or FTP.
  2. Navigate to the var/report folder where all Magento 2 error reports are stored.
  3. Open a file maned the same as the "Error log record number".

Find the following steps here: https://magefan.com/there-has-been-an-error-processing-your-request