Jump to content

[PrestaShopDatabaseException] ?!


Recommended Posts

Bonjour à tous, 

 

Je rencontre un problème en tentant de créer mon multiboutique...

 

Sur la page de mon second site, j'obtiens cette erreur:

 

[PrestaShopDatabaseException]

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

SELECT cl.`meta_title`, cl.`link_rewrite`
            FROM `ps_cms_lang` cl
            INNER JOIN `ps_cms` c
            ON (cl.`id_cms` = c.`id_cms`)
            WHERE cl.`id_cms` = 3
            AND (c.`active` = 1 OR c.`id_cms` = 1)
            AND cl.`id_shop` = 4
            AND cl.`id_lang` = 3 LIMIT 1

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

 

629.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
630.         }
631.         else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
632.         {
633.             if ($sql)
634.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
635.             throw new PrestaShopDatabaseException($this->getMsgError());
636.         }
637.     }
638.
639.     /**

 

 

 

Avez-vous une idée de ce dont il s'agit???

Link to comment
Share on other sites

Bonjour à tous,

 

J'ai quasiment le même message, à quelques valeurs prêts depuis aujourd'hui lorsque l'on veut accèder à ma boutique unique. (du coup plus de boutique)

A part des modules qui ont été mis à jour, aucune modification ont été réalisée.

 

J'aurais donc également besoin d'un coup de main, merci.

Link to comment
Share on other sites

Bonjour,

 

 

J'ai exactement aussi le même problème suite à une mis à jour je pense de mes modules.

 

Voici le message en question :

 

 

[PrestaShopDatabaseException]

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

SELECT cl.`meta_title`, cl.`link_rewrite`
            FROM `pss_cms_lang` cl
            INNER JOIN `pss_cms` c
            ON (cl.`id_cms` = c.`id_cms`)
            WHERE cl.`id_cms` = 3
            AND (c.`active` = 1 OR c.`id_cms` = 1)
            AND cl.`id_shop` = 1
            AND cl.`id_lang` = 2 LIMIT 1

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

 

629.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
630.         }
631.         else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
632.         {
633.             if ($sql)
634.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
635.             throw new PrestaShopDatabaseException($this->getMsgError());
636.         }
637.     }
638.
639.     /**
Link to comment
Share on other sites

re bonjour,

 

J'ai réussi à me défaire de ce message et à avoir de nouveau accès à ma boutique.

J'ai sauvegarder le dossier blockcms dans le dossier modules (au cas ou) et je l'ai simplement remplacé par celui présent dans la dernière installation disponible en téléchargement sur le site.
Bon à présent j'ai 2 messages "notice" qui m'empêche en rien le fonctionnement et qui semble provenir du module SocialSharing.

  • Like 1
Link to comment
Share on other sites

Bonjour,

 

 

De nouveau j'ai un message d'erreur !

 

 

Le voici :

 

Notice: Use of undefined constant _PS_PRICE_COMPUTE_PRECISION_ - assumed '_PS_PRICE_COMPUTE_PRECISION_' in /home/clesoukcck/www/modules/socialsharing/socialsharing.php on line169

Warning: round() expects parameter 2 to be long, string given in /home/clesoukcck/www/classes/Tools.php on line 1592

Notice: Use of undefined constant _PS_PRICE_COMPUTE_PRECISION_ - assumed '_PS_PRICE_COMPUTE_PRECISION_' in /home/clesoukcck/www/modules/socialsharing/socialsharing.php on line170

Warning: round() expects parameter 2 to be long, string given in /home/clesoukcck/www/classes/Tools.php on line 1592

 

 

Quel est la solution s'il vous plait ?

 

Cordialement 

Link to comment
Share on other sites

J'ai aussi eu un tel message après la MAJ de modules.

Je suppose que c'est le module product review qui à mis le bazar, je n'ai plus accès à mes modules du tout, j'ai cette horrible page d'erreur qui vient.

Et je ne sais pas quoi faire pour réparer.

 

Déjà 1 x lors de MAJ de modules j'ai eu un problème. Selon vous est-il nécessaire de faire ces MAJ ?

Link to comment
Share on other sites

Je viens de proposer le correctif chez PrestaShop: https://github.com/PrestaShop/blockcms/pull/16

 

 

Hello

 

J'ai le même problème mais avec Product reviews. Ce problème est apparu lors d'une mise à jour de module.

J'ai supprimé le module en question dans Cpanel et ai mis le module précédent (sans maj), mais rien n'y fait, j'ai toujours cet affreux message d'erreur et aucun accès à mes modules....

Qui peut m'aider ??

 

 

 

[PrestaShopDatabaseException]

Unknown column 'lang' in 'ps_av_products_reviews'

 

ALTER TABLE ps_av_products_reviews				CHANGE `lang` `iso_lang` VARCHAR( 5 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT "0";

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

629. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);630. 		}631. 		else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))632. 		{633. 			if ($sql)634. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');635. 			throw new PrestaShopDatabaseException($this->getMsgError());636. 		}637. 	}638. 639. 	/**
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...