Jaje Posted May 20, 2013 Share Posted May 20, 2013 I am not able to enter both of my shops as HTTP Error 500 shows saying: "Fatal error: Class 'Cache' not found in /home/a7971671/public_html/prestashop/classes/ObjectModel.php on line 1470" Anyone knows what's the problem? I am slowly going crazy... Link to comment Share on other sites More sharing options...
Jaje Posted May 21, 2013 Author Share Posted May 21, 2013 Can someone at least tell me what does this error mean? Where's the problem? Link to comment Share on other sites More sharing options...
vekia Posted May 21, 2013 Share Posted May 21, 2013 what prestashop version you use? It's fresh install or maybe you updated your store? Link to comment Share on other sites More sharing options...
Jaje Posted May 21, 2013 Author Share Posted May 21, 2013 I've updated both stores, but it worked just fine the night before and in the morning the error started to show. One of those stores I last updated a month ago and haven't touched it since and it stopped working. Version 1.5.4.1. Link to comment Share on other sites More sharing options...
vekia Posted May 21, 2013 Share Posted May 21, 2013 can you try to turn off cache under the preferences -> performance tab in your back office? I just want to check if this error will appear even if the cache is turned off Link to comment Share on other sites More sharing options...
Jaje Posted May 21, 2013 Author Share Posted May 21, 2013 I can't enter Back Office The same error pops up. I have both shops on the same server. I was working on one, while the other shop I haven't touched for a month. Both were working just fine until yesterday morning, and they both show same error(line 1470) when trying to enter BO or Webshop. I can connect to the server and modify data but can't enter BO and Webshop. Link to comment Share on other sites More sharing options...
vilto35 Posted August 1, 2013 Share Posted August 1, 2013 I have the same problem can anyone help us please ?? i have read these topics about the problem without solved it : http://forge.prestashop.com/browse/PSCFV-9931 http://www.prestashop.com/forums/topic/217916-solved-prestashop-1531-objectmodel-class-changes/ Link to comment Share on other sites More sharing options...
vekia Posted August 2, 2013 Share Posted August 2, 2013 and you're using the same ps version ? Link to comment Share on other sites More sharing options...
vilto35 Posted August 2, 2013 Share Posted August 2, 2013 yes i use the 1.5.4.1 version? The last update was clean and without bugs. And i don't know why the site has crashed... Link to comment Share on other sites More sharing options...
vilto35 Posted August 2, 2013 Share Posted August 2, 2013 on these lines there is : [/size] /** * Get object definition * * @param string $class Name of object * @param string $field Name of field if we want the definition of one field only * @return array */ public static function getDefinition($class, $field = null) { if (is_object($class)) $class = get_class($class); if ($field === null) $cache_id = 'objectmodel_def_'.$class; if ($field !== null || !Cache::isStored($cache_id)) { $reflection = new ReflectionClass($class); $definition = $reflection->getStaticPropertyValue('definition'); $definition['classname'] = $class; if (!empty($definition['multilang'])) $definition['associations'][Collection::LANG_ALIAS] = array( 'type' => self::HAS_MANY, 'field' => $definition['primary'], 'foreign_field' => $definition['primary'], ); if ($field) return isset($definition['fields'][$field]) ? $definition['fields'][$field] : null; Cache::store($cache_id, $definition); return $definition; } return Cache::retrieve($cache_id); } Link to comment Share on other sites More sharing options...
vekia Posted August 2, 2013 Share Posted August 2, 2013 where is the 1470 line? Link to comment Share on other sites More sharing options...
vilto35 Posted August 2, 2013 Share Posted August 2, 2013 in classes/ObjectModel.php Link to comment Share on other sites More sharing options...
dhurley Posted August 22, 2013 Share Posted August 22, 2013 I had cache* in my .gitignore file so that is how I fixed mine. Link to comment Share on other sites More sharing options...
sahwira Posted October 6, 2013 Share Posted October 6, 2013 What is the solution to this problem? I followed a few threads with this problem but not solutions!! Link to comment Share on other sites More sharing options...
lozaria Posted October 28, 2013 Share Posted October 28, 2013 You can disable cache in config/settings.inc.php define('_PS_CACHE_ENABLED_', '0'); Link to comment Share on other sites More sharing options...
cookiez Posted December 9, 2013 Share Posted December 9, 2013 have you fixed Fatal error: Class 'Cache' not found ObjectModel.php on line 1511 ? I also have that error. Link to comment Share on other sites More sharing options...
dhurley Posted December 9, 2013 Share Posted December 9, 2013 Make sure that all of the cache folders exist and are set to 777. /cache and theme/cache. Without the cache folder in your active theme's directory, cache has nowhere to put the flat files it creates. Link to comment Share on other sites More sharing options...
El Patron Posted December 9, 2013 Share Posted December 9, 2013 for 1.5 and for this error, class Cache not found You need to check that you have the following folders/files http://screencast.com/t/lA3LEdXfjqkS also delete the index.php file in classes/cache/ as this may clear up 'some' issues Link to comment Share on other sites More sharing options...
Yenibosnaweb Posted January 7, 2016 Share Posted January 7, 2016 I have experienced the same problem but I have solved What I did I check the classes/cache file (and I saw it was empty) I have copied and pasted all content from my another working web site then it works. Link to comment Share on other sites More sharing options...
SatishMasani Posted February 13, 2016 Share Posted February 13, 2016 Even myh cache file are empty from where i can i get it back i don't have other site, i am facing these problems because i restored the website from host company backup , i have old backup files but when i try to upload old backup files it's not resolving my issue. Help Have gone mad 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