cancel
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 1.6.1.0 to 1.9.1.1. 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/moleculeclothing.eu/public_html/app/code/core/Mage/Core/Model/Email/Template/Abstract.php 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? 

 

3 REPLIES

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... 

http://community.magento.com/t5/Version-Upgrades/CE-1-9-1-1-No-new-order-mails-after-update/m-p/9541...

 

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 1.9.1.1, to 1.9.2.2.

Re: Fatal error: Undefined class constant 'XML_PATH_STORE_STORE_HOURS'

I have same issue i resolved it..

 

Solution:

 

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) 

 

D:\XAMPP\htdocs\upgrade\app\code\core\Mage\Core\Model\Store.php

TO

D:\XAMPP\htdocs\upgrade\app\code\local\Mage\Core\Model\Store.php 

 

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