mattheoh Posted April 24, 2016 Share Posted April 24, 2016 (edited) Bonjour, sur PS 1.6.1.5, j ai un souci d'affichage des messages clients dans le SAV. Aucun message ne s'affiche (j ai pourtant la notification en haut) et j ai le message d'erreur suivant (voir capture) Mauvaise requête SQL Incorrect file format 'ps_customer_thread' Je n'ai rien trouvé à ce sujet dans le forum ou sur le net, quelqu'un aurait une idée ? merci. Plus de détails avec le mode debug : [PrestaShopDatabaseException] Incorrect file format 'ps_customer_thread' SELECT cl.*, COUNT(*) as total, ( SELECT id_customer_thread FROM ps_customer_thread ct2 WHERE status = "open" AND ct.id_contact = ct2.id_contact AND id_shop IN (1) ORDER BY date_upd ASC LIMIT 1 ) as id_customer_thread FROM ps_customer_thread ct LEFT JOIN ps_contact_lang cl ON (cl.id_contact = ct.id_contact AND cl.id_lang = 2) WHERE ct.status = "open" AND ct.id_contact IS NOT NULL AND cl.id_contact IS NOT NULL AND id_shop IN (1) GROUP BY ct.id_contact HAVING COUNT(*) > 0 at line 791 in file classes/db/Db.php 786. if ($webservice_call && $errno) { 787. $dbg = debug_backtrace(); 788. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$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. } DbCore->displayError - [line 425 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 643 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 171 - classes/CustomerThread.php] - [1 Arguments] CustomerThreadCore::getContacts - [line 271 - controllers/admin/AdminCustomerThreadsController.php] AdminCustomerThreadsControllerCore->renderList - [line 2034 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 465 - controllers/admin/AdminCustomerThreadsController.php] AdminCustomerThreadsControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 58 - admin/index.php] Edited April 24, 2016 by mattheoh (see edit history) Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 24, 2016 Share Posted April 24, 2016 Bonjour, Avez vous activé l'affichage des messages d'erreur comme expliqué sur ce tutoriel afin de connaitre précisément le soucis SQL rencontré ? Link to comment Share on other sites More sharing options...
mattheoh Posted April 24, 2016 Author Share Posted April 24, 2016 Bonjour, Avez vous activé l'affichage des messages d'erreur comme expliqué sur ce tutoriel afin de connaitre précisément le soucis SQL rencontré ? Oui, j avais édité mon message juste avant votre post Link to comment Share on other sites More sharing options...
Eolia Posted April 24, 2016 Share Posted April 24, 2016 Votre table est corrompue, si vous êtes en MySam essayez la commande repair table `ps_customer_thread use_frm dans votre console SQL et contrôlez la valeur de votre auto-increment ensuite 1 Link to comment Share on other sites More sharing options...
mattheoh Posted April 24, 2016 Author Share Posted April 24, 2016 Votre table est corrompue, si vous êtes en MySam essayez la commande repair table `ps_customer_thread use_frm dans votre console SQL et contrôlez la valeur de votre auto-increment ensuite Bravo ! en effet la table était corrompue. la requête a marché parfaitement. merci beaucoup. 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