Magento Source Model Not Found For attribute em_bonus - php

I see similar issues and work around suggestions but no luck. Following below is my code trace error while I try to open a product/add product from backend in Magento 1.9
Source model "opendealsettings/bonus" not found for attribute "em_bonus"
Trace:
#0 C:\xampp\htdocs\app\code\core\Mage\Eav\Model\Entity\Attribute\Abstract.php(388): Mage::exception('Mage_Eav', 'Source model "o...')
#1 C:\xampp\htdocs\app\code\core\Mage\Adminhtml\Block\Widget\Form.php(201): Mage_Eav_Model_Entity_Attribute_Abstract->getSource()
#2 C:\xampp\htdocs\app\code\core\Mage\Adminhtml\Block\Catalog\Product\Edit\Tab\Attributes.php(70): Mage_Adminhtml_Block_Widget_Form->_setFieldset(Array, Object(Varien_Data_Form_Element_Fieldset), Array)
#3 C:\xampp\htdocs\app\code\core\Mage\Adminhtml\Block\Widget\Form.php(144): Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Attributes->_prepareForm()
#4 C:\xampp\htdocs\app\code\core\Mage\Core\Block\Abstract.php(922): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml()
#5 C:\xampp\htdocs\app\code\core\Mage\Adminhtml\Block\Catalog\Product\Edit\Tabs.php(79): Mage_Core_Block_Abstract->toHtml()
#6 C:\xampp\htdocs\app\code\core\Mage\Core\Block\Abstract.php(297): Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs->_prepareLayout()
#7 C:\xampp\htdocs\app\code\core\Mage\Core\Model\Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#8 C:\xampp\htdocs\app\code\core\Mage\Core\Model\Layout.php(472): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'product_tabs')
#9 C:\xampp\htdocs\app\code\core\Mage\Core\Model\Layout.php(239): Mage_Core_Model_Layout->addBlock('adminhtml/catal...', 'product_tabs')
#10 C:\xampp\htdocs\app\code\core\Mage\Core\Model\Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#11 C:\xampp\htdocs\app\code\core\Mage\Core\Model\Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#12 C:\xampp\htdocs\app\code\core\Mage\Core\Controller\Varien\Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#13 C:\xampp\htdocs\app\code\core\Mage\Core\Controller\Varien\Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#14 C:\xampp\htdocs\app\code\core\Mage\Adminhtml\Controller\Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(Array, true, true)
#15 C:\xampp\htdocs\app\code\core\Mage\Adminhtml\controllers\Catalog\ProductController.php(249): Mage_Adminhtml_Controller_Action->loadLayout(Array)
#16 C:\xampp\htdocs\app\code\core\Mage\Core\Controller\Varien\Action.php(418): Mage_Adminhtml_Catalog_ProductController->editAction()
#17 C:\xampp\htdocs\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('edit')
#18 C:\xampp\htdocs\app\code\core\Mage\Core\Controller\Varien\Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 C:\xampp\htdocs\app\code\core\Mage\Core\Model\App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#20 C:\xampp\htdocs\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#21 C:\xampp\htdocs\index.php(83): Mage::run('', 'store')
#22 {main}

Seem this attribute was created with an extensions that is no longer in use.
Try to delete this attribute from "Admin - Catalog - Manage Attributes". If it does not work you can create a script in magentos root with this content:
require 'app/Mage.php';
Mage::app('admin');
$setup = Mage::getModel('eav/entity_setup', 'core_setup');
$setup->startSetup();
$setup->removeAttribute('catalog_product', 'em_bonus');
$setup->endSetup();

Related

Payment methods in configuration tab keep loading in Magento 1.9

