Page 1 of 1

BB code problem

Posted: Mon Aug 13, 2007 9:59 pm
by eware
I have a theme installed on my board. The bb code has never worked. Whenever someone uses it I get the following message at the top of the page:

Parse error: syntax error, unexpected '<' in /home/daveko5/public_html/phpbb/includes/bbcode.php(61) : eval()'d code on line 61

Warning: Cannot modify header information - headers already sent by (output started at /home/daveko5/public_html/phpbb/includes/bbcode.php(61) : eval()'d code:61) in /home/daveko5/public_html/phpbb/includes/page_header.php on line 483

Is there some code I need to alter/fix? I know html, but I'm new to php, so treat me like I don't know anything.

Posted: Mon Aug 13, 2007 10:27 pm
by iknownothing
a theme? does the standard theme work correctly, if so, it sounds like your theme has edited the wrong parts of some files.

Posted: Mon Aug 13, 2007 10:53 pm
by eware
Template. The default template worked. I've compare the bbcode.tpl in the template I'm using with the subSilver bbcode.tpl, and they look identical. Where else might there be a problem?

Posted: Mon Aug 13, 2007 11:01 pm
by iknownothing
did the theme require you to edit/overwite bbcode.php? If so, post up the code.

Posted: Mon Aug 13, 2007 11:13 pm
by eware
No, I didn't make any changes to the bbcode.php

Posted: Tue Aug 14, 2007 4:13 am
by stereofrog
They're probably using preg_replace with /e switch and something in your input caused it to form a syntactically incorrect string. I wouldn't use software that behaves like this.