Jump to content

Recommended Posts

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 Error

Oops, 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

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

Voici ce que j'obtiens:

 

[PrestaShopException]

Invalid product vars
at 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();
Link to comment
Share on other sites

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