Whenever you see this error:
|
You can do as followed:
1. Locate the root directory where your Magento is installed. Search for “errors” directory.
2. Change the filename of local.xml.sample to local.xml
3. Reload the page where it shows error message, you will see a full list of error message – The purpose of rename local.xml is to allow the full error message to be shown.
4. Now, locate magento_directory/lib/Zend/Cache/Backend/File.php and look for:
1 2 |
protected $_options = array( 'cache_dir' => 'null', |
Replace it with:
1 2 |
protected $_options = array( 'cache_dir' => 'tmp/', |
And save the file.
Recommended reading: How to choose a good magento hosting for your business
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘mageproductid ‘ in ‘where clause’, query was: SELECT
main_table
.* FROMmarketplace_product
ASmain_table
WHERE (mageproductid
= ”)Trace:
#0 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(‘SELECT
main_ta...', Array)
main_ta…’, Array)#4 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT
#5 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/lib/Zend/Db/Adapter/Abstract.php(737): Varien_Db_Adapter_Pdo_Mysql->query(‘SELECT
main_ta...', Array)
main_ta…’, Array)#6 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/lib/Varien/Data/Collection/Db.php(740): Zend_Db_Adapter_Abstract->fetchAll('SELECT
#7 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(521): Varien_Data_Collection_Db->_fetchAll(‘SELECT `main_ta…’, Array)
#8 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/lib/Varien/Data/Collection/Db.php(572): Mage_Core_Model_Resource_Db_Collection_Abstract->getData()
#9 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/lib/Varien/Data/Collection.php(741): Varien_Data_Collection_Db->load()
#10 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/local/Webkul/Marketplace/Model/Observer.php(251): Varien_Data_Collection->getIterator()
#11 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/core/Mage/Core/Model/App.php(1357): Webkul_Marketplace_Model_Observer->SaveProduct(Object(Varien_Event_Observer))
#12 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/core/Mage/Core/Model/App.php(1336): Mage_Core_Model_App->_callObserverMethod(Object(Webkul_Marketplace_Model_Observer), ‘SaveProduct’, Object(Varien_Event_Observer))
#13 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent(‘catalog_product…’, Array)
#14 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(671): Mage::dispatchEvent(‘catalog_product…’, Array)
#15 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(725): Mage_Adminhtml_Catalog_ProductController->_initProductSave()
#16 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_Catalog_ProductController->saveAction()
#17 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch(‘save’)
#18 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#20 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /home/33703-25844.cloudwaysapps.com/cfwfdkzcbd/public_html/index.php(83): Mage::run(”, ‘store’)
#22 {main}
still i have same problem….. what should i do….
I still have errors.why ?
in this website, I have change lib/zend/cache/Backend/File.php
where ‘cache_dir’ => null, I change ‘cache_dir’ => tmp/,
before change my website seen a error but after change this showing null (blank); so please help me, for solve this problem.
thanks
Hi.Dear’s,
I have follow your all recommended points for this solution but now its showing this error .
My website links http://myikart.com/
and my website admin pannael link is http://myikart.com/index.php/admin/
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
Trace:
#0 /home/myi2014/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/myi2014/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/myi2014/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /home/myi2014/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(‘SELECT
admin_u...', Array)
admin_u…’, Array)#4 /home/myi2014/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SELECT
#5 /home/myi2014/public_html/lib/Zend/Db/Adapter/Abstract.php(753): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /home/myi2014/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(380): Zend_Db_Adapter_Abstract->fetchRow(Object(Varien_Db_Select))
#7 /home/myi2014/public_html/app/code/core/Mage/Core/Model/Abstract.php(225): Mage_Core_Model_Resource_Db_Abstract->load(Object(Mage_Admin_Model_User), ’1′, NULL)
#8 /home/myi2014/public_html/app/code/core/Mage/Admin/Model/User.php(396): Mage_Core_Model_Abstract->load(’1′)
#9 /home/myi2014/public_html/app/code/core/Mage/Admin/Model/Observer.php(62): Mage_Admin_Model_User->reload()
#10 /home/myi2014/public_html/app/code/core/Mage/Core/Model/App.php(1338): Mage_Admin_Model_Observer->actionPreDispatchAdmin(Object(Varien_Event_Observer))
#11 /home/myi2014/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Admin_Model_Observer), ‘actionPreDispat…’, Object(Varien_Event_Observer))
#12 /home/myi2014/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent(‘controller_acti…’, Array)
#13 /home/myi2014/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(527): Mage::dispatchEvent(‘controller_acti…’, Array)
#14 /home/myi2014/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#15 /home/myi2014/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()
#16 /home/myi2014/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(‘noRoute’)
#17 /home/myi2014/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#18 /home/myi2014/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#19 /home/myi2014/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#20 /home/myi2014/public_html/index.php(87): Mage::run(”, ‘store’)
#21 {main}
when successful done your above mention point so i found these error .
I have tried everything above including things that are mentioned in the comments and I am still getting the following after updating from Magento 1.9.0.1 to 1.9.1.0:
Error in file: “/opt/bitnami/apache2/htdocs/app/code/core/Mage/Core/sql/core_setup/upgrade-1.6.0.5-1.6.0.6.php” – SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘mage_core_email_queue’ already exists, query was: CREATE TABLE
mage_core_email_queue
(message_id
int UNSIGNED NOT NULL auto_increment COMMENT ‘Message Id’ ,entity_id
int UNSIGNED NULL COMMENT ‘Entity ID’ ,entity_type
varchar(128) NULL COMMENT ‘Entity Type’ ,event_type
varchar(128) NULL COMMENT ‘Event Type’ ,message_body_hash
varchar(64) NOT NULL COMMENT ‘Message Body Hash’ ,message_body
mediumtext NOT NULL COMMENT ‘Message Body’ ,message_parameters
text NOT NULL COMMENT ‘Message Parameters’ ,created_at
timestamp NULL default NULL COMMENT ‘Creation Time’ ,processed_at
timestamp NULL default NULL COMMENT ‘Finish Time’ ,PRIMARY KEY (
message_id
),INDEX
747D3AF379628D00D009E037E2942C80
(entity_id
,entity_type
,event_type
,message_body_hash
)) COMMENT=’Email Queue’ ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
Trace:
#0 /opt/bitnami/apache2/htdocs/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception(‘Mage_Core’, ‘Error in file: …’)
#1 /opt/bitnami/apache2/htdocs/app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb(‘upgrade’, ’1.6.0.4′, ’1.6.0.6′)
#2 /opt/bitnami/apache2/htdocs/app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb(’1.6.0.4′, ’1.6.0.6′)
#3 /opt/bitnami/apache2/htdocs/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /opt/bitnami/apache2/htdocs/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /opt/bitnami/apache2/htdocs/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /opt/bitnami/apache2/htdocs/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /opt/bitnami/apache2/htdocs/index.php(87): Mage::run(”, ‘store’)
#8 {main}
Hi Patrick, did you try to repair the table?
It hasn’t solved my problem…
I have this problem:
There has been an error processing your request
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘magento.{{namespace}}’ doesn’t exist
Hi Brian,
Thank you very much for your help !!
I did exactly what you mention above.
But can you explain me why this happen suddently. My website was perflectly running for months, then today, this problem occurs….
what does this ?
I only want to know so that wont happen again.
Big thx
Jean
Hi Jean,
I think you should find out what caused the issue (did you install new extensions, themes or something else?). You can also check error log.
We can figure out the solution if we know exactly where the issue come from.
I have followed exact steps, but the problem still seems to be there. ;/
Hello Brian, thank you for this. I have attempted your solution as you explain here and appears to have almost worked, however, after creating the tmp directory and reloading the page all that is shown is a blank, white page. Do you have any insight into why this would happen and possibly what will resolve this issue at this point?
Hi Macelina,
Did you try clearing cache?
Dear Brian
After foloowing all steps .. still getting
Parse error: syntax error, unexpected ‘/’, expecting ‘)’ in /home/aruhe/public_html/watch/lib/Zend/Cache/Backend/File.php on line 99
I think this magento cms does not deserve more time
There has been an error processing your request
Error in file: “C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\sql\core_setup\install-1.6.0.0.php” – SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘core_resource’ already exists
Trace:
#0 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception(‘Mage_Core’, ‘Error in file: …’)
#1 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb(‘install’, ”, ’1.6.0.4′)
#2 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb(’1.6.0.4′)
#3 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\App.php(343): Mage_Core_Model_App->_initModules()
#6 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\Mage.php(684): Mage_Core_Model_App->run(Array)
#7 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\index.php(87): Mage::run(”, ‘store’)
#8 {main}
Error log record number: 1346875454
DearBrian, once again I typed on broser “http://127.0.0.1/magento/” but different errors(
Parse error: syntax error, unexpected ‘/’, expecting ‘)’ in C:\Program Files (x86)\Zend\Apache2\htdocs\magento\lib\Zend\Cache\Backend\File.php on line 91) found.
Plz reply me soon…
Hi ! Brian,Thanks for ur answer.
I had gone according to ur steps but when I created new folder tmp in Magento directory as showing here (C:\Program Files (x86)\Zend\Apache2\htdocs\magento\tmp) and refresh the web page(http://127.0.0.1/magento/errors/report.php?id=145867946&skin=default) where trying to install magento but it wouldn’t solve. Plz fix it.I need very fast response from ur side since Im doing Live work with Magento and my deadline is very less.
Here I am showing error message through web broser with magento installation :
There has been an error processing your request
Error in file: “C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\sql\core_setup\install-1.6.0.0.php” – SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘core_resource’ already exists
Trace:
#0 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception(‘Mage_Core’, ‘Error in file: …’)
#1 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb(‘install’, ”, ’1.6.0.4′)
#2 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb(’1.6.0.4′)
#3 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\code\core\Mage\Core\Model\App.php(343): Mage_Core_Model_App->_initModules()
#6 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\app\Mage.php(684): Mage_Core_Model_App->run(Array)
#7 C:\Program Files (x86)\Zend\Apache2\htdocs\magento\index.php(87): Mage::run(”, ‘store’)
#8 {main}
Error log record number: 145867946.
———————————————————
Im using magento 1.8 and Zend server.
thank you for you idea.
here has been an error processing your request
Invalid method Mage_Catalog_Block_Product_View_Type_Grouped::displayProductStockStatus(Array
(
)
)
Trace:
#0 /home/wwwnew/public_html/steel/app/design/frontend/default/modernn/template/catalog/product/view/type/grouped.phtml(8): Varien_Object->__call(‘displayProductS…’, Array)
#1 /home/wwwnew/public_html/steel/app/design/frontend/default/modernn/template/catalog/product/view/type/grouped.phtml(8): Mage_Catalog_Block_Product_View_Type_Grouped->displayProductStockStatus()
#2 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Template.php(241): include(‘/home/wwwnew/pu…’)
#3 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
#4 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#5 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#6 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#7 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml(‘product_type_da…’, true)
#8 /home/wwwnew/public_html/steel/app/design/frontend/default/modernn/template/catalog/product/view.phtml(59): Mage_Core_Block_Abstract->getChildHtml(‘product_type_da…’)
#9 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Template.php(241): include(‘/home/wwwnew/pu…’)
#10 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
#11 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#12 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#13 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#14 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
#15 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#16 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml(‘content’, true)
#17 /home/wwwnew/public_html/steel/app/design/frontend/default/forest_lingeries/template/page/2columns-right.phtml(54): Mage_Core_Block_Abstract->getChildHtml(‘content’)
#18 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Template.php(241): include(‘/home/wwwnew/pu…’)
#19 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
#20 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#21 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#22 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#23 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#24 /home/wwwnew/public_html/steel/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#25 /home/wwwnew/public_html/steel/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), ‘no-route’)
#26 /home/wwwnew/public_html/steel/app/code/core/Mage/Cms/controllers/IndexController.php(75): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), ‘no-route’)
#27 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Cms_IndexController->noRouteAction()
#28 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(‘noRoute’)
#29 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#30 /home/wwwnew/public_html/steel/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#31 /home/wwwnew/public_html/steel/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#32 /home/wwwnew/public_html/steel/index.php(87): Mage::run(”, ‘store’)
#33 {main}
please send me solution, i am struggling for this….
i have tried the following,but the error massage still presist.
Trace:
#0 /var/www/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/lib/Varien/Db/Adapter/Pdo/Mysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/lib/Zend/Db/Adapter/Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /var/www/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(‘SET NAMES utf8′, Array)
#4 /var/www/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query(‘SET NAMES utf8′, Array)
#5 /var/www/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query(‘SET NAMES utf8′)
#6 /var/www/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection(‘pdo_mysql’, Object(Mage_Core_Model_Config_Element))
#7 /var/www/app/code/core/Mage/Core/Model/Resource/Setup.php(141): Mage_Core_Model_Resource->getConnection(‘core_setup’)
#8 /var/www/app/code/core/Mage/Core/Model/Resource/Setup.php(234): Mage_Core_Model_Resource_Setup->__construct(‘core_setup’)
#9 /var/www/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#10 /var/www/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#11 /var/www/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#12 /var/www/index.php(87): Mage::run(”, ‘store’)
#13 {main}
This is a lower-level problem (from what I can tell). Either MySQL isn’t running, there’s a firewall in the way, you’re connecting on the wrong port or maybe the credentials are wrong. You need to do some more troubleshooting.
Ensure you updated both local.xml and config.xml with db credentials. Do not install Zend, all zend stuff is bundled in with Magento. Asdwjv says this is not a magento issue per say but a connection issue, so check your credentials in the mentioned files and retry. Manually delete the contents of /magento/var/cache so it can pickup the updated values in the xml files. If that doesn’t do it tehn something else must be stopping it from connecting. Is the db on the same machine as the site. If so replace the IP address with 127.0.0.1 –