lesteller Posted July 3, 2014 Share Posted July 3, 2014 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 More sharing options...
El Patron Posted July 3, 2014 Share Posted July 3, 2014 rather than modify core, you can allow iframes from back office http://screencast.com/t/TwfgKMHIASq Link to comment Share on other sites More sharing options...
vekia Posted July 3, 2014 Share Posted July 3, 2014 now you have to remove this file: cache/class_index.php after that it will start to work again. 4 1 Link to comment Share on other sites More sharing options...
lesteller Posted July 4, 2014 Author Share Posted July 4, 2014 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 Link to comment Share on other sites More sharing options...
lesteller Posted July 4, 2014 Author Share Posted July 4, 2014 rather than modify core, you can allow iframes from back office http://screencast.com/t/TwfgKMHIASq Many thanks for your screenshot! I enabled the iframes form back office and it is working properly! :-) Link to comment Share on other sites More sharing options...
deportelle Posted July 31, 2015 Share Posted July 31, 2015 (edited) 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 July 31, 2015 by deportelle (see edit history) Link to comment Share on other sites More sharing options...
kamaaina Posted November 6, 2015 Share Posted November 6, 2015 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 Link to comment Share on other sites More sharing options...
kamaaina Posted November 6, 2015 Share Posted November 6, 2015 ok! deleted class_cache/index.php file works again - thanks for suggestion. 1 Link to comment Share on other sites More sharing options...
acorpusmc Posted January 18, 2016 Share Posted January 18, 2016 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. Link to comment Share on other sites More sharing options...
selectshop.at Posted April 20, 2019 Share Posted April 20, 2019 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now