Posts tagged Class

magento-logo

Magento fix: while trying to access connect Fatal error: Class Exception not found in Frontend.php on line 90

0

Essentially you need to edit the level of error reporting to supress php from throwing this error.

so..

index.php

change

error_reporting(E_ALL | E_STRICT);

to

 error_reporting(E_ALL & E_STRICT & ~E_DEPRECATED);

In

lib/Varien/Pear.php

error_reporting(E_ALL & ~E_NOTICE);

to

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

4> downloader/Maged/Pear.php

error_reporting(E_ALL & ~E_NOTICE);

to

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

Fatal error: Undefined class constant ‘COUPON_TYPE_NO_COUPON’ in mysql4-upgrade-1.4.0.0.1-1.4.0.0.2.php

0

if you are seeing

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

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 "' . 1 . '"'

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 tip : Fatal error: Class ‘xxxxx’ not found in pathto/httpdocs/app/ Mage.php on line 520

0

We have seen this problem listed on just about every magento forum and blog.. Then we hit the error on one of our stores.

Essentially, you install a new module either from command line or Connect and immediately the site starts to throw this error either in backend or front or both.

The simple answer is to turn off compilation.. then install your module and re-run compilation.

Very annoying…

Go to Top