Seite 1 von 4

.19 auf .20 privmsg.php + function_post.php -> quote-prob

Verfasst: 07.04.2006 20:18
von miccom
ich finde meinen fehler nicht, vielleicht sieht ihn jemand anders:

lt. anleitung:

Code: Alles auswählen

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

#
#-----[ FIND ]---------------------------------------------
# Line 1505
			if ( !($privmsg = $db->sql_fetchrow($result)) )
			{
				redirect(append_sid("privmsg.$phpEx?folder=$folder", true));
			}


#
#-----[ AFTER, ADD ]---------------------------------------------
#
			$privmsg_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject);

#
#-----[ FIND ]---------------------------------------------
# Line 1522
				$privmsg_bbcode_uid = $privmsg['privmsgs_bbcode_uid'];

				$privmsg_message = preg_replace("/\:(([a-z0-9]:)?)$privmsg_bbcode_uid/si", '', $privmsg_message);
				$privmsg_message = str_replace('<br />', "\n", $privmsg_message);
				$privmsg_message = preg_replace('#</textarea>#si', '</textarea>', $privmsg_message);

#
#-----[ AFTER, ADD ]---------------------------------------------
#
				$privmsg_message = preg_replace($orig_word, $replacement_word, $privmsg_message);
liefert:
Warning: Empty regular expression in .../privmsg.php on line 1510

Warning: Empty regular expression in .../privmsg.php on line 1524
die besagten zeilen 1500 bis 1525:

Code: Alles auswählen

			if ( !($result = $db->sql_query($sql)) )
			{
				message_die(GENERAL_ERROR, 'Could not obtain private message for editing', '', __LINE__, __FILE__, $sql);
			}

			if ( !($privmsg = $db->sql_fetchrow($result)) )
			{
				redirect(append_sid("privmsg.$phpEx?folder=$folder", true));
			}

			$privmsg_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject);
			$privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject'];

			$to_username = $privmsg['username'];
			$to_userid = $privmsg['user_id'];

			if ( $mode == 'quote' )
			{
				$privmsg_message = $privmsg['privmsgs_text'];
				$privmsg_bbcode_uid = $privmsg['privmsgs_bbcode_uid'];

				$privmsg_message = preg_replace("/\:(([a-z0-9]:)?)$privmsg_bbcode_uid/si", '', $privmsg_message);
				$privmsg_message = str_replace('<br />', "\n", $privmsg_message);
				$privmsg_message = preg_replace('#</textarea>#si', '</textarea>', $privmsg_message);
				$privmsg_message = preg_replace($orig_word, $replacement_word, $privmsg_message);

danke, falls jemand den fehler sieht :)

hier die ganze privmsg als text:
http://www.niedermayr.cc/test/privmsg.txt

ps: mit der alten privmsg.php tritt der fehler nicht auf!

/e da hats noch irgendwas... wenn ich einen user zitiere, also quote mit "username", wird der bbcode nicht umgewandelt. alle anderen bbcodes funktionieren aber...

/e2
das mit dem zitieren liegt eindeutig an der functions_post.php - mit der .19er gehts, mit der .20er nicht :(

http://www.niedermayr.cc/test/functions_post.txt

Verfasst: 07.04.2006 21:27
von Kortirion
bezüglich der privmsg.php muss ich mich miccom leider anschliessen :(

Fehlermeldung wie folgt:

Code: Alles auswählen

Warning: preg_replace(): Empty regular expression in /home/www/doc/15323/schwarzer-humbug.de/www/privmsg.php on line 1520
‹BXgc ÏÕ™ý‡Ãå““ÙDŒ [...und jede menge weiterer Sonderzeichen...]
Meine privmsg.php: http://www.kortirion.de/privmsg.txt

Verfasst: 07.04.2006 22:03
von Andy120
Und auch ich bekomme die Meldung:

Code: Alles auswählen

Warning: Empty regular expression in /home/abouthab/public_html/board/privmsg.php on line 1516

Warning: Cannot modify header information - headers already sent by (output started at /home/abouthab/public_html/board/privmsg.php:1516) in /home/abouthab/public_html/board/includes/page_header.php on line 569

Warning: Cannot modify header information - headers already sent by (output started at /home/abouthab/public_html/board/privmsg.php:1516) in /home/abouthab/public_html/board/includes/page_header.php on line 571

Warning: Cannot modify header information - headers already sent by (output started at /home/abouthab/public_html/board/privmsg.php:1516) in /home/abouthab/public_html/board/includes/page_header.php on line 572
Ich wäre froh um eine Lösung :)

Verfasst: 07.04.2006 22:06
von Kortirion
Entweder noch ein "Fehler in den Codechanges (wie auch die admin_ranks.php-Geschichte)?" oder wir drei haben ähnliche Mods verbaut?

Wobei mir da in Bezug auf die privmsg.php eigentlich nix einfiele...

Verfasst: 07.04.2006 22:07
von Andy120
Was hast du den für MOD's?

Verfasst: 07.04.2006 22:11
von Kortirion
Andy120 hat geschrieben:Was hast du den für MOD's?
Bezüglich der PNs eigentlich nur den ListUsers MOD, aber der verändert nur die posting_body.tpl. Ich wüsste jetzt grade nicht, welcher andere Mod Einfluss auf die privmsg.php haben könnte, aber ich gucke noch mal genauer.

Nachtrag:

Änderungen an der privmsg.php:
Font Face BBCode

Verfasst: 07.04.2006 22:12
von Andy120
hmm ich habe komplett andere Mods drinen.. Irgentwas ist falsch nur was? *gg

Edit:


Emm lad dir einfach die Aktuelle privmsg.php rauf und gut ist.. Natürlich nur, die die keine MODs in der privmsg.php eingebaut haben..

Verfasst: 07.04.2006 22:18
von Kortirion
Na, da ich das aber ja habe, wüsste ich gerne trotzdem, wo der Fehler liegt ;)

(Klar baue ich schlimmstenfalls die Modänderungen wieder ein, aber Ursachenforschung ist ja immer gut ;))

Verfasst: 07.04.2006 22:21
von Andy120
Ich hab auch nicht behauptet es ist abgeschlossen ^^ *gg

Mich würds auch interessieren :o

Verfasst: 07.04.2006 22:23
von BZebra
Bei mir auch, beim antworten auf eine private Nachricht:
Warning: preg_replace(): Empty regular expression in /www/htdocs/xxxxxxx/privmsg.php on line 1534

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/skoliose/privmsg.php:1534) in /www/htdocs/xxxxxxx/includes/page_header.php on line 683

Warning: Cannot modify header information - headers already sent by (output started at /xxxxxxx/htdocs/skoliose/privmsg.php:1534) in /www/htdocs/skoliose/includes/page_header.php on line 685

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/skoliose/privmsg.php:1534) in /www/htdocs/xxxxxxx/includes/page_header.php on line 686