v2.4.x USER ERROR(256): "SQL Error"

Thema wurde von gh, 20. Oktober 2015 erstellt.

  1. gh

    gh Erfahrener Benutzer

    Registriert seit:
    5. Januar 2013
    Beiträge:
    110
    Danke erhalten:
    4
    Danke vergeben:
    52
    Hallo zusammen,

    nachdem ich die Versandnummer von DHL eingegeben habe, hat sich die Webseite blockiert und konnte diese fuer 10 Minuten nicht mehr aufrufen.
    Ich kann mich jetzt zwar einloggen, doch das Admin Panel kann nicht mehr aufrufen werden und folgende Fehlermeldung erscheint:

    USER ERROR(256): "SQL Error"

    Auch kann kein Error log aufgerufen werden da sich dieser im Backend befindet.

    Wer kann hier helfen oder hat eine Idee. Dieser User Error 256 scheint ja schon einige Male aufgetreten sein.

    Vielen Dank und Gruss,
    Gunther
     
  2. Steffen (indiv-style.de)

    Steffen (indiv-style.de) G-WARD 2013/14/15/16

    Registriert seit:
    30. Juni 2011
    Beiträge:
    5.143
    Danke erhalten:
    1.466
    Danke vergeben:
    452
    Beruf:
    Systemadmin, Webentwickler bei Indiv-Style
    Ort:
    PhpStorm
    Du kannst die Logfiles per FTP ansehen. Diese liegen im Ordner /logfiles
    Schau da rein und poste die letzten Einträge!
     
  3. gh

    gh Erfahrener Benutzer

    Registriert seit:
    5. Januar 2013
    Beiträge:
    110
    Danke erhalten:
    4
    Danke vergeben:
    52
    Hallo Steffen,

    ich habe hier einen Rattenschwanz von Eintraegen.
    Hoffe den richtigen getroffen zu haben.
    Vielleicht kannst Du mal darueber schauen und vielleicht gibt es eine Loesung.
    Vielen Dank im Voraus,
    Gunter


    1. 2015-10-20 20:04:20 (65f2686778178150aa9a0ac97d117adb) SQL ERROR(145): "Table './d017b64f/orders' is marked as crashed and should be repaired" in /www/htdocs/w00b8630/inc/xtc_db_error.inc.php:23
    PHP:
    #10    File: /www/htdocs/w00b8630/inc/xtc_db_error.inc.php:23
    #9    File: /www/htdocs/w00b8630/inc/xtc_db_query.inc.php:68#8    File: /www/htdocs/w00b8630/includes/classes/product.php:285#7    File: /www/htdocs/w00b8630/system/classes/listing/AlsoPurchasedContentView.inc.php:63#6    File: /www/htdocs/w00b8630/system/classes/listing/AlsoPurchasedContentView.inc.php:44#5    File: /www/htdocs/w00b8630/system/core/ContentView.inc.php:111#4    File: /www/htdocs/w00b8630/system/classes/products/ProductInfoContentView.inc.php:316#3    File: /www/htdocs/w00b8630/system/classes/products/ProductInfoContentView.inc.php:181#2    File: /www/htdocs/w00b8630/system/classes/products/ProductInfoContentView.inc.php:103#1    File: /www/htdocs/w00b8630/system/classes/products/ProductInfoContentView.inc.php:127#0    File: /www/htdocs/w00b8630/product_info.php:83Request: GET /de/UNO-de-50-Schmuck/Armbaender-UNO-de-50/Tramar.html    - duration: ~106ms    - server: Apache    - server address: 85.13.150.63    - user agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36    - remote address: 65f2686778178150aa9a0ac97d117adbGet:    - gm_boosted_product: Tramar    - de: UNO-de-50-Schmuck    - Armbaender-UNO-de-50: Tramar.html    - products_id: 4055Information:Query:SELECT                        p.products_fsk18,                        p.products_id,                        p.products_price,                        p.products_tax_class_id,                        p.products_image,                        pd.gm_alt_text,                        pd.products_name,                        pd.products_meta_description,                        p.products_vpe,                        p.products_vpe_status,                        p.products_vpe_value,                        pd.products_short_description                    FROM                        orders_products opa,                        orders_products opb,                        orders o,                        products p,                        products_description pd                    WHERE                        opa.products_id = '4055'                        AND opa.orders_id = opb.orders_id                        AND opb.products_id != '4055'                        AND opb.products_id = p.products_id                        AND opb.orders_id = o.orders_id                        AND p.products_status = '1'                        AND pd.language_id = '2'                        AND opb.products_id = pd.products_id                        AND o.date_purchased > DATE_SUB(NOW(),INTERVAL 100 DAY)                    GROUP BY                        p.products_id                    ORDER BY                        o.date_purchased desc                    LIMIT                        4================================================================================2015-10-20   20:04:20 (65f2686778178150aa9a0ac97d117adb) USER ERROR(256): "SQL   Error" in /www/htdocs/w00b8630/inc/xtc_db_error.inc.php:24#10    File: /www/htdocs/w00b8630/inc/xtc_db_error.inc.php:24    Function: trigger_error('SQL Error', 256)        - $message: ### indeterminate value ###        - $error_type: ### indeterminate value ###    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: }#9    File: /www/htdocs/w00b8630/inc/xtc_db_query.inc.php:68    Function: xtc_db_error('SELECT                                    p.products_fsk18,                                    p.products_id,                                    p.products_price,                                    p.products_tax_class_id,                                    p.products_image,                                    pd.gm_alt_text,                                    pd.products_name,                                    pd.products_meta_description,                                    p.products_vpe,                                    p.products_vpe_status,                                    p.products_vpe_value,                                    pd.products_short_description                                FROM                                    orders_products opa,                                    orders_products opb,                                    orders o,                                    products p,                                    products_description pd                                WHERE                                    opa.products_id = \'4055\'                                    AND opa.orders_id = opb.orders_id                                    AND opb.products_id != \'4055\'                                    AND opb.products_id = p.products_id                                    AND opb.orders_id = o.orders_id                                    AND p.products_status = \'1\'                                    AND pd.language_id = \'2\'                                    AND opb.products_id = pd.products_id                                    AND o.date_purchased > DATE_SUB(NOW(),INTERVAL 100 DAY)                                GROUP BY                                    p.products_id                                ORDER BY                                    o.date_purchased desc                                LIMIT                                    4', 145, 'Table \'./d017b64f/orders\' is marked as crashed and should be repaired')        - $p_query: ### indeterminate value ###        - $p_errno: ### indeterminate value ###        - $p_error: ### indeterminate value ###    Code:│    line 66:         {│    line 67:             # execute query├─    line 68:             $result = mysql_query($p_query, $$link) or xtc_db_error($p_query, mysql_errno(), mysql_error());│    line 69:│    line 70:             # save result to cache#8    File: /www/htdocs/w00b8630/includes/classes/product.php:285    Function: xtc_db_query('SELECT                                    p.products_fsk18,                                    p.products_id,                                    p.products_price,                                    p.products_tax_class_id,                                    p.products_image,                                    pd.gm_alt_text,                                    pd.products_name,                                    pd.products_meta_description,                                    p.products_vpe,                                    p.products_vpe_status,                                    p.products_vpe_value,                                    pd.products_short_description                                FROM                                    orders_products opa,                                    orders_products opb,                                    orders o,                                    products p,                                    products_description pd                                WHERE                                    opa.products_id = \'4055\'                                    AND opa.orders_id = opb.orders_id                                    AND opb.products_id != \'4055\'                                    AND opb.products_id = p.products_id                                    AND opb.orders_id = o.orders_id                                    AND p.products_status = \'1\'                                    AND pd.language_id = \'2\'                                    AND opb.products_id = pd.products_id                                    AND o.date_purchased > DATE_SUB(NOW(),INTERVAL 100 DAY)                                GROUP BY                                    p.products_id                                ORDER BY                                    o.date_purchased desc                                LIMIT                                    4')        - $p_query: ### indeterminate value ###        - $link: ### indeterminate value, default value: 'db_link' ###        - $p_enable_data_cache: ### indeterminate value, default value: true ###        - $p_enable_logging: ### indeterminate value, default value: true ###    Code:│    line 283:                     LIMIT│    line 284:                         " . MAX_DISPLAY_ALSO_PURCHASED;├─    line 285:         $t_query = xtc_db_query($t_query);│    line 286:         while($orders = xtc_db_fetch_array($t_query, true))│    line 287:         {#7    File: /www/htdocs/w00b8630/system/classes/listing/AlsoPurchasedContentView.inc.php:63    Class: product_ORIGIN    Method: getAlsoPurchased()    Code:│    line 61:     protected function get_data()│    line 62:     {├─    line 63:         $this->data_array = $this->coo_product->getAlsoPurchased();│    line 64:     }│    line 65:#6    File: /www/htdocs/w00b8630/system/classes/listing/AlsoPurchasedContentView.inc.php:44
     
  4. Steffen (indiv-style.de)

    Steffen (indiv-style.de) G-WARD 2013/14/15/16

    Registriert seit:
    30. Juni 2011
    Beiträge:
    5.143
    Danke erhalten:
    1.466
    Danke vergeben:
    452
    Beruf:
    Systemadmin, Webentwickler bei Indiv-Style
    Ort:
    PhpStorm
    das sieht nach einem crash der DB-Tabelle Orders aus...
    versuche diese mit dem myphpaddmin zu reparieren. Notfalls vom Provider ne Sicherung einspielen lassen oder per Ticket mal Gambio anfragen.
     
  5. Anonymous

    Anonymous Erfahrener Benutzer
    Mitarbeiter

    Registriert seit:
    22. Juni 2011
    Beiträge:
    4.760
    Danke erhalten:
    1.748
    Danke vergeben:
    137
    Ich würde mich bei so etwas immer auch beim Hoster melden. So etwas kann durchaus auch mit einer Festplatte (oder sonstigen Massenspeicherlösung) zusammenhängen, die gerade ihr Lebensende erreicht.
     
  6. gh

    gh Erfahrener Benutzer

    Registriert seit:
    5. Januar 2013
    Beiträge:
    110
    Danke erhalten:
    4
    Danke vergeben:
    52
    Danke an Alle,
    Nachdem ich beim Hoster angefragt habe, wurde mir gesagt, dass die Datenbanktabelle "admin_access" beschädigt wurde. Dies passierte, als die Verbindung zur Datenbank während eines Schreibzugriffes abbrach. Die Sicherung vom Vortag musste aufgespielt werden.
    Gruss und Danke,
    Gunter