Support » Plugin: JW Player for Flash & HTML5 Video » Plugin throws error in debug mode

  • maxwelton

    (@maxwelton)


    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method JWP6_Media::url_attachment_filter() should not be called statically in \wp-includes\plugin.php on line 199

    Line 241 of jwp6-class-media.php:

    function url_attachment_filter($url, $id) {

    I think this should be:

    public static function url_attachment_filter($url, $id) {

    The error was appearing in the media library, when trying to display the thumbnails. I changed the plugin’s code as above and the error went away.

    https://wordpress.org/plugins/jw-player-plugin-for-wordpress/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author JW Player

    (@longtail-video)

    Interesting, I will pass this along, thank you!

    Thread Starter maxwelton

    (@maxwelton)

    Thanks. Just found a few more…on the player management admin screen:

    Strict Standards: Declaration of JWP6_Form_Field_Uneditable::validate() should be compatible with JWP6_Form_Field::validate($post_data) in \wp-content\plugins\jw-player-plugin-for-wordpress\jwp6\jwp6-class-form-field.php on line 128 
    
    Strict Standards: Declaration of JWP6_Form_Field_Select::render_field() should be compatible with JWP6_Form_Field::render_field($value = NULL) in \wp-content\plugins\jw-player-plugin-for-wordpress\jwp6\jwp6-class-form-field.php on line 171 
    
    Strict Standards: Declaration of JWP6_Form_Field_Radio::render_field() should be compatible with JWP6_Form_Field::render_field($value = NULL) in \wp-content\plugins\jw-player-plugin-for-wordpress\jwp6\jwp6-class-form-field.php on line 221 
    
    Strict Standards: Declaration of JWP6_Form_Field_Toggle::render_field() should be compatible with JWP6_Form_Field::render_field($value = NULL) in \wp-content\plugins\jw-player-plugin-for-wordpress\jwp6\jwp6-class-form-field.php on line 243 
    
    Strict Standards: Declaration of JWP6_Admin_Page_Players::process_post_data() should be compatible with JWP6_Admin_Page::process_post_data($post_data, $save_to_option = true) in \wp-content\plugins\jw-player-plugin-for-wordpress\jwp6\jwp6-class-admin-page-players.php on line 627
    Plugin Author JW Player

    (@longtail-video)

    Np, thank you.

    Please help!!!! Maxwelton I have been searching all day on forums and leaving posts to find this problem. When I upgraded to 3.9.1 the same thing happened to me with the jwplayer. No one has been able to help me so far. My website http://www.fitforrockin.com has mostly videos so I am stuck until I can find the answer. Were you able to fix the problem?
    My player management admin screen also reads:
    Strict Standards: Declaration of JWP6_Form_Field_Uneditable::validate() should be compatible with JWP6_Form_Field::validate($post_data) in /home1/scheyka/public_html/wp-content/plugins/jw-player-plugin-for-wordpress/jwp6/jwp6-class-form-field.php on line 128

    Strict Standards: Declaration of JWP6_Form_Field_Select::render_field() should be compatible with JWP6_Form_Field::render_field($value = NULL) in /home1/scheyka/public_html/wp-content/plugins/jw-player-plugin-for-wordpress/jwp6/jwp6-class-form-field.php on line 171

    Strict Standards: Declaration of JWP6_Form_Field_Radio::render_field() should be compatible with JWP6_Form_Field::render_field($value = NULL) in /home1/scheyka/public_html/wp-content/plugins/jw-player-plugin-for-wordpress/jwp6/jwp6-class-form-field.php on line 221

    Strict Standards: Declaration of JWP6_Form_Field_Toggle::render_field() should be compatible with JWP6_Form_Field::render_field($value = NULL) in /home1/scheyka/public_html/wp-content/plugins/jw-player-plugin-for-wordpress/jwp6/jwp6-class-form-field.php on line 243

    Strict Standards: Declaration of JWP6_Admin_Page_Players::process_post_data() should be compatible with JWP6_Admin_Page::process_post_data($post_data, $save_to_option = true) in /home1/scheyka/public_html/wp-content/plugins/jw-player-plugin-for-wordpress/jwp6/jwp6-class-admin-page-players.php on line 627

    Plugin Author JW Player

    (@longtail-video)

    Yes, I passed this along to the developer of the plugin that the update to WP 3.9.1 has created an issue in the plugin’s media manager.

    Version 2.1.9 WordPress version 4.1

    Strict Standards: Declaration of JWP6_Form_Field_Uneditable::validate() should be compatible with that of JWP6_Form_Field::validate() in /home/content/68/9755368/html/MoviePalaceTheater/wp-content/plugins/jw-player-plugin-for-wordpress/jwp6/jwp6-class-form-field.php on line 128

    Strict Standards: Declaration of JWP6_Form_Field_Select::render_field() should be compatible with that of JWP6_Form_Field::render_field() in /home/content/68/9755368/html/MoviePalaceTheater/wp-content/plugins/jw-player-plugin-for-wordpress/jwp6/jwp6-class-form-field.php on line 171

    Strict Standards: Declaration of JWP6_Form_Field_Radio::render_field() should be compatible with that of JWP6_Form_Field::render_field() in /home/content/68/9755368/html/MoviePalaceTheater/wp-content/plugins/jw-player-plugin-for-wordpress/jwp6/jwp6-class-form-field.php on line 221

    Strict Standards: Declaration of JWP6_Form_Field_Toggle::render_field() should be compatible with that of JWP6_Form_Field::render_field() in /home/content/68/9755368/html/MoviePalaceTheater/wp-content/plugins/jw-player-plugin-for-wordpress/jwp6/jwp6-class-form-field.php on line 243

    Plugin Author JW Player

    (@longtail-video)

    On what page do you get these errors?

    Hello,

    [26-Jan-2015 18:11:28 UTC] PHP Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method JWP6_Media::url_attachment_filter() should not be called statically in /path/to/wordpress/wp-includes/plugin.php on line 192

    I too see these errors, whenever I visit a page in the WP-Admin (any page at all).

    Plugin Author JW Player

    (@longtail-video)

    Please email support [at] jwplayer [dot] com with a link that we can check to view the issue.

    Hi, Just activating the plugin.
    so much errors !!!
    it’s a Pity
    Hope you’re gonna fix it soon and release a version.
    cheers

    Plugin Author JW Player

    (@longtail-video)

    Please send an email to:

    support

    at

    jwplayer

    dot

    com

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Plugin throws error in debug mode’ is closed to new replies.