Jump to content

[PrestaShopDatabaseException] Unknown column 'b.id_shop' in 'where clause'


Recommended Posts

Bonjour,

 

Suite à un pb avec mon hébergeur, j'ai du réimporter une base de données qui semble être plus ancienne que l'installation prestashop actuelle.

 

Voici le message d'erreur qui s'affiche après activation du mode DEV :

-------------------

[PrestaShopDatabaseException]

Unknown column 'b.id_shop' in 'where clause'
 

SELECT *
FROM `ps_cms_category` a
LEFT JOIN `ps_cms_category_lang` `b` ON a.`id_cms_category` = b.`id_cms_category` AND b.`id_lang` = 5
LEFT JOIN `ps_cms_category_shop` `c` ON a.`id_cms_category` = c.`id_cms_category` AND c.`id_shop` = 1
WHERE (a.`id_cms_category` = 5) AND (b.`id_shop` = 1) LIMIT 1

at line 791 in file classes/db/Db.php

 

786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }

---------------------------------------

 

Qui a déjà rencontré ce problème ? Je ne trouve aucune aide sur le forum.

Quelles solutions pouvez-vous me préconiser ?

 

Je vous serais infiniment reconnaissant car à l'heure actuelle ma seule solution serait une refonte complète de mon site qui comporte bcp de produits et de modules à configurer, sans parler du thème. 

Je suis dans l'impasse, donc je suis apte à essayer toutes les méthodes possibles pour résoudre ce bug.

Voici l'URL du site http://www.kemden.com/shop/

Cordialement,

 

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