WordPress.org

Ready to get started?Download WordPress

Forums

MediaElement.js - HTML5 Video & Audio Player
Undefined variable notices after update (4 posts)

  1. Frankie Jarrett
    Member
    Posted 1 year ago #

    I seem to be getting a lot of undefined variable notices after updating the plugin this morning. Missing some isset() wrappers?

    Notice: Undefined variable: type_attribute in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 428
    
    Notice: Undefined variable: width_attribute in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 428
    
    Notice: Undefined variable: height_attribute in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 428
    
    Notice: Undefined variable: poster_attribute in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 428
    
    Notice: Undefined variable: autoplay_attribute in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 428
    
    Notice: Undefined variable: mp4_source in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 429
    
    Notice: Undefined variable: mp3_source in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 430
    
    Notice: Undefined variable: webm_source in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 431
    
    Notice: Undefined variable: flv_source in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 432
    
    Notice: Undefined variable: wmv_source in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 433
    
    Notice: Undefined variable: ogg_source in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 434
    
    Notice: Undefined variable: captions_source in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 435
    
    Notice: Undefined variable: loop_option in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 445
    
    Notice: Undefined variable: mediahtml in /wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 452

    http://wordpress.org/extend/plugins/media-element-html5-video-and-audio-player/

  2. PlywoodMillionaire
    Member
    Posted 1 year ago #

    Just wanted to second this...

  3. PlywoodMillionaire
    Member
    Posted 1 year ago #

    mediaelement-js-wp.php starting at line 347 there's a series of if statements. Above this, all of the $*_source vars need to be initialized with null.

    I added above 347:

    $type_attribute
    	= $poster_attribute
    	= $autoplay_attribute
    	= $mediahtml
    	= $loop_option
    	= $mp4_source
    	= $mp3_source
    	= $webm_source
    	= $flv_source
    	= $wmv_source
    	= $ogg_source
    	= $captions_source
    	= null;
  4. PlywoodMillionaire
    Member
    Posted 1 year ago #

    Update

    $type_attribute
    	= $poster_attribute
    	= $autoplay_attribute
    	= $mediahtml
    	= $loop_option
    	= $mp4_source
    	= $mp3_source
    	= $webm_source
    	= $flv_source
    	= $wmv_source
    	= $ogg_source
    	= $captions_source
    	= $src_attribute
    	= null;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.