Seite 1 von 1

Quoten bei pn gibt Fehler

Verfasst: 28.09.2006 20:17
von Pens
Hi!

Wenn man eine pn liest und dann auch "quote" klickt, sollte man ja das antwort formular bekommen, bei dem der Text der nachricht als zitat vorhanden ist.
Bei mir steht da aber nur [ quote="user"][ /quote] und dafür dass der Text fehlt, habe ich das:

Warning: preg_replace() [function.preg-replace]: Empty regular expression in /home/www/web25/html/pen2/forum/phpBB2/privmsg.php on line 1525

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web25/html/pen2/forum/phpBB2/privmsg.php:1525) in /home/www/web25/html/pen2/forum/phpBB2/includes/page_header.php on line 662

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web25/html/pen2/forum/phpBB2/privmsg.php:1525) in /home/www/web25/html/pen2/forum/phpBB2/includes/page_header.php on line 664

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web25/html/pen2/forum/phpBB2/privmsg.php:1525) in /home/www/web25/html/pen2/forum/phpBB2/includes/page_header.php on line 665

Hier die Dateien:
privmsg.php
page_header.php

Verfasst: 29.09.2006 10:07
von killerbees19
Also zuerst einmal: Welche phpBB-Version verwendest du denn?
Laut der ersten Zeile muss deine schon etwas älter sein.

In deiner Datei sind ein paar Zeichen anders:

Code: Alles auswählen

#
#-----[ OPEN ]-----
#
privmsg.php

#
#-----[ FIND AND DELETE ]-----
#
$orig_word = $replacement_word = array();
obtain_word_list($orig_word, $replacement_word);

#
#-----[ FIND ]-----
#
$privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject'];

#
#-----[ REPLACE, WITH ]-----
#
$orig_word = $replacement_word = array();
obtain_word_list($orig_word, $replacement_word);

$privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject'];
$privmsg_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject);
Versuche mal das, denn dieser Codeteil ist dort zu viel.
Vorher bitte eine Backup der Datei anlegen :wink:


MfG Christian

Verfasst: 29.09.2006 12:42
von Garfield312
Seltsam, ich habe das gleiche Problem auf www.hottelino.de - die Änderungen wie vorstehend sind aber drin.

EDIT:
Diese Lösung hat bei mir funktioniert:


http://www.phpbb.de/viewtopic.php?p=701135#701135

Verfasst: 29.09.2006 17:57
von Pens
Hi!

meine Board Version ist 2.0.21. Es wundert mich, dass da was anders ist oO

Die Lösung, auf die Garfield312 verwiesen hat, hat bei mir auch das Problem behoben.

Danke