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.

All other Modules /

Discuss all other Modules here.

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

JW player Fatal error


Reply


6 Posts   756 Views

Avatar
kindlemanwill

Community Member, 69 Posts

15 September 2011 at 6:19pm

Hello

I have installed the JWplayer module from https://github.com/silverstripe-labs/silverstripe-tinymce_jwplayer by putting the folder in my sites root.

this gives a fatal error when reloading admin or running dev/build:

Fatal error: Call to undefined method HTMLText::register_parser() in /Users/willbarker/Dropbox/msp/jwplayer/_config.php on line 2

Have i done it wrong? think so. is there a missing installation step? and how do i use the module once its up and running?

Thanks

will

Avatar
kindlemanwill

Community Member, 69 Posts

15 September 2011 at 6:19pm

sorry, SS 2.4.5 is what i am running that on.

Avatar
MarcusDalgren

Community Member, 288 Posts

15 September 2011 at 8:00pm

Hi,

The method register_parser doesn't exist on the HTMLText class so you're not doing anything wrong, the module is.
I don't know what you're supposed to replace it with.

Avatar
kindlemanwill

Community Member, 69 Posts

16 September 2011 at 11:24am

OK, thanks for that - I commented it out and the next two line fail as well -

HtmlEditorField_FlashForm::register_option('JwPlayerVideoFlashFormOption');
HtmlEditorField_FlashForm::register_option('JwPlayerAudioFlashFormOption');

So something is missing. The documentation page is supposed to be here:

http://doc.silverstripe.com/doku.php?id=modules:tinymce_jwplayer
but thats a 404.

I tried replacing the register_parser call like this:
ShortcodeParser::get()->register('JwPlayer',array('Page','JwPlayerParser'));

based on how the youtube parser is registered. but i still don't have the button on tinymce to include the short code, so im not sure if thats working. The last part of the readme says "usage overview" - but nothing below, so i'm not sure where to go from here.

Thanks for any help getting this working,

will

Avatar
Ingo

Forum Moderator, 801 Posts

26 September 2011 at 8:42am

Hello Will, I'm sorry to say but there's no quick fixes for this module - I've marked it as unmaintained and broken.
Basically, we've open sourced it without providing the necessary framework base as well.
I don't have the bandwidth to maintain it at the moment. Feel free to look at the existing ShortcodeParser API in SilverStripe on how to make the module work again.

Sorry I can't be of more assistance!
Ingo

Avatar
kindlemanwill

Community Member, 69 Posts

26 September 2011 at 1:17pm

Ok, no worries Ingo, will use vimeo for now and worry about it later.

Thanks for getting back to me

Will