Jump to content
vilto35

Fatal error: Call to undefined method Cache::isStored() in classes/ObjectModel.php on line 1470

Recommended Posts

Bonjour,

 

après avoir effectué une MAJ de prestashop tout s'était bien passé jusqu'a aujourd'hui lorsque j'ai été regarder l'onglet performance de mon prestashop...et la c'est le drame...

 

Sans rien avoir modifié (pas de mise en cache actuellement), le site crash et me met :

 

Fatal error: Call to undefined method Cache::isStored() in /homepages/8/d430096632/htdocs/classes/ObjectModel.php on line 1470

 

Dans ces lignes se trouve ce code :

 

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;

 

}

 

Sur le forum anglophone est donné la méthode pour le 1.5.3 mais pas le 1.5.4 car le code change : http://www.prestashop.com/forums/topic/217916-solved-prestashop-1531-objectmodel-class-changes/

 

Une idée ?? Merci !

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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