Tamara L Posted March 10, 2015 Share Posted March 10, 2015 Bonjour, J'ai récemment changé d'hébergeur (le changement a été fait par les services de phpnet). En apparence, le site est bien. Le problème, c'est que quand je veux accéder à une fiche produit, je tombe sur ça: [PrestaShopDatabaseException]Table 'p5587_1.ps_product_comment_usefulness' doesn't exist SELECT pc.`id_product_comment`, (SELECT count(*) FROM `ps_product_comment_usefulness` pcu WHERE pcu.`id_product_comment` = pc.`id_product_comment` AND pcu.`usefulness` = 1) as total_useful, (SELECT count(*) FROM `ps_product_comment_usefulness` pcu WHERE pcu.`id_product_comment` = pc.`id_product_comment`) as total_advice, IF(c.id_customer, CONCAT(c.`firstname`, ' ', LEFT(c.`lastname`, 1)), pc.customer_name) customer_name, pc.`content`, pc.`grade`, pc.`date_add`, pc.title FROM `ps_product_comment` pc LEFT JOIN `ps_customer` c ON c.`id_customer` = pc.`id_customer` WHERE pc.`id_product` = 37 AND pc.`validate` = 1 ORDER BY pc.`date_add` DESC at line 639 in file classes/db/Db.php 634. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);635. }636. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))637. {638. if ($sql)639. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');640. throw new PrestaShopDatabaseException($this->getMsgError());641. }642. }643. 644. /** DbCore->displayError - [line 333 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 509 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 114 - modules/productcomments/ProductComment.php] - [1 Arguments] ProductComment::getByProduct - [line 749 - modules/productcomments/productcomments.php] - [1 Arguments] ProductComments->hookProductTab - [line 512 - classes/Hook.php] - [1 Arguments] HookCore::exec - [line 271 - controllers/front/ProductController.php] - [2 Arguments] ProductControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 374 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] Tout bêtement, j'ai d'abord essayé de désactiver mon module Commentaires produits, mais ça ne change rien. Est-ce que quelqu'un sait ce qui cloche, et où/comment tout rétablir? Link to comment Share on other sites More sharing options...
Molmi GK Posted March 10, 2015 Share Posted March 10, 2015 Tu as tous dans le message d'erreur. la table 'p5587_1.ps_product_comment_usefulness' n'existe pas. Link to comment Share on other sites More sharing options...
Tamara L Posted March 11, 2015 Author Share Posted March 11, 2015 Oui mais je suis sensée faire quoi par rapport à ça? Link to comment Share on other sites More sharing options...
Molmi GK Posted March 11, 2015 Share Posted March 11, 2015 Il faut contacter la personne qui a fait le transfert et lui expliquer qu'une table appelée 'p5587_1.ps_product_comment_usefulness' n'a pas été exportée. bon après si l'ancien hebergement n'existe plus et que l'ancienne Base de données a été supprimé. il va falloire recreer cette table. sinon tu aura toujours ce message Link to comment Share on other sites More sharing options...
Tamara L Posted March 12, 2015 Author Share Posted March 12, 2015 OK merci du conseil! Link to comment Share on other sites More sharing options...
Nicos77 Posted April 20, 2017 Share Posted April 20, 2017 Bonjour Je déterre un peu le topic mais j'ai le même souci, à la différence que c'est moi qui est fait la migration. Je part d'un prestashop 1.4 vers le 1.6. Après de nombreux bug et nombreuses résolution j'ai un BO qui à l'air à peu près stable, un FO qui ressemble à pas grand chose mais on va avancer tranquillement. Le vrai problème que j'ai est donc le même que Tamara, à savoir : [PrestaShopDatabaseException]Table 'ps_product_comment_usefulness' doesn't exist SELECT pc.`id_product_comment`, (SELECT count(*) FROM `ps_product_comment_usefulness` pcu WHERE pcu.`id_product_comment` = pc.`id_product_comment` AND pcu.`usefulness` = 1) as total_useful, (SELECT count(*) FROM `ps_product_comment_usefulness` pcu WHERE pcu.`id_product_comment` = pc.`id_product_comment`) as total_advice, IF(c.id_customer, CONCAT(c.`firstname`, ' ', LEFT(c.`lastname`, 1)), pc.customer_name) customer_name, pc.`content`, pc.`grade`, pc.`date_add`, pc.title FROM `ps_product_comment` pc LEFT JOIN `ps_customer` c ON c.`id_customer` = pc.`id_customer` WHERE pc.`id_product` = 484 AND pc.`validate` = 1 ORDER BY pc.`date_add` DESC 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 114 - modules/productcomments/ProductComment.php] - [1 Arguments] ProductComment::getByProduct - [line 747 - modules/productcomments/productcomments.php] - [1 Arguments] ProductComments->hookProductTab - [line 591 - classes/Hook.php] - [1 Arguments] HookCore::coreCallHook - [line 548 - classes/Hook.php] - [3 Arguments] HookCore::exec - [line 278 - controllers/front/ProductController.php] - [2 Arguments] ProductControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] La table est effectivement manquante dans mon phpmyadmin mais elle n'existait déjà pas en 1.4. J'ai eu plein de nouvelles ps_product_xxxx mais pas celle là. Qqn peux-il me l'envoyer vierge? Me donner la structure? Ou une solution? Merci Link to comment Share on other sites More sharing options...
Nicos77 Posted April 20, 2017 Share Posted April 20, 2017 Et bizarrement, je viens de faire une install propre de la même version sur une autre BDD et cette même table n'existe pas ! Je ne peux donc même pas l'importer. Qqn sais t'il d'où viens cette table? Je pense que c'est du à un module. Mais lequel? Merci Link to comment Share on other sites More sharing options...
Nicos77 Posted April 20, 2017 Share Posted April 20, 2017 Trouvé ! J'ai réinitialisé le module commentaire produit et ma fiche s'ouvre ! Toutes les tables ps_product_comment_xxxxxxx ont été créé ! Cdt, Link to comment Share on other sites More sharing options...
ubiq Posted August 22, 2018 Share Posted August 22, 2018 (edited) Merci à Nicos77, je viens de gagner plein de minutes.... Edited August 22, 2018 by ubiq (see edit history) 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