Showing results for 
Search instead for 
Did you mean: 

Fatal error: Undefined class constant 'XML_PATH_STORE_STORE_HOURS'

Fatal error: Undefined class constant 'XML_PATH_STORE_STORE_HOURS'

Hi guys, 


I have an error. I've upgraded from magento to In general everything works great (that i know of Smiley Happy 


But when I place an order i'll get the followin error: 


Fatal error: Undefined class constant 'XML_PATH_STORE_STORE_HOURS' in/home/admin/domains/ on line 181

Me and the customer also wont get a transactional email, but the order is registred in the backend. 


Also when i want to send an email trough the backend to a customer, ill get the same error. Notes withiin an order are saved, but also with the same error. 


can't find any lead on google or on this forum. 


Can someone help me / push me in the right direction? 



Re: Fatal error: Undefined class constant 'XML_PATH_STORE_STORE_HOURS'

I've found the following topic and it pointed me in the right direction...


There was a folder /app/code/local/Mage/ and the Mage folder had still some old files in it. I think it overwrites the core files in the folder app/code/core/Mage


Renamed the folder Mage to Mage.bak and it solved my problem. 



Re: Fatal error: Undefined class constant 'XML_PATH_STORE_STORE_HOURS'

Can confirm this as a fix myself.


The other information in that link may be different to what you have. for example, in the Mage/Sales/Model/Order folder, the only file I had in there was Payment.php.


This also seems to have been an issue with upgrading from, to

Re: Fatal error: Undefined class constant 'XML_PATH_STORE_STORE_HOURS'

I have same issue i resolved it..




When you upgrade all the core file changed. so if you did any changes than you must always put core file in local (it's magento inherit) 






You can replace it OR


Just define constant (paste this on line Number 51)  

const XML_PATH_STORE_STORE_HOURS      = 'general/store_information/hours';


EnjoySmiley Happy