Hallo zusammen, seit unserem Update von 2.4.x.x. auf 2.6.1.1 können keine Sonderpreise mehr angelegt werden. Bestehende Sonderpreise wurden übernommen, neue gehen nicht. Kann hier jemand weiterhelfen? Danke! Fehlermeldung: USER ERROR(256): "SQL Error" Log-Einträge: 2016-02-29 10:00:22 (a605834b1a0585c657233b5d56991b48) SQL ERROR(1062): "Duplicate entry '1005' for key 'products_id_2'" in /var/www/vhosts/medundorg.de/httpdocs/shop/inc/xtc_db_error.inc.php:23 (Details) #2 File: /var/www/vhosts/medundorg.de/httpdocs/shop/inc/xtc_db_error.inc.php:23 #1 File: /var/www/vhosts/medundorg.de/httpdocs/shop/inc/xtc_db_query.inc.php:77 #0 File: /var/www/vhosts/medundorg.de/httpdocs/shop/admin/specials.php:79 Request: POST /shop/admin/specials.php?pID=1005&action=insert (Details) - duration: ~0ms - server: Apache/2.2.3 (CentOS) - server address: 134.98.89.90 - user agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0 - remote address: a605834b1a0585c657233b5d56991b48 Post: (Details) - products_id: 1005 - products_price: - specials_price: 21.9 - specials_quantity: 100 - date: - day: - month: - year: - products_up_id: - page_token: d46359a3d765b770b02f9394f7a6cf0c Get: (Details) - pID: 1005 - action: insert Information: Query: insert into specials (products_id, specials_quantity, specials_new_products_price, specials_date_added, expires_date, status) values ('1005', '100', '21.9', now(), '', '1')2016-02-29 10:00:22 (a605834b1a0585c657233b5d56991b48) USER ERROR(256): "SQL Error" in /var/www/vhosts/medundorg.de/httpdocs/shop/inc/xtc_db_error.inc.php:24 (Details) #2 File: /var/www/vhosts/medundorg.de/httpdocs/shop/inc/xtc_db_error.inc.php:24 (Details) Function: trigger_error('SQL Error', 256) (Details) Code: │ line 22: $coo_logger = LogControl::get_instance(); │ line 23: $coo_logger->notice($p_error, 'error_handler', 'errors', 'notice', 'SQL ERROR', $p_errno, 'Query:' . "\r\n" . trim($p_query)); ├─ line 24: trigger_error('SQL Error', E_USER_ERROR); │ line 25: }#1 File: /var/www/vhosts/medundorg.de/httpdocs/shop/inc/xtc_db_query.inc.php:77 (Details) Function: xtc_db_error('insert into specials (products_id, specials_quantity, specials_new_products_price, specials_date_added, expires_date, status) values (\'1005\', \'100\', \'21.9\', now(), \'\', \'1\')', 1062, 'Duplicate entry \'1005\' for key \'products_id_2\'') (Details) Code: │ line 75: # ALL OTHER RUN MODES │ line 76: # execute query ├─ line 77: $result = mysql_query($p_query, $$link) or xtc_db_error($p_query, mysql_errno(), mysql_error()); │ line 78: } │ line 79: #0 File: /var/www/vhosts/medundorg.de/httpdocs/shop/admin/specials.php:79 (Details) Function: xtc_db_query('insert into specials (products_id, specials_quantity, specials_new_products_price, specials_date_added, expires_date, status) values (\'1005\', \'100\', \'21.9\', now(), \'\', \'1\')') (Details) Code: │ line 77: } │ line 78: ├─ line 79: xtc_db_query("insert into " . TABLE_SPECIALS . " (products_id, specials_quantity, specials_new_products_price, specials_date_added, expires_date, status) values ('" . $_POST['products_id'] . "', '" . $_POST['specials_quantity'] . "', '" . $_POST['specials_price'] . "', now(), '" . $expires_date . "', '1')"); │ line 80: xtc_redirect(xtc_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'])); │ line 81: } Request: POST /shop/admin/specials.php?pID=1005&action=insert (Details) - duration: ~0ms - server: Apache/2.2.3 (CentOS) - server address: 134.98.89.90 - user agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0 - remote address: a605834b1a0585c657233b5d56991b48 Session: (Details) - tpl: EyeCandy - MOBILE_ACTIVE: false - language: german - languages_id: 2 - language_charset: utf-8 - language_code: de - currency: EUR - customers_status: [...] - cart: [...] - wishList: [...] - customer_id: 1 - payment: ### Session entry not present ### - shipping: ### Session entry not present ### - cartID: ### Session entry not present ### - sendto: ### Session entry not present ### - billto: ### Session entry not present ### Post: (Details) - products_id: 1005 - products_price: - specials_price: 21.9 - specials_quantity: 100 - date: - day: - month: - year: - products_up_id: - page_token: d46359a3d765b770b02f9394f7a6cf0c Get: (Details) - pID: 1005 - action: insert
Hallo Thomas, bitte nimm für so lange Texte doch die Code-Box (das #-Symbol über dem Textfeld), Danke.
Hallo Barbara, weis jetzt nicht, was Du genau meinst, hab aber was anderes herausgefunden. Der Fehler tritt nur auf, wenn man aus der Artikel-Kategorien-Liste den Menüpunkt "neues Angebot" aufruft. Der Fehler tritt nicht auf, wenn man das Hauptmenü "Sonderangebote" aufruft. Hier können bestehende Angebote editiert und neue fehlerfrei erstellt werden. Vielleicht hift das ja weiter
Das Problem haben wir behoben und den Fix erstmals mit der Version 2.6.2.0 beta1 veröffentlicht. Voraussichtlich diese Woche erscheint die finale 2.6.2.0 mit dem Fix. Sofern für den gewählten Artikel bereits ein Sonderangebot angelegt wurde, wird man auf die Seite geleitet, auf der man das bestehende Sonderangebot bearbeiten kann.
So lange Texte sind nicht günstig zu lesen, schlecht zu kopieren (das System baut Leerzeichen ein) und für User die nach der Lösung suchen verursachen sie lange Scrollwege. Wenn Du so lange texte oder Codezeilen postest, ist es besser diese in Codeboxen zu platzieren. Es gibt 3 Stück, direkt über dem Textfeld -> "#" für alle möglichen Texte, "<>" für html-Codes und "php" für php-Codes. Das sieht im Post dann zum Beispiel so aus: Code: Beispieltext 1 HTML: Beispiel für html-Codes PHP: und das Ganze auch für php