[Typo3-UG Oesterreich] error Invalid argument supplied for foreach()

Wolfgang Klinger wolfgang at stufenlos.net
Mon Jul 18 09:55:26 CEST 2005


 Hallo!

 Christoph Maier schrieb folgendes am 18.07.2005:
> Ich hab ein kleines problemchen mit dem modul chc_forum;
> dieser Fehler tritt auf, sobald ein FE-User eingeloggt ist und
> ins Forum einsteigen will:
> 
> Warning: Invalid argument supplied for foreach() in
> /data1/www/www.austria-digital.tv/htdocs/typo3conf/ext/chc_forum/pi1/class.tx_chcforum_user.php
> on line 97
> 
> Warning: Cannot modify header information - headers already sent by (output
> started at
> /data1/www/www.austria-digital.tv/htdocs/typo3conf/ext/chc_forum/pi1/class.tx_chcforum_user.php:97)
> in
> /data1/www/www.austria-digital.tv/typo3_src-3.8.0/typo3/sysext/cms/tslib/class.tslib_fe.php
> on line 2612

 weil hier
-----
if ($this->uid) {
    $row_array = $this->pi_getRecord('fe_users', $this->uid, 1);
    foreach ($row_array as $attr => $value) {
        $this->$attr = $value;
    }
}    
-----
 pi_getRecord kein Array zurückliefert...

> Zu sehen ist es auf www.austria-digital.tv (Username "moarli" | Passwort 
> "wysiwyh,")
> dann auf Forum klicken

 Login funktioniert nicht, ist aber auch egal.

> Hat jemand eine idee?

 Bau ein paar debug() Statements ein und schau warum das so ist... :-)


 lg
 Wolfgang
 ___________________________________________________________
 The first rule of debugging: Don't panic!





More information about the TYPO3-at mailing list