Jump to content

Problème affichage SAV (incorrect file format 'ps_customer_thread')


Recommended Posts

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]

post-243654-0-37950700-1461495256_thumb.png

Edited by mattheoh (see edit history)
Link to comment
Share on other sites

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

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