Jump to content
lesteller

Fatal error: Class 'Validate' not found in /home/.....ublic_html/classes/ObjectModel.php on line 188

Recommended Posts

Hello,

 

After replacing false by true in Validate.php I get a blank page when I try to access to the URL where Prestashop 1.6 is installed. I can not access to Prestashop  :(

 

1) Line I modified in Validate.php:

 

public static function isCleanHtml($html, $allow_iframe = true)

 

 

2) To see the error I enabled the debug mode in the file defines.inc.php

 

/* Debug only */
define('_PS_MODE_DEV_', true);
/* Compatibility warning */
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);

if (_PS_MODE_DEV_) 

 

3) I get the error below when I go to the URL (www.dacsuministros.com) of my Prestashop shop:

 

Fatal error: Class 'Validate' not found in /home/dacsumin/domains/dacsuministros.com/public_html/classes/ObjectModel.php on line 188

 

 

4) I go to the line 188 in ObjectModel.php file and see the following lines, but do not know what is missing:

 

if (!Validate::isTableOrIdentifier($this->def['primary']) || !Validate::isTableOrIdentifier($this->def['table']))
throw new PrestaShopException('Identifier or table format not valid for class '.get_class($this));
 
 
Any idea about how to fix it? I would really appreciate it.
 
 

I upload the files in case it can help.

 

Many thanks in advance,

Levi

 

 

ObjectModel.php

defines.inc.php

Validate.php

Share this post


Link to post
Share on other sites

now you have to remove this file:

cache/class_index.php

 

after that it will start to work again.

  • Like 2

Share this post


Link to post
Share on other sites

now you have to remove this file:

cache/class_index.php

 

after that it will start to work again.

Thank you very much! It worked properly  :)

Share this post


Link to post
Share on other sites

Hi,

 

I have a similar issue on my website. Since tonight. Here is what appears on every single page :

 

Fatal error : Class 'Cache' not found in /www/classes/ObjectModel.php on line 1552

 

 

Here is the address : www.fabriqueabiere.com

 

I checked my FTP, I have no Cache folder. So I cannot delete the class_index.php file.

 

Where does this issue may come from ?

 

Thanks,

 

Edit : I have Prestashop 1.6

Edited by deportelle

Share this post


Link to post
Share on other sites

I have just got this error no idea why? please help!

 

Fatal error: Class 'Validate' not found in /classes/shop/Shop.php on line 646

Share this post


Link to post
Share on other sites
 

 

I got this error:

Fatal error: Class 'Validate' not found in /classes/shop/Shop.php on line 646

 

 

I just delete the file: cache/class_index.php and everything worked again! :)
 
Thank You.

Share this post


Link to post
Share on other sites
On 7/3/2014 at 9:04 PM, vekia said:

now you have to remove this file:

cache/class_index.php

 

after that it will start to work again.

Still working till version PS 1.6. @vekia you are my hero, saved my day!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More