Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Problem after Upgrade
 
Andre
Member
 
Total Posts:  55
Joined:  2007-08-31
Mongolia
 

Hey,

I’ve just upgraded a store from 0.8 to the latest 0.9 release and now having the following errors when i try view a category or product (the cms pages work great, its just the categories):

exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'id #1237)) AND (store_id = '1') AND (attribute_id = '49')' at line 1' in /mnt/vol1/home/y/d/ydnace/public_html/lib/Zend/Db/Statement/Pdo.php:238
Stack trace:
#0 /mnt/vol1/home/y/d/ydnace/public_html/lib/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array)
#1 /mnt/vol1/home/y/d/ydnace/public_html/lib/Zend/Db/Adapter/Abstract.php(406): Zend_Db_Statement->execute(Array)
#2 /mnt/vol1/home/y/d/ydnace/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(206): Zend_Db_Adapter_Abstract->query(Object(Varien_Db_Select), Array)
#3 /mnt/vol1/home/y/d/ydnace/public_html/lib/Zend/Db/Adapter/Abstract.php(711): Zend_Db_Adapter_Pdo_Abstract->query(Object(Varien_Db_Select), Array)
#4 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/CatalogIndex/Model/Mysql4/Price.php(54): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select))
#5 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/CatalogIndex/Model/Price.php(38): Mage_CatalogIndex_Model_Mysql4_Price->getMaxValue(Object(Mage_Eav_Model_Entity_Attribute), Object(Zend_Db_Expr))
#6 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Catalog/Model/Layer/Filter/Price.php(71): Mage_CatalogIndex_Model_Price->getMaxValue(Object(Varien_Db_Select))
#7 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Catalog/Model/Layer/Filter/Price.php(53): Mage_Catalog_Model_Layer_Filter_Price->getMaxPriceInt()
#8 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Catalog/Model/Layer/Filter/Price.php(102): Mage_Catalog_Model_Layer_Filter_Price->getPriceRange()
#9 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Catalog/Model/Layer/Filter/Abstract.php(77): Mage_Catalog_Model_Layer_Filter_Price->_initItems()
#10 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Catalog/Model/Layer/Filter/Abstract.php(71): Mage_Catalog_Model_Layer_Filter_Abstract->getItems()
#11 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Catalog/Block/Layer/Filter/Abstract.php(93): Mage_Catalog_Model_Layer_Filter_Abstract->getItemsCount()
#12 /mnt/vol1/home/y/d/ydnace/public_html/app/design/frontend/default/default/template/catalog/layer/view.phtml(42): Mage_Catalog_Block_Layer_Filter_Abstract->getItemsCount()
#13 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Template.php(120): include('/mnt/vol1/home/...')
#14 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Template.php(152): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#15 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Template.php(169): Mage_Core_Block_Template->renderView()
#16 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Abstract.php(553): Mage_Core_Block_Template->_toHtml()
#17 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Text/List.php(36): Mage_Core_Block_Abstract->toHtml()
#18 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Abstract.php(553): Mage_Core_Block_Text_List->_toHtml()
#19 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Abstract.php(430): Mage_Core_Block_Abstract->toHtml()
#20 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Abstract.php(407): Mage_Core_Block_Abstract->_getChildHtml('left', true)
#21 /mnt/vol1/home/y/d/ydnace/public_html/app/design/frontend/default/default/template/page/3columns.phtml(42): Mage_Core_Block_Abstract->getChildHtml('left')
#22 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Template.php(120): include('/mnt/vol1/home/...')
#23 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Template.php(152): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#24 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Template.php(169): Mage_Core_Block_Template->renderView()
#25 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Block/Abstract.php(553): Mage_Core_Block_Template->_toHtml()
#26 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Model/Layout.php(505): Mage_Core_Block_Abstract->toHtml()
#27 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(318): Mage_Core_Model_Layout->getOutput()
#28 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Catalog/controllers/CategoryController.php(67): Mage_Core_Controller_Varien_Action->renderLayout()
#29 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(341): Mage_Catalog_CategoryController->viewAction()
#30 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(150): Mage_Core_Controller_Varien_Action->dispatch('view')
#31 /mnt/vol1/home/y/d/ydnace/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(147): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#32 /mnt/vol1/home/y/d/ydnace/public_html/app/Mage.php(421): Mage_Core_Controller_Varien_Front->dispatch()
#33 /mnt/vol1/home/y/d/ydnace/public_html/index.php(29): Mage::run('default')
#34 {main}

Can anyone help ?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andre
Member
 
Total Posts:  55
Joined:  2007-08-31
Mongolia
 

Any suggestions?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top