Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » JW player Fatal error

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 654 Views
  • kindlemanwill
    Avatar
    Community Member
    67 Posts

    JW player Fatal error Link to this post

    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

  • kindlemanwill
    Avatar
    Community Member
    67 Posts

    Re: JW player Fatal error Link to this post

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

  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    Re: JW player Fatal error Link to this post

    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.

  • kindlemanwill
    Avatar
    Community Member
    67 Posts

    Re: JW player Fatal error Link to this post

    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

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: JW player Fatal error Link to this post

    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

  • kindlemanwill
    Avatar
    Community Member
    67 Posts

    Re: JW player Fatal error Link to this post

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

    Thanks for getting back to me

    Will

    654 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.