I'm trying to add a payment method. But after adding it I can't access the payment methods any more. I get the following errors from the log:
a:5:{i:0;s:243:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, query was: SELECT `core_translate`.`string`, `core_translate`.`translate` FROM `core_translate` WHERE (store_id IN (0 , :store_id)) AND (locale = :locale) ORDER BY `store_id` ASC";i:1;s:2919:"#0 /home/fitelegance/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/fitelegance/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/fitelegance/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/fitelegance/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `core_tr...', Array)
#4 /home/fitelegance/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `core_tr...', Array)
#5 /home/fitelegance/public_html/lib/Zend/Db/Adapter/Abstract.php(811): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/Resource/Translate.php(79): Zend_Db_Adapter_Abstract->fetchPairs(Object(Varien_Db_Select), Array)
#7 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/Translate.php(289): Mage_Core_Model_Resource_Translate->getTranslationArray(NULL, 'en_US')
#8 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/Translate.php(142): Mage_Core_Model_Translate->_loadDbTranslation(false)
#9 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/App/Area.php(146): Mage_Core_Model_Translate->init('adminhtml')
#10 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/App/Area.php(121): Mage_Core_Model_App_Area->_initTranslate()
#11 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/App/Area.php(93): Mage_Core_Model_App_Area->_loadPart('translate')
#12 /home/fitelegance/public_html/app/code/core/Mage/Core/Model/App.php(789): Mage_Core_Model_App_Area->load()
#13 /home/fitelegance/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(512): Mage_Core_Model_App->loadArea('adminhtml')
#14 /home/fitelegance/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#15 /home/fitelegance/public_html/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(51): Mage_Adminhtml_Controller_Action->preDispatch()
#16 /home/fitelegance/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_System_ConfigController->preDispatch()
#17 /home/fitelegance/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('edit')
#18 /home/fitelegance/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/fitelegance/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#20 /home/fitelegance/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /home/fitelegance/public_html/index.php(83): Mage::run('', 'store')
#22 {main}";s:3:"url";s:89:"/index.php/admin/system_config/edit/section/payment/key/cb234a6ffb16ee3ba89eab23539e9421/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}
I removed all of the files for the payment methods but still am having the same issue. While I click on the Payment Methods tab, the browser keeps loading and creates the above errors in the log file.
Please suggest how can I solve this.

Admin Edit single product or manage categories error

I was make last things to magento ecommerce committed by a customer of mine. I was looking in admin if all is good and I found when i click in a signle product or click in manage categories, magento crash and give me the famous "
There has been an error processing your request.
Below the full error:
a:5:{i:0;s:100:"Sorgente modello "instagramconnect/source_instagram" non trovata per l\'attributo "instagram_source"";i:1;s:3200:"#0 /Applications/MAMP/htdocs/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(390): Mage::exception('Mage_Eav', 'Sorgente modell...')
#1 /Applications/MAMP/htdocs/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(203): Mage_Eav_Model_Entity_Attribute_Abstract->getSource()
#2 /Applications/MAMP/htdocs/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php(70): Mage_Adminhtml_Block_Widget_Form->_setFieldset(Array, Object(Varien_Data_Form_Element_Fieldset), Array)
#3 /Applications/MAMP/htdocs/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(144): Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Attributes->_prepareForm()
#4 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Block/Abstract.php(922): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml()
#5 /Applications/MAMP/htdocs/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php(79): Mage_Core_Block_Abstract->toHtml()
#6 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Block/Abstract.php(297): Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs->_prepareLayout()
#7 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#8 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'product_tabs')
#9 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('adminhtml/catal...', 'product_tabs')
#10 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#11 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#12 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#13 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#14 /Applications/MAMP/htdocs/app/code/core/Mage/Adminhtml/Controller/Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(Array, true, true)
#15 /Applications/MAMP/htdocs/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(250): Mage_Adminhtml_Controller_Action->loadLayout(Array)
#16 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_Catalog_ProductController->editAction()
#17 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('edit')
#18 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 /Applications/MAMP/htdocs/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#20 /Applications/MAMP/htdocs/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /Applications/MAMP/htdocs/index.php(82): Mage::run('', 'store')
#22 {main}";s:3:"url";s:97:"/index.php/admin/catalog_product/edit/id/2809/key/f476404be4de46eba4e407d47f104f0c/css/styles.css";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}
Tried to reindex all, to delete cache, but nothing changed.
Any ideas?

Magento administration - error when trying to access categories (catalog - categories)

I get this error when trying to enter catalog/categories, I have tried everything possible with no result, my version of Magento is 1.7:
There has been an error processing your request
Source model "legenda/system_config_source_attribute_columns" not found for attribute "sw_lg_cat_design"
Trace:
#0 /home/tricka/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(387): Mage::exception('Mage_Eav', 'Source model "l...')
#1 /home/tricka/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(201): Mage_Eav_Model_Entity_Attribute_Abstract->getSource()
#2 /home/tricka/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php(113): Mage_Adminhtml_Block_Widget_Form->_setFieldset(Array, Object(Varien_Data_Form_Element_Fieldset))
#3 /home/tricka/app/code/local/GoMage/Navigation/Block/Adminhtml/Catalog/Category/Tab/Attributes.php(183): Mage_Adminhtml_Block_Catalog_Category_Tab_Attributes->_prepareForm()
#4 /home/tricka/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(144): GoMage_Navigation_Block_Adminhtml_Catalog_Category_Tab_Attributes->_prepareForm()
#5 /home/tricka/app/code/core/Mage/Core/Block/Abstract.php(862): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml()
#6 /home/tricka/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php(140): Mage_Core_Block_Abstract->toHtml()
#7 /home/tricka/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Catalog_Category_Tabs->_prepareLayout()
#8 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#9 /home/tricka/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php(55): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'tabs')
#10 /home/tricka/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Catalog_Category_Edit_Form->_prepareLayout()
#11 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#12 /home/tricka/app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php(82): Mage_Core_Model_Layout->createBlock('adminhtml/catal...')
#13 /home/tricka/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Widget_Form_Container->_prepareLayout()
#14 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#15 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'category.edit')
#16 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('adminhtml/catal...', 'category.edit')
#17 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#18 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#19 /home/tricka/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#20 /home/tricka/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#21 /home/tricka/app/code/core/Mage/Adminhtml/Controller/Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
#22 /home/tricka/app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php(201): Mage_Adminhtml_Controller_Action->loadLayout()
#23 /home/tricka/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Adminhtml_Catalog_CategoryController->editAction()
#24 /home/tricka/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit')
#25 /home/tricka/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#26 /home/tricka/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#27 /home/tricka/app/Mage.php(698): Mage_Core_Model_App->run(Array)
#28 /home/tricka/index.php(87): Mage::run('tricka_cz', 'website')
#29 {main}
go via cPanel
find table mage_eav_attribute
erase tables that starts with sw_
You have most certainly installed a theme that uploads attribute to database.

Magento : Empty cart page and checkout page error

I have issue on the magento 1.9.0.1
i got this error on the check out page i have try many solution from the google but not working for me so can you please suggest some good idea.
Invalid method Mage_Page_Block_Html::addItemRender(Array
(
[0] => bundle
[1] => bundle/checkout_cart_item_renderer
[2] => checkout/onepage/review/item.phtml
)
)
Trace:
#0 [internal function]: Varien_Object->__call('addItemRender', Array)
#1 [internal function]: Mage_Page_Block_Html->addItemRender('bundle', 'bundle/checkout...', 'checkout/onepag...')
#2 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Model/Layout.php(348): call_user_func_array(Array, Array)
#3 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Model/Layout.php(214): Mage_Core_Model_Layout->_generateAction(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#4 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#5 /homepages/0/d530282576/htdocs/shop/app/code/community/IWD/Opc/Block/Wrapper.php(31): Mage_Core_Model_Layout->generateBlocks()
#6 /homepages/0/d530282576/htdocs/shop/app/design/frontend/base/default/template/opc/wrapper.phtml(54): IWD_Opc_Block_Wrapper->_getReviewHtml()
#7 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Template.php(260): include('/homepages/0/d5...')
#8 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Template.php(291): Mage_Core_Block_Template->fetchView('frontend/base/d...')
#9 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Template.php(305): Mage_Core_Block_Template->renderView()
#10 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#11 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#12 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#13 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#14 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#15 /homepages/0/d530282576/htdocs/shop/app/design/frontend/shopper/default/template/page/1column.phtml(56): Mage_Core_Block_Abstract->getChildHtml('content')
#16 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Template.php(260): include('/homepages/0/d5...')
#17 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Template.php(291): Mage_Core_Block_Template->fetchView('frontend/shoppe...')
#18 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Template.php(305): Mage_Core_Block_Template->renderView()
#19 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#20 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#21 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#22 /homepages/0/d530282576/htdocs/shop/app/code/community/IWD/Opc/controllers/IndexController.php(127): Mage_Core_Controller_Varien_Action->renderLayout()
#23 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(418): IWD_Opc_IndexController->indexAction()
#24 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#25 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#26 /homepages/0/d530282576/htdocs/shop/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#27 /homepages/0/d530282576/htdocs/shop/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#28 /homepages/0/d530282576/htdocs/shop/index.php(87): Mage::run('', 'store')
#29 {main}
I have also one error on my cart page it just display empty. I have tested with template hint and it just show that like bellow
frontend/base/default/template/catalog/msrp/popup.phtml
I have resolved my issue. I have just make back up of my checkout template folder and checkout.xml of current theme and copy checkout folder and checkout.xml from the base and it works for me.
My be its my theme issue. I have issue shopper theme. and in the layout folder there is not any xml of checkout.

Magento keep throwing SQLState no such file or directory error

I am running magento on VPS server with APC enabled, nginx reverse proxy and apache with MYSQL. But I keep getting this error on report folder and sometimes site is down due to that. Can you please guide me how can i fix it. There's no funny xml file inside app/etc/ as well. Thank you.
a:4:{i:0;s:48:"SQLSTATE[HY000] [2002] No such file or directory";i:1;s:3103:"#0 /home/magen/public_html/shop/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /home/magen/public_html/shop/lib/Varien/Db/Adapter/Pdo/Mysql.php(313): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /home/magen/public_html/shop/lib/Zend/Db/Adapter/Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /home/magen/public_html/shop/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /home/magen/public_html/shop/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 /home/magen/public_html/shop/app/Mage.php(490): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#17 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/App.php(608): Mage_Core_Model_Abstract->getCollection()
#18 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores()
#19 /home/magen/public_html/shop/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 /home/magen/public_html/shop/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#21 /home/magen/public_html/shop/index.php(87): Mage::run('', 'store')
#22 {main}";s:3:"url";s:6:"/shop/";s:11:"script_name";s:15:"/shop/index.php";}

Categories