GP13 Posted June 1, 2018 Share Posted June 1, 2018 Bonjour à tous. Lorsque je suis sur mon historique de commandes et que je désire visualiser une facture liée à une commande, j'obtiens cette erreur ci dessous : Savez-vous si c'est un bug connu ? Je n'ai rien trouvé dans mes recherches. Merci. [PrestaShopDatabaseException] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') as total_paid_tax_excl, SUM(a0.total_paid_tax_incl + ) as total_paid_tax_incl,' at line 8 SELECT id_order_invoice, id_order, number, delivery_number, delivery_date, total_discount_tax_excl, total_discount_tax_incl, SUM(a0.total_paid_tax_excl + ) as total_paid_tax_excl, SUM(a0.total_paid_tax_incl + ) as total_paid_tax_incl, total_products, total_products_wt, total_shipping_tax_excl, total_shipping_tax_incl, shipping_tax_computation_method, total_wrapping_tax_excl, total_wrapping_tax_incl, shop_address, invoice_address, delivery_address, note, date_add FROM `ps_order_invoice` a0 WHERE (a0.`id_order` = 1) GROUP BY id_order_invoice at line 746 in file classes/db/Db.php 741. if ($webservice_call && $errno) { 742. $dbg = debug_backtrace(); 743. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97); 744. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) { 745. if ($sql) { 746. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>'); 747. } 748. 749. throw new PrestaShopDatabaseException($this->getMsgError()); 750. } 751. } DbCore->displayError - [line 378 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 597 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 357 - classes/PrestaShopCollection.php] - [1 Arguments] PrestaShopCollectionCore->getAll - [line 454 - classes/PrestaShopCollection.php] PrestaShopCollectionCore->count - [line - ] count - [line 91 - classes/pdf/PDF.php] - [1 Arguments] PDFCore->__construct - [line 72 - controllers/front/PdfInvoiceController.php] - [3 Arguments] PdfInvoiceControllerCore->display - [line 273 - classes/controller/Controller.php] ControllerCore->run - [line 428 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] Link to comment Share on other sites More sharing options...
Eolia Posted June 1, 2018 Share Posted June 1, 2018 C'est sur on additionne avec rien ? SUM(a0.total_paid_tax_excl + ) as total_paid_tax_excl, SUM(a0.total_paid_tax_incl + ) as total_paid_tax_incl, certainement une commande qui a un souci avec son transporteur ou ses taxes.... Link to comment Share on other sites More sharing options...
GP13 Posted June 1, 2018 Author Share Posted June 1, 2018 Oui j'ai remarqué ce + inutile, c'est sûr que ça vient de là. Après ça fait ça pour toutes les commandes donc je suppose que c'est un problème global et pas isolé à quelques commandes. Peut être un module qui fait interférence je ne sais. Bref j'ai pas fini de chercher à mon avis ^^ Link to comment Share on other sites More sharing options...
GP13 Posted June 1, 2018 Author Share Posted June 1, 2018 J'ai supprimé les taxes pour chaque transporteur et la livraison est gratuite. Maintenant j'ai une nouvelle erreur : [PrestaShopDatabaseException] Unknown column 'invoice_address' in 'field list' SELECT id_order_invoice, id_order, number, delivery_number, delivery_date, total_discount_tax_excl, total_discount_tax_incl, SUM(a0.total_paid_tax_excl + 0.000000) as total_paid_tax_excl, SUM(a0.total_paid_tax_incl + 0.000000) as total_paid_tax_incl, total_products, total_products_wt, total_shipping_tax_excl, total_shipping_tax_incl, shipping_tax_computation_method, total_wrapping_tax_excl, total_wrapping_tax_incl, shop_address, invoice_address, delivery_address, note, date_add FROM `ps_order_invoice` a0 WHERE (a0.`id_order` = 41) GROUP BY id_order_invoice at line 746 in file classes/db/Db.php 741. if ($webservice_call && $errno) { 742. $dbg = debug_backtrace(); 743. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97); 744. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) { 745. if ($sql) { 746. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>'); 747. } 748. 749. throw new PrestaShopDatabaseException($this->getMsgError()); 750. } 751. } DbCore->displayError - [line 378 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 597 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 357 - classes/PrestaShopCollection.php] - [1 Arguments] PrestaShopCollectionCore->getAll - [line 454 - classes/PrestaShopCollection.php] PrestaShopCollectionCore->count - [line - ] count - [line 91 - classes/pdf/PDF.php] - [1 Arguments] PDFCore->__construct - [line 72 - controllers/front/PdfInvoiceController.php] - [3 Arguments] PdfInvoiceControllerCore->display - [line 273 - classes/controller/Controller.php] ControllerCore->run - [line 428 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] Link to comment Share on other sites More sharing options...
GP13 Posted June 3, 2018 Author Share Posted June 3, 2018 (edited) Ceci est du au module : Module Coutume mode de paiement Quand il est désactivé tout fonctionne à nouveau. Sujet résolu. Edited June 6, 2018 by GP13 (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