rexlechien Posted June 16, 2017 Share Posted June 16, 2017 Bonjour, Je connais actuellement un très très gros problème sur ma boutique. En effet, tout fonctionne, sauf lorsque que l'on clique sur le bouton "commander", j'obtiens ce message d'erreur: 500 Server ErrorOops, something went wrong.Try to refresh this page or feel free to contact us if the problem persists. Pourquoi ? Aucune manipulation particulière n' a été effectuée dans Prestashop. J'ai déjà parcouru le net, mais rien de concret comme solution. Pouvez-vous m'aider ? Link to comment Share on other sites More sharing options...
rexlechien Posted June 16, 2017 Author Share Posted June 16, 2017 précision: Cache déjà vidé partout dans prestashop, réparation des tables de la BD >> tjs le même problème. Link to comment Share on other sites More sharing options...
Eolia Posted June 16, 2017 Share Posted June 16, 2017 Activez l'affichage des erreurs pour en savoir plus, en modifiant cette ligne au début du fichier config/defines.inc.php : define('_PS_MODE_DEV_', false); par define('_PS_MODE_DEV_', true); Et donnez-nous l'erreur après avoir rafraichi la page Link to comment Share on other sites More sharing options...
rexlechien Posted June 16, 2017 Author Share Posted June 16, 2017 Voici ce que j'obtiens: [PrestaShopException]Invalid product varsat line 106 in file classes/Link.php 101. if (is_array($product) && isset($product['id_product'])) {102. $product = new Product($product['id_product'], false, $id_lang, $id_shop);103. } elseif ((int)$product) {104. $product = new Product((int)$product, false, $id_lang, $id_shop);105. } else {106. throw new PrestaShopException('Invalid product vars');107. }108. }109. 110. // Set available keywords111. $params = array(); LinkCore->getProductLink - [line 162 - cache/smarty/compile/8d/b8/47/8db8473f1b9949e51cda60970aedb4957dd3163a.file.blockcartaccessories.tpl.php] - [3 Arguments] content_5944228230e8f9_46199677 - [line 188 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 317 - classes/SmartyCustom.php] - [7 Arguments] Smarty_Custom_Template->fetch - [line 2309 - classes/module/Module.php] ModuleCore->display - [line 219 - modules/blockcartaccessories/blockcartaccessories.php] - [2 Arguments] BlockCartAccessories->hookshoppingCartExtra - [line 591 - classes/Hook.php] - [1 Arguments] HookCore::coreCallHook - [line 548 - classes/Hook.php] - [3 Arguments] HookCore::exec - [line 373 - controllers/front/ParentOrderController.php] - [2 Arguments] ParentOrderControllerCore->_assignSummaryInformations - [line 240 - controllers/front/OrderController.php] OrderControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] Link to comment Share on other sites More sharing options...
Eolia Posted June 16, 2017 Share Posted June 16, 2017 Donc il y a un souci dans le module blockcartaccessories... Désactivez-le en attendant depuis le BO pour voir si c'est OK. Le souci semble venir du tpl du module qui demande le lien d'un id_product inexistant^^ Link to comment Share on other sites More sharing options...
rexlechien Posted June 16, 2017 Author Share Posted June 16, 2017 Cela fonctionne pour commander, mais quand je veux voir le détail du produite, j'ai ce message: [PrestaShopDatabaseException]Unknown column 'w.default' in 'field list' SELECT w.`id_wishlist`, w.`name`, w.`token`, w.`date_add`, w.`date_upd`, w.`counter`, w.`default` FROM `store_wishlist` w WHERE `id_customer` = 1140 AND id_shop = 1 ORDER BY w.`name` ASC 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 224 - modules/blockwishlist/WishList.php] - [1 Arguments] WishList::getByIdCustomer - [line 245 - modules/blockwishlist/blockwishlist.php] - [1 Arguments] BlockWishList->hookProductActions - [line 591 - classes/Hook.php] - [1 Arguments] HookCore::coreCallHook - [line 548 - classes/Hook.php] - [3 Arguments] HookCore::exec - [line 277 - 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] Link to comment Share on other sites More sharing options...
rexlechien Posted June 16, 2017 Author Share Posted June 16, 2017 fonctionne à nouveau, j'ai modifié à nouveau le fichier "defines" >> ok 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