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

Getting fatal error after having successfully upgraded from 1.4.0.1 to 1.4.1.1
 
Ivan Milanez
Jr. Member
 
Avatar
Total Posts:  17
Joined:  2010-08-16
Mexico City
 

Can anyone help, I just upgraded from version 1.4.0.1 to 1.4.1.1 and after clearing all sessions and deleting the cache I get the following error when I try to view any page in my site.

Fatal error: Undefined class constant ‘COUPON_TYPE_NO_COUPON’ in /var/www/html/app/code/core/Mage/SalesRule/sql/salesrule_setup/mysql4-upgrade-1.4.0.0.1-1.4.0.0.2.php on line 39

Can anyone tell me how to fix it?

I upgraded via Magento connect and installed the sales patch just to be sure it wasn’t that.

TIA
Ivan Milanez Castellanos

 
Magento Community Magento Community
Magento Community
Magento Community
 
weavers
Jr. Member
 
Total Posts:  2
Joined:  2010-04-08
 

I have also tried upgrading from 1.4.0.1 and have the same error..

Any help would be gratefully received.

Weavers

 
Magento Community Magento Community
Magento Community
Magento Community
 
xinhaozheng
Sr. Member
 
Total Posts:  107
Joined:  2009-03-09
 

i meet the same prob and i solve with the following step:

first ,clear sale rule related table
second,replace the class constant with corresponding value.then refresh the page.after successfully upgrade,undo the changes to the code.

 
Magento Community Magento Community
Magento Community
Magento Community
 
achitakayoh
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2008-10-19
 

Hello,

You just need to comment the line “include $compilerConfig” in your index.php, then you can go to the admin, refresh the compiler and uncomment this line.

Should work.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dx3webs
Sr. Member
 
Avatar
Total Posts:  178
Joined:  2008-12-16
 

just for the record.. you need to edit

/var/www/html/app/code/core/Mage/SalesRule/sql/salesrule_setup/mysql4-upgrade-1.4.0.0.1-1.4.0.0.2.php

change

'smallint unsigned NOT NULL DEFAULT "' Mage_SalesRule_Model_Rule::COUPON_TYPE_NO_COUPON '"'

to

'smallint unsigned NOT NULL DEFAULT "' '"'

and

coupon_type '" . Mage_SalesRule_Model_Rule::COUPON_TYPE_SPECIFIC . "';

to

coupon_type '" . 2 . "';

run the upgrade then change the code back agian… real pain!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Plumbing007
Jr. Member
 
Avatar
Total Posts:  1
Joined:  2011-11-10
Wayne
 

Thanks for sharing this.

Plumbing Lodi
Plumbing Mesquite
Plumbing Davie
West palm beach Plumbing

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