[gelöst] Problem mit Forum-Modul nach Update

am 21.02.2013 - 18:47 Uhr in
Hi,
hab heute Drupal von 7.15 auf 7.20 geupdatet. Das Forum-Modul aus dem Core hat vorher tadellos funktioniert allen Ansprüchen genügt. Jetzt bekomme ich folgende Fehlermeldung:
- Notice: Undefined variable: forum_term in forum_forum_load() (Zeile 786 von /home/.sites/74/site318/web/_newweb/_drupal/modules/forum/forum.module).
- Notice: Trying to get property of non-object in forum_forum_load() (Zeile 786 von /home/.sites/74/site318/web/_newweb/_drupal/modules/forum/forum.module).
- Notice: Undefined property: stdClass::$tid in forum_forum_load() (Zeile 791 von /home/.sites/74/site318/web/_newweb/_drupal/modules/forum/forum.module).
Kenn mich mit PHP nicht wirklich aus. Hat jemand einen Hinweis. Die Lösung des Problems wäre natürlich auch fein :D.
- Anmelden oder Registrieren um Kommentare zu schreiben
hast du update.php
am 22.02.2013 - 10:06 Uhr
hast du update.php ausgeführt? cache gelöscht?
C.A.W. Webdesign

yepp, alles erledigt.
am 22.02.2013 - 10:59 Uhr
yepp, alles erledigt.
Hatte das gleiche
am 25.02.2013 - 12:31 Uhr
Hatte das gleiche Problem.
Das Problem scheint aufzutauchen wenn die term ID ($tid) gesetzt ist, aber auf eine leere Zeichenkette verweist.
Suche in der
forum.module
Datei folgendes:
// Return a cached forum tree if available.
if (!isset($tid)) {
$tid = 0;
und ersetzte es mit:
// Return a cached forum tree if available.
if (!isset($tid) || empty($tid)) {
$tid = 0;
Hat bei mir geholfen.
thx ;)
am 25.02.2013 - 18:04 Uhr
thx ;)