#1 (permalink)  
Alt 28.08.2007, 01:03
Neuer Benutzer
 
Registriert seit: 13.08.2006
Beiträge: 10
Pfeil 1054 - Unknown column 'p.products_id' in 'on clause'

Hallo zusammen,
würde mich freuen, wenn jemand licht ins php-sql-dunkel bringen könnte. Ich habe die Version 3.0.3 installiert.

Ich kriege folgende Fehlermeldung:
1054 - Unknown column 'p.products_id' in 'on clause'

select p.products_fsk18, p.products_shippingtime, p.products_model, p.products_ean, pd.products_name, m.manufacturers_name, p.products_quantity, p.products_image, p.products_weight, pd.products_short_description, pd.products_description, p.products_id, p.manufacturers_id, p.products_price, p.products_discount_allowed, p.products_tax_class_id from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '2' and p2c.categories_id = '5' ORDER BY pd.products_name ASC

[XT SQL Error]

In der index.php sieht es so aus:
// the following cPath references come from application_top.php
$category_depth = 'top';
if (isset($cPath) && xtc_not_null($cPath)) {
$categories_products_query = "select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . $current_category_id . "'";
$categories_products_query = xtDBquery($categories_products_query);
$cateqories_products = xtc_db_fetch_array($categories_products_query,true );
if ($cateqories_products['total'] > 0) {
$category_depth = 'products'; // display products
} else {
$category_parent_query = "select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . $current_category_id . "'";
$category_parent_query = xtDBquery($category_parent_query);
$category_parent = xtc_db_fetch_array($category_parent_query,true);
if ($category_parent['total'] > 0) {
$category_depth = 'nested'; // navigate through the categories
} else {
$category_depth = 'products'; // category has no products, but display the 'no products' message
}
}
}
Danke und Gruss
gilbena
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 28.08.2007, 06:23
Erfahrener Benutzer
 
Registriert seit: 29.09.2005
Beiträge: 582
Standard

Das liegt an der Datenbankversion. Entweder ein Update des Shops auf die neueste Version machen oder zu Fuss:
Error 1054 - Hier eine Allroundlösung gefunden
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
1054, clause, column, pproductsid, unknown

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
1054 - Unknown column 'p.group_permission_' in 'where clause' gogolog Shopbereich 1 11.07.2007 14:49
1054 - Unknown column 'p.products_id' in 'on clause' micha2003 Allgemeine Diskussionen 3 11.03.2007 00:18


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:26 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand