Jump to content

Fatal error: Class 'Cache' not found


Jaje

Recommended Posts

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

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

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

  • 2 months later...

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

  • 3 weeks later...
  • 1 month later...
  • 3 weeks later...
  • 1 month later...
  • 2 years later...
  • 1 month later...

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

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...