FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Warnings while posting
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Warnings while posting [message #34269] Mon, 16 October 2006 19:05 Go to next message
kroku is currently offline  kroku   Poland
Messages: 30
Registered: July 2006
Karma: 0
Member
Warning: strpos() [function.strpos]: Empty delimiter. in /home/aeii/public_html/fud/theme/default/post.php on line 3661

Warning: Cannot modify header information - headers already sent by (output started at /home/aeii/public_html/fud/theme/default/post.php:3661) in /home/aeii/public_html/fud/theme/default/post.php on line 4125


inside post.php
3661:		while (($a = strpos($text_l, $k, $a)) !== false) {
3662:			if ((!$a || isset($GLOBALS['__SML_CHR_CHK__'][$text_l[$a - 1]])) && ((@$ch = $text_l[$a + $len]) == "" || isset($GLOBALS['__SML_CHR_CHK__'][$ch]))) {
3663:				$text_l = substr_replace($text_l, $v, $a, $len);
3664:				$text = substr_replace($text, $v, $a, $len);
3665:				$a += strlen($v) - $len;
3666:			} else {
3667:				$a += $len;
3668:			}
3669:		}



4121:				/* redirect the user to their message */
4122:				if ($FUD_OPT_2 & 32768) {
4123:					header('Location: http://aeii.livenet.pl/fud/index.php/m/'.$msg_post->id.'/'._rsidl.'#msg_'.$msg_post->id);
4124:				} else {
4125:					header('Location: http://aeii.livenet.pl/fud/index.php?t='.$t.'&goto='.$msg_post->id.'&'._rsidl.'#msg_'.$msg_post->id);
4126:				}
4127:				exit;

[Updated on: Mon, 16 October 2006 19:05]

Report message to a moderator

Re: Warnings while posting [message #34281 is a reply to message #34269] Tue, 17 October 2006 15:51 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It sounds like you use the "~" (tild) uses to separate multiple smiley codes for the same smiley as trailing part of a smiley or left one trailing. Subsequently you ended up with an empty token, hence the error.

FUDforum Core Developer
Odp: Warnings while posting [message #34307 is a reply to message #34269] Wed, 18 October 2006 19:10 Go to previous messageGo to next message
kroku is currently offline  kroku   Poland
Messages: 30
Registered: July 2006
Karma: 0
Member
But it happens always, for every user and regardless of content of message.

Re: Odp: Warnings while posting [message #34315 is a reply to message #34307] Fri, 20 October 2006 01:06 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
That's because the smiley parser is activated on every single message.

FUDforum Core Developer
Odp: Warnings while posting [message #34328 is a reply to message #34269] Fri, 20 October 2006 19:36 Go to previous messageGo to next message
kroku is currently offline  kroku   Poland
Messages: 30
Registered: July 2006
Karma: 0
Member
OK, I understand every message is parsed... But... what can cause an error if message body is only one word like "test". I can't find any bugs in my smileys table... What you mean by empty token... means where? In table, message, elsewhere ?
If I send this post here, everything is OK. On my forum is this warning Sad
Re: Odp: Warnings while posting [message #34349 is a reply to message #34328] Sun, 22 October 2006 21:51 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to go to the admin control panel, smiley editor and check to make sure that none of your smilie codes end with a ~ or have two ~ right after one another.

FUDforum Core Developer
Odp: Warnings while posting [message #34404 is a reply to message #34269] Thu, 26 October 2006 15:25 Go to previous message
kroku is currently offline  kroku   Poland
Messages: 30
Registered: July 2006
Karma: 0
Member
I found the real reason... vieworder for every icon was set to 1. I dont know how it could happen. I didnt do this Confused
I changed vieworder to diffrent numbers for every icon and this helps. I got rid of this bug Smile

[Updated on: Thu, 26 October 2006 15:27]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: lol :)
Next Topic: split_th.php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 22 06:12:53 GMT 2024

Total time taken to generate the page: 0.02473 seconds