Jump to content

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

Link to comment
Share on other sites

  • 1 year later...

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 (see edit history)
Link to comment
Share on other sites

  • 3 months later...
  • 2 months later...
  • 3 years later...

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
×
×
  • Create New...