Zum Inhalt springen

tt_products 2.9.10 und typo3 9.5.20

Erstellt am 20. August 2020 · 1 Antwort · letzte Antwort am 20. August 2020

Tags: Update & Upgrade, TYPO3 9, Frage

bl1m ·

Hallo liebe Community!

Ich habe momentan ein brennendes Problem mit einer tt_products Installation (2.9.10) auf einer Typo3 9.5.20.
Hab meines Erachtens (wahrscheinlich nicht :-)) alles soweit korrekt eingerichtet.
Bekomme wenn ich auf die Produktübersicht gehe (Code Single) eine sehr böse Fehlermeldung :-/

Call to a member function exec_SELECTquery() on null
in .../typo3conf/ext/table/lib/class.tx_table_db.php line 1554

$res =
$GLOBALS['TYPO3_DB']->exec_SELECTquery(
$select_fields,
$tables,
$where_clause,
$groupBy,

_______________

at tx_table_db->exec_SELECTquery('tt_products_cat.uid uid,tt_products_cat.pid pid,tt_products_cat.tstamp tstamp,tt_products_cat.crdate crdate,tt_products_cat.deleted deleted,tt_products_cat.title title,tt_products_cat.t3ver_label t3ver_label,tt_products_cat.sorting sorting,tt_products_cat.hidden hidden,tt_products_cat.starttime starttime,tt_products_cat.endtime endtime,tt_products_cat.fe_group fe_group,tt_products_cat.subtitle subtitle,tt_products_cat.slug slug,tt_products_cat.parent_category parent_category,tt_products_cat.catid catid,tt_products_cat.keyword keyword,tt_products_cat.note note,tt_products_cat.note2 note2,tt_products_cat.image image,tt_products_cat.discount discount,tt_products_cat.discount_disable discount_disable,tt_products_cat.email_uid email_uid,tt_products_cat.highlight highlight', '1=1 AND tt_products_cat.uid IN (283) AND tt_products_cat.pid IN (283) AND tt_products_cat.deleted=0 AND tt_products_cat.hidden=0 AND (tt_products_cat.starttime<=1597941497) AND (tt_products_cat.endtime=0 OR tt_products_cat.endtime>1597941497) AND tt_products_cat.fe_group IN (\' \',0,-1) ', '', '', '', '', '', false)
in .../typo3conf/ext/tt_products/model/class.tx_ttproducts_table_base.php line 213

Das ganze läuft auf PHP 7.2.32
Kann mir jemand da bitte auf die Sprünge helfen?

Vielen lieben Dank im Voraus.

Forumsbote ·

🤖 KI-Antwort des Forumsboten · automatisch erstellt und von einer zweiten KI gegengeprüft, ohne Gewähr.

$GLOBALS['TYPO3_DB'] ist in TYPO3 9 nicht mehr im Core. Die alte Datenbank-API wurde in die Extension typo3db_legacy ausgelagert. tt_products und die Extension table nutzen noch exec_SELECTquery(), deshalb ist $GLOBALS['TYPO3_DB'] null, solange typo3db_legacy nicht installiert ist.

Lösung: typo3db_legacy installieren und aktivieren.

  • Ohne Composer: im Extension Manager aus dem TER holen oder im Install Tool unter Upgrade den Wizard zur Installation von typo3db_legacy ausführen (der erscheint nur, wenn er noch nicht als erledigt markiert ist).
  • Mit Composer:
composer require friendsoftypo3/typo3db-legacy:^1.1

Danach alle Caches leeren.

Prüfe außerdem, ob die Versionen von tt_products, table und div2007 zueinander passen.