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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Error viewing Blog for 2.1.0-rc3


Go to End


5 Posts   3929 Views

Avatar
Val

7 Posts

29 September 2007 at 9:05am

Edited: 29/09/2007 9:40am

Blog module is installed for 2.1.0-rc3

when I've tried to view blog http://example.com/blog getting this error


Fatal error: Class 'SSHTMLBBCodeParser_Filter_Basic' not found in sapphire\parsers\HTML\HTMLBBCodeParser.php on line 224

on the top of it, when installed forum modules, getting following warnings

Warning: Warning: there are two 'BBCodeParser' files: 'sapphire/parsers/BBCodeParser.php' and 'forum/code/BBCodeParser.php'. This might mean that the wrong code is being used. in sapphire\core\ManifestBuilder.php on line 153

Warning: Warning: there are two 'TextParser' files: 'sapphire/parsers/TextParser.php' and 'forum/code/TextParser.php'. This might mean that the wrong code is being used. in sapphire\core\ManifestBuilder.php on line 153

Avatar
Willr

Forum Moderator, 5523 Posts

29 September 2007 at 4:13pm

The warnings are because we used to have the BBCode parser in the forum module, In 2.1.0 we recognized that now the BBCode parser is used in the blog module aswell so we moved it to sapphire. We haven't updated the forum module yet as SilverStripe 2.0.2 is still our stable release and that doesn't have the BBCode parser in its core as yet.

Just remove those 2 files from the forum/ module it should still work fine.

Avatar
Val

7 Posts

30 September 2007 at 10:07am

thanks, that's what I thought

how about this error

Fatal error: Class 'SSHTMLBBCodeParser_Filter_Basic' not found in sapphire\parsers\HTML\HTMLBBCodeParser.php on line 224

it does not look like that class 'SSHTMLBBCodeParser_Filter_Basic' exist in $_CLASS_MANIFEST array

Avatar
jimbomaha

3 Posts

16 October 2007 at 12:56am

Hi,

I am also receiving this error:

Fatal error: Class 'SSHTMLBBCodeParser_Filter_Basic' not found in C:\php\xampp\htdocs\du360\sapphire\parsers\HTML\HTMLBBCodeParser.php on line 224

This is on a fresh install of Silverstripe 2.1.0 and blog 0.1?

How do I fix/remove this error?

Cheers

Jc

Avatar
Val

7 Posts

16 October 2007 at 5:49am

The following solution was proposed by one of the silverstripe developer:

changing line 218 of sapphire/parsers/HTMLBBCodeParser.php from

@include_once 'HTML/BBCodeParser/Filter/'.$filter.'.php';

to

@include_once
'sapphire/parsers/HTML/BBCodeParser/Filter/'.$filter.'.php';

or

@include_once 'BBCodeParser/Filter/'.$filter.'.php';

The last one worked for me