fsnsem Posted November 7, 2015 Share Posted November 7, 2015 Guten Tag, heute erst nach 3 Monaten gesehen. Ich wollte eine Gutschrift ausdrucken, aber nur eine Fehlermeldung: "Falsche SQL-AbfrageColumn 'date_add' in where clause is ambiguous" Im debug modus habe ich das gefunden: " [PrestaShopDatabaseException]Column 'date_add' in where clause is ambiguous SELECT SQL_CALC_FOUND_ROWS a.* , a.id_order_slip AS id_pdf FROM `order_slip` a LEFT JOIN orders o ON (o.`id_order` = a.`id_order`) WHERE 1 AND o.id_shop IN (1) AND `date_add` >= '2015-10-01 0:0:0' AND `date_add` <= '2015-11-30 23:59:59' GROUP BY a.`id_order_slip` ORDER BY a.`id_order_slip` ASC LIMIT 0,50 at line 646 in file classes/db/Db.php641. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);642. }643. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))644. {645. if ($sql)646. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');647. throw new PrestaShopDatabaseException($this->getMsgError());648. }649. }650. 651. /** DbCore->displayError - [line 340 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 516 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 2943 - classes/controller/AdminController.php] - [3 Arguments] AdminControllerCore->getList - [line 2088 - classes/controller/AdminController.php] - [1 Arguments] AdminControllerCore->renderList - [line 164 - controllers/admin/AdminSlipController.php] AdminSlipControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] " Ich gehe davon aus, dass das Problem liegt irgentwo im MySQL. Wenn mir jemand helfen kann, werde ich sehr dankbar. Danke im Voraus. Alex Link to comment Share on other sites More sharing options...
fsnsem Posted November 9, 2015 Author Share Posted November 9, 2015 gibt keine Lösung? Link to comment Share on other sites More sharing options...
fsnsem Posted December 8, 2015 Author Share Posted December 8, 2015 die Fehler habe ich gefunden und behoben. Link to comment Share on other sites More sharing options...
eleazar Posted December 9, 2015 Share Posted December 9, 2015 Damit das hier nicht nur ein Selbstgespräch bleibt ... könntest du nicht einfach mitteilen, woran es lag und wie du das Problem behoben hast? Von solchen Tipps lebt dieses Forum. 1 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