OsCommerce

Aus DD24 Wiki

Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

1054 - Unknown column 'p.products_id' in 'on clause'

Effekt

Beim öffnen der Produktkategorien erscheint folgende Fehlermeldung:

1054 - Unknown column 'p.products_id' in 'on clause'

select count(p.products_id) as total from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id,
products_to_categories p2c left join specials_retail_prices 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 = '206'

Ursache

Ältere Versionen von osCommerce arbeiten nicht korrekt mit MySQL5 zusammen.

Fix

Ein Upgrade der osCommerce Software auf eine aktuelle Version behebt das Problem. Fehlerbeschreibung auf oscommerce Webseite

Kein Emailversand

Effekt

osCommerce versendet keine Emails

Ursache

Fehler in folgenden Dateien:

includes/classes/email.php
admin/includes/classes/email.php

Die Variable $to wird nicht korrekt erstellt.

Fix

Zeile 522 $to ändern nach $to_addr
vorher:

return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));

nacher:

return mail($to_addr, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));
Persönliche Werkzeuge