php - Magento Upgrade 1.5.1 to 1.9.1 now Cannot add the item to shopping cart -


i upgraded magento platform , working in admin , front end except shopping cart. here exception log.

when try add item cart, cart won't add product.

i upgraded on front end using 1.5.1 database columns added salescoupon table

2014-12-06t00:21:16+00:00 debug (7): exception message: sqlstate[42s22]: column not found: 1054 unknown column 'primary_coupon.code' in 'having clause',  query was: select `main_table`.*, `rule_coupons`.`code`, group_concat(extra_coupon.code) `extra` `salesrule` `main_table` left join `salesrule_coupon` `rule_coupons` on main_table.rule_id = rule_coupons.rule_id , rule_coupons.is_primary = 1 left join `salesrule_coupon` `extra_coupon` on extra_coupon.rule_id = main_table.rule_id , extra_coupon.is_primary null (is_active=1) , (find_in_set(1, website_ids)) , (find_in_set(0, customer_group_ids)) , (from_date null or from_date<='2014-12-05') , (to_date null or to_date>='2014-12-05')  group `main_table`.`rule_id` having ( primary_coupon.code in ('')  or find_in_set('', extra)) order `sort_order` asc  trace: 0 /var/www/vhosts/mymagentowebsite.com/shop/lib/varien/db/statement/pdo/mysql.php(110): zend_db_statement_pdo->_execute(array) 1 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/zend/db/statement.php(291): varien_db_statement_pdo_mysql->_execute(array) 2 /var/www/vhosts/mymagentowebsite.com/shop/lib/zend/db/adapter/abstract.php(480): zend_db_statement->execute(array) 3 /var/www/vhosts/mymagentowebsite.com/shop/lib/zend/db/adapter/pdo/abstract.php(238): zend_db_adapter_abstract->query('select `main_ta...', array) 4 /var/www/vhosts/mymagentowebsite.com/shop/lib/varien/db/adapter/pdo/mysql.php(428): zend_db_adapter_pdo_abstract->query('select `main_ta...', array) 5 /var/www/vhosts/mymagentowebsite.com/shop/lib/zend/db/adapter/abstract.php(737): varien_db_adapter_pdo_mysql->query('select `main_ta...', array) 6 /var/www/vhosts/mymagentowebsite.com/shop/lib/varien/data/collection/db.php(734): zend_db_adapter_abstract->fetchall('select `main_ta...', array) 7 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/core/model/resource/db/collection/abstract.php(521): varien_data_collection_db->_fetchall('select `main_ta...', array) 8 /var/www/vhosts/mymagentowebsite.com/shop/lib/varien/data/collection/db.php(566): mage_core_model_resource_db_collection_abstract->getdata() 9 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/salesrule/model/validator.php(124): varien_data_collection_db->load() 10 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/salesrule/model/quote/freeshipping.php(60): mage_salesrule_model_validator->init('1', 0, null) 11 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/sales/model/quote/address.php(1013): mage_salesrule_model_quote_freeshipping->collect(object(mage_sales_model_quote_address)) 12 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/sales/model/quote.php(1331): mage_sales_model_quote_address->collecttotals() 13 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/checkout/model/cart.php(458): mage_sales_model_quote->collecttotals() 14 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/checkout/controllers/cartcontroller.php(223): mage_checkout_model_cart->save() 15 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/core/controller/varien/action.php(418): mage_checkout_cartcontroller->addaction() 16 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/core/controller/varien/router/standard.php(250): mage_core_controller_varien_action->dispatch('add') 17 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/core/controller/varien/front.php(172): mage_core_controller_varien_router_standard->match(object(mage_core_controller_request_http)) 18 /var/www/vhosts/mymagentowebsite.com/shop/app/code/core/mage/core/model/app.php(354): mage_core_controller_varien_front->dispatch() 19 /var/www/vhosts/mymagentowebsite.com/shop/app/mage.php(684): mage_core_model_app->run(array) 20 /var/www/vhosts/mymagentowebsite.com/shop/index.php(87): mage::run('', 'store') 

21 {main}

try use magento database repair tool, should http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/db-repair-tool

take on thread:

uncaught exception 'pdoexception' message 'sqlstate[42s22]: column not found


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -