Home Forums Bug Reports Post Object: Loading Failed Reply To: Post Object: Loading Failed

  • There are several problems with that plugin. The first is that it has not been updated in 2 years. The second is on starting on lines 276 to 292 of the file video-js.php. You can see in this code where it’s being output. This should only be outputting JavaScript values, not HTML.

    /* TinyMCE Shortcode Generator */
    function video_js_button() {
    	if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') )
    	if ( get_user_option('rich_editing') == 'true' ) {
    		add_filter('mce_external_plugins', 'video_js_mce_plugin');
    		add_filter('mce_buttons', 'register_video_js_button');
    add_action('init', 'video_js_button');
    function register_video_js_button($buttons) {
    	array_push($buttons, "|", "videojs");
    	$options = get_option('videojs_options');
    	echo('<div style="display:none"><input type="hidden" id="videojs-autoplay-default" value="' . $options['videojs_autoplay'] . '"><input type="hidden" id="videojs-preload-default" value="' . $options['videojs_preload'] . '"></div>'); //the default values from the admin screen, to be used by our javascript
    	return $buttons;

    You can try commenting out that line, but that will probably break the plugin. If the author of this plugin is no longer supporting it and you can’t get support from there then your best bet would be to find an up to day plugin that will do the job.