Zum Inhalt springen

mm_forum verursacht bei Umfrageerstellung einen Fatal-Error

Erstellt am 12. MĂ€rz 2008 · 5 Antworten · letzte Antwort am 2. April 2008

Tags: PHP, Frage

backzwang ·

Wenn ich eine Umfrage unter mm_forum erstelle erscheint diese Meldung

Fatal error: Class 't3li_div' not found in /var/www/hufflepuff/infdevtan/html/typo3conf/ext/mm_forum/pi1/class.tx_mmforum_pi1.php on line 2636

Wie es aussieht ist es ein kleiner Tippfehler ... 😉 Ich hoffe dass wird auch beim nĂ€chsten Update behoben.

medea ·

Hallo,

ich hab den Fix eingespielt.

Jetzt passiert folgendes:

Das Erstellen einer Umfrage scheitert mit der Meldung, dass der Benutzer nicht berechtigt sei.

Im PHP Log ist folgender Eintrag zu finden:

Fehler im php.log (PHP 5.2.5 auf SuSE Linux 9.3)

[14-M344r-2008 12:22:52] PHP Warning: Missing argument 1 for tx_mmforum_polls::getMayCreatePoll(), called in /srv/www/vhosts/seniorfighters.de/httpdocs/typo3/typo3conf/ext/mm_forum/pi1/class.tx_mmforum_polls.php on line 399 and defined in /srv/www/vhosts/seniorfighters.de/httpdocs/typo3/typo3conf/ext/mm_forum/pi1/class.tx_mmforum_polls.php on line 682

Zeile 399:

        if(!tx_mmforum_polls::getMayCreatePoll()) return $pObj->pi_getLL('poll.restricted');

Zeile 682:

  function getMayCreatePoll($pObj) { ....

Änderung von Zeile 399 zu

        if(!tx_mmforum_polls::getMayCreatePoll($pObj)) return $pObj->pi_getLL('poll.restricted');

löst das Problem.
Ist das nun ein Bug, ein Problem mit meiner PHP Version bzw. meinen php.ini Einstellungen??

Die Funktion getMayCreatePoll wir noch anderen Stellen aufgerufen, die mĂŒssen dann wohl auch angepasst werden, oder?

Gruz von Yvonne

PeteFish ·

Das Problem hab ich auch, mit Version 0.1.5
Liegt das nun an mm_forum? Oder hab ich irgendwas falsch gemacht?

Ich bekomme diese Warnung:
Warning: Missing argument 1 for tx_mmforum_polls::getMayCreatePoll(), called in /home/www/typo3/typo3conf/ext/mm_forum/pi1/class.tx_mmforum_polls.php on line 399 and defined in /home/www/typo3/typo3conf/ext/mm_forum/pi1/class.tx_mmforum_polls.php on line 682

Danach wird gesagt ich habe keine Rechte eine Umfrage zu erstellen. Ist diese CodeÀnderung von medea in der aktuellen Version noch nicht behoben?