10375 Posts in 2190 Topics by 1707 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 458 Views |
-
JW player Fatal error

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
-
Re: JW player Fatal error

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. -
Re: JW player Fatal error

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
-
Re: JW player Fatal error

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 -
Re: JW player Fatal error

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
| 458 Views | ||
|
Page:
1
|
Go to Top |


