tipoman Posted April 5, 2017 Share Posted April 5, 2017 Bonjour, Hier soir j'ai importé un fichier CSV produits. L'import s'est bien passé, sans erreur. Ensuite j'ai voulu retourner sur mon back office et là plus moyen d'accéder. Je reçois l'erreur 500 suivante. Qui peut m'aider à solutionner svp ? Merci beaucoup pour votre aide. Philippe SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM ps16_shop_url su LEFT JOIN ps16_shop s ON (s.id_shop = su.id_shop) WHERE (su.domain = 'gigashop.be' OR su.domain_ssl = 'gigashop.be') AND s.active = 1 AND s.deleted = 0 ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESCat 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. } DbCore->displayError - [line 425 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 643 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 334 - classes/shop/Shop.php] - [1 Arguments] ShopCore::initialize - [line 114 - config/config.inc.php] require - [line 27 - index.php] - [1 Arguments] Link to comment Share on other sites More sharing options...
doekia Posted April 5, 2017 Share Posted April 5, 2017 Et le message d'erreur, c'est quoi? (juste avant le sql) Link to comment Share on other sites More sharing options...
tipoman Posted April 5, 2017 Author Share Posted April 5, 2017 bonjour Doekia, Je n'ai pas vu qu'il manquait deux lignes ;-) [PrestaShopDatabaseException]Table 'gigas555705.ps16_shop_url' doesn't exist Merci pour l'aide Link to comment Share on other sites More sharing options...
doekia Posted April 5, 2017 Share Posted April 5, 2017 Donc voila, soit tu as détruit ta table ps16_shop_url, soit tu as changé quelque chose dans ton settings.inc.php qui fait pointer le prestashop vers une mauvaise base de données, ou un mauvais préfix. En tout cas, rien à voir avec l'import ou autre chose. Link to comment Share on other sites More sharing options...
tipoman Posted April 5, 2017 Author Share Posted April 5, 2017 Ok très bien. Et comment faire pour remédier ? La seule chose que j'ai changé dans settins.inc.php c'est FALSE => TRUE pour avoir le détail de l'erreur. Je n'ai rien changé avant. Je dois recréer une table ps16_shop_url ? Quel contenu? Merci beaucoup Link to comment Share on other sites More sharing options...
doekia Posted April 5, 2017 Share Posted April 5, 2017 (edited) Négatif, le passage en mode debug c'est changer PS_MODE_DEV_ à true dans defines.inc.php, rien à voir avec settings.inc.php Edited April 5, 2017 by doekia (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