Magento – checkout error Undefined class constant ‘CHECK_USE_FOR_COUNTRY’

magento-1.9onepage-checkout

I am having a rather serious problem with my magento installation.

when trying to put through a test order i note that suddenly my checkout is no longer working
i get the error

Fatal error: Undefined class constant 'CHECK_USE_FOR_COUNTRY' in
/public_html/includes/src/Mage_Payment_Block_Form_Container.php on
line 65

I have not actually done any changes to that file.

can anyone help

Best Answer

include/src/ is where magento places the 'compiled' classes. Do you have (or want) compilation mode to be enabled?

php -f shell/compiler.php -- state

Did you maybe install something, or recently clear the cache? Disable compilation, clear cache, then re-enable

php -f shell/compiler.php -- disable
php -f shell/compiler.php -- clear

Check outcome:

 php -f shell/compiler.php -- state

Now clear your cache, and re-enable compilation if you want to use it again. (but it could be possible that something got installed that does not work with compilation - which is an entire new question ;) )

Related Topic