Namory Posted July 18, 2014 Share Posted July 18, 2014 (edited) PS : 1.5.4.1 Bonjour, J'ai un gros soucis quand je créé une déclinaison et que j'enregistre, j'ai ce message là : Warning: Invalid argument supplied for foreach() in httpdocs/classes/Combination.php on line 190 [PrestaShopDatabaseException] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2 INSERT INTO `ps_product_attribute_image` (`id_product_attribute`, `id_image`) VALUES at line 607 in file classes/db/Db.php 601. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);602. }603. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))604. {605. if ($sql)606. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');607. throw new PrestaShopDatabaseException($this->getMsgError());608. }609. }610. 611. /** DbCore->displayError - [line 307 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 447 - classes/db/Db.php] - [1 Arguments] DbCore->execute - [line 196 - classes/Combination.php] - [1 Arguments] CombinationCore->setImages - [line 1404 - classes/Product.php] - [1 Arguments] ProductCore->updateAttribute - [line 800 - controllers/admin/AdminProductsController.php] - [15 Arguments] AdminProductsControllerCore->processProductAttribute - [line 1813 - controllers/admin/AdminProductsController.php] - [0 Argument] AdminProductsControllerCore->processUpdate - [line 661 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->processSave - [line 539 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->postProcess - [line 1251 - controllers/admin/AdminProductsController.php] - [0 Argument] AdminProductsControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument Edited July 22, 2014 by Namory (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