Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Fehler nach Modeinbau

Aloittaja Seb-Eisdrache, heinäkuu 18, 2007, 09:34:29 AP

« edellinen - seuraava »

Seb-Eisdrache

Hallo, nachdem ich einen Mod eingbaut habe, kommen immer merkwürgie Fehlerberichte (Ich habe nur was in der Post.php gändert und die Funktion wird auch erfülllt).

8: Use of undefined constant message - assumed 'message'
Datei: /var/www/localhost/htdocs/daten/forum/Sources/Post.php
Zeile: 1558

2: Missing argument 3 for db_query(), called in /var/www/localhost/htdocs/daten/forum/Sources/Post.php on line 1552 and defined
Datei: /var/www/localhost/htdocs/daten/forum/Sources/Subs.php
Zeile: 238

8: Use of undefined constant message - assumed 'message'
Datei: /var/www/localhost/htdocs/daten/forum/Sources/Post.php
Zeile: 1558


Kann mir da jemand weiter helfen?

dieter4

Suche mal nach [message] und nach __FILE__);

Wenn du was findest melde dich nochmal (oder hänge die Post.php an ;)).

Seb-Eisdrache

Ich hatte das __file__ aus der (eingabauten)abfrage genommen, sollte man es drin lassen?

Seb-Eisdrache

hier mal die abfrage:

      // Get the existing message.
      $request = db_query("
         SELECT
            m.ID [nofollow]_MEMBER,  m.body
         FROM ({$db_prefix}messages AS m)
         WHERE m.ID [nofollow]_MSG = " . (int) $_REQUEST['msg'] . "");
      $row = mysql_fetch_assoc($request);      
      // Get the stuff ready for the form.
      $form_message = preg_replace('|<br(?: /)?>|', "\n", $row['body']);      

Seb-Eisdrache

ok, hat sich jetzt erledigt, $row wurde umbenannt und alle arrays haben nun Hochkommas und __line__ und __file__ wurde angehängt.


Advertisement: