Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Blog error: "Debug (line 118 of BBCodeParser.php)" showing up on page


Reply

2 Posts   933 Views

Avatar
li2ng

4 July 2008 at 10:41am (Last edited: 4 July 2008 10:42am), Community Member, 1 Post

I came across the same error as the [url=http://www.silverstripe.com/website-authors-forum/show/110093]"Blog error" topic[/url] posted yesterday. But after sorting that out, I now have a text line appearing at the top of the Blog page (above the template header etc) that shows:

"Debug (line 118 of BBCodeParser.php): ABCD"
where ABCD is the text content of the blog entry.

I've tried adding another blog entry to see what happens. The above Debug line repeats itself, but with the 2nd blog entry's text as well so it now looks like the following at the top of the Blog page:

"Debug (line 118 of BBCodeParser.php): ABCD2"
"Debug (line 118 of BBCodeParser.php): ABCD"

where ABCD2 is the text content of the 2nd blog entry.

Why is this happening? How do I fix it? Thanks!!

Avatar
Willr

4 July 2008 at 11:52am Forum Moderator, 5511 Posts

Some one (not to name names *cough* svn blame ...) commited some Debug Code in the BBCode Parser - http://open.silverstripe.com/browser/modules/sapphire/tags/2.2.2/parsers/BBCodeParser.php#L118

Pick the problem! Heh the Debug::message($this->content); should be removed of course.