cancel
Showing results for 
Search instead for 
Did you mean: 

My webshop is offline and gives error undefined class constant

SOLVED

My webshop is offline and gives error undefined class constant

Hi,

I hope somebody can help me here. I am totally not experienced with technical issues in Magento. I receive an error starting my site. Someone similar with this issue? Hope you guys can get me online!

 

Error:

Fatal error: Undefined class constant 'CACHE_GROUP' in /home/deb126395/domains/lapparts.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php on line 1075

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: My webshop is offline and gives error undefined class constant

Hi @parts 

 

Can you check in your Abstract.php file if below code is present at line 46.

 

const CACHE_GROUP = 'block_html';

If it is not present then please add this code at line 46.

 

Hope it helps you!

 

Thanks

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution".

View solution in original post

Re: My webshop is offline and gives error undefined class constant

Hi Rahul,

Version 1.4.1

Php 5.6.40

 

Regards Lapparts

View solution in original post

5 REPLIES 5

Re: My webshop is offline and gives error undefined class constant

Hi @parts 

 

Can you check in your Abstract.php file if below code is present at line 46.

 

const CACHE_GROUP = 'block_html';

If it is not present then please add this code at line 46.

 

Hope it helps you!

 

Thanks

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution".

Re: My webshop is offline and gives error undefined class constant

Thanks Rahul for your reply.

 

The code is not missing, see below.

abstract class Mage_Core_Block_Abstract extends Varien_Object
{
/**
* Prefix for cache key
*/
const CACHE_KEY_PREFIX = 'BLOCK_';
/**
const CACHE_GROUP = 'block_html';
/**
* Block name in layout

 

 

Re: My webshop is offline and gives error undefined class constant

It says it gives a problem at line 1075.

Re: My webshop is offline and gives error undefined class constant

Hi @parts 

 

Which magento version are you currently using?

 

Also let me know your current php version.

 

Thanks!

Re: My webshop is offline and gives error undefined class constant

Hi Rahul,

Version 1.4.1

Php 5.6.40

 

Regards Lapparts