Insert into post buttom always inactive

I have fresh installation for WP 4.6.1 and Kaltura Community Edition 12.4.0 with Kaltura All-in-One Video Plugin for WordPress 2.7
Everything seems to work fine i can browse uploaded video and upload new video using All-in-One to kaltura.
But i can’t insert any video in any post, after select any video and add it to the post the button “Insert into post” keep gray and inactive also when i change in tab "browse Existing media " media filter to “Media i can Publish” it show me nothing, i try to upload video from All-in-One and insert it in new post with no luck “insert into post” button always inactive.
Do i miss some configuration ?

also kaltura kaltlog doesn’t shows or Wordpress
Any advice ?

Any Advice will be appreciated

Hello,

I would start by opening your browser’s dev tools and looking under both the “Console” and the “Network” tabs while making the requests in the WP I/F.
In parallel, on the Kaltura server, run kaltlog from the shell and look for any errors being outputted while making the request in WP.

kaltlog is an alias for this grep command:
tail -f /opt/kaltura/log/.log /opt/kaltura/log/batch/.log | grep -A 1 -B 1 --color “ERR:|PHP|trace|CRIT|[error]”

if there are errors when making the requests to the Kaltura API, they will likely show up in /opt/kaltura/log/kaltura_api_v3.log, once you’ve found the errors, I can guide as to how to fix them.
Also, what is your WP version?

Thank you for reply
kaltlog shows nothing and Browser dev tools shows
Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at _checkHoveringControls (kaltura-player-selector.js?ver=2.7:136)
at _onPlayerChange (kaltura-player-selector.js?ver=2.7:84)
at Object._onPlayersLoadedSuccess [as success] (kaltura-player-selector.js?ver=2.7:54)
at i (VM1385 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers&ver=…:2)
at Object.fireWith [as resolveWith] (VM1385 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers&ver=…:2)
at y (VM1385 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers&ver=…:4)
at XMLHttpRequest.c (VM1385 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers&ver=…:4)
_checkHoveringControls @ kaltura-player-selector.js?ver=2.7:136
_onPlayerChange @ kaltura-player-selector.js?ver=2.7:84
_onPlayersLoadedSuccess @ kaltura-player-selector.js?ver=2.7:54
i @ VM1385 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers&ver=…:2
fireWith @ VM1385 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers&ver=…:2
y @ VM1385 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers&ver=…:4
c @ VM1385 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers&ver=…:4
mwEmbedLoader.php?&wid=_104&uiconf_id=23448265&p=104&iframeServer=true:50 kWidget: Kaltura HTML5 Version: 2.49 ( iframe )

Sorry
WordPress 4.6.1 running Twenty Sixteen theme.

Hi @nabil_naim1,

Seem the problem starts here:

Uncaught SyntaxError: Unexpected end of JSON input

The JSON in question is the player’s config file.

Is this player functional outside of WP?

Yes this error shows in Kaltura All-in-One Video Plugin for WordPress

I understand, I am asking if the player is functioning correctly from outside of WP.

yes and I can play the video as well from All-in-One Video Plugin for WordPress, the problem i can’t insert it in post

Same problem here, with Wordpress and Kaltura CE 12.12.0 fresh install both over SSL
"Uncaught SyntaxError: Unexpected end of JSON input ,etc…"
Any ideas? Tnx!

i find a working solution for me
go to database kaltura
SELECT * FROM ui_conf where partner_id=100;
where is 100 is my publisher id, get any id of one of your new players you create it, and update
/var/www/html/wordpress/wp-content/plugins/all-in-one-video-pack/settings.php
change
’kaltura_default_player_type’ => 11958362, // default player if player was not chosen in plugin admin screen
replace 11958362 with ID you get from database

Many thanks fro reply. I replaced and reconfigure plugin but still this:

Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at _checkHoveringControls (kaltura-player-selector.js?ver=2.7:136)
at _onPlayerChange (kaltura-player-selector.js?ver=2.7:84)
at Object._onPlayersLoadedSuccess [as success] (kaltura-player-selector.js?ver=2.7:54)
at i (VM617 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers,under…:2)
at Object.fireWith [as resolveWith] (VM617 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers,under…:2)
at y (VM617 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers,under…:4)
at XMLHttpRequest.c (VM617 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload,plupload-handlers,under…:4)

Can you post result of
SELECT * FROM ui_conf where partner_id=???
and /var/www/html/wordpress/wp-content/plugins/all-in-one-video-pack/settings.php
may be i can help

±---------±---------±-----------±--------±---------------------------------------------------------±--------
------------------------------------------------------------±------±-------±------------±----------------------------±--------------------±--------------------±----------±--------±-------------------±----------------------------------------------------------------------------±-------±------------±------------------±--------------±--------±-------------------------------------------±-------------+
| id | obj_type | partner_id | subp_id | conf_file_path | name | width | height | html_params | swf_url | created_at | updated_at | conf_vars | use_cdn | tags | custom_data | status | description | display_in_search | creation_mode | version | html5_url | partner_tags |
±---------±---------±-----------±--------±---------------------------------------------------------±--------------------------------------------------------------------±------±-------±------------±----------------------------±--------------------±--------------------±----------±--------±-------------------±----------------------------------------------------------------------------±-------±------------±------------------±--------------±--------±-------------------------------------------±-------------+
| 23448222 | 1 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448222__22.xml | Player with captions | 560 | 395 | NULL | /flash/kdp3/v3.9.9/kdp3.swf | 2017-03-14 19:44:26 | 2017-03-14 19:44:26 | NULL | 1 | kdp3,player | a:2:{s:17:“conf_file_version”;d:22;s:26:“conf_file_features_version”;d:22;} | 2 | NULL | 0 | 2 | NULL | /html5/html5lib/v2.14/mwEmbedLoader.php | NULL |
| 23448223 | 1 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448223__22.xml | Hovering controllers player | 560 | 315 | NULL | /flash/kdp3/v3.9.9/kdp3.swf | 2017-03-14 19:44:26 | 2017-03-14 19:44:26 | NULL | 1 | kdp3,player | a:2:{s:17:“conf_file_version”;d:22;s:26:“conf_file_features_version”;d:22;} | 2 | NULL | 0 | 2 | NULL | /html5/html5lib/v2.14/mwEmbedLoader.php | NULL |
| 23448224 | 1 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448224__22.xml | Widescreen player | 460 | 290 | NULL | /flash/kdp3/v3.9.9/kdp3.swf | 2017-03-14 19:44:26 | 2017-03-14 19:44:26 | NULL | 1 | kdp3,player | a:2:{s:17:“conf_file_version”;d:22;s:26:“conf_file_features_version”;d:22;} | 2 | NULL | 0 | 2 | NULL | /html5/html5lib/v2.14/mwEmbedLoader.php | NULL |
| 23448225 | 1 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448225__22.xml | Multiple vertical playlist | 525 | 665 | NULL | /flash/kdp3/v3.9.9/kdp3.swf | 2017-03-14 19:44:26 | 2017-03-14 19:44:26 | NULL | 1 | kdp3,playlist | a:2:{s:17:“conf_file_version”;d:22;s:26:“conf_file_features_version”;d:22;} | 2 | NULL | 0 | 2 | NULL | /html5/html5lib/v2.14/mwEmbedLoader.php | NULL |
| 23448226 | 1 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448226__22.xml | Player with no share button | 560 | 395 | NULL | /flash/kdp3/v3.9.9/kdp3.swf | 2017-03-14 19:44:26 | 2017-03-14 19:44:26 | NULL | 1 | kdp3,player | a:2:{s:17:“conf_file_version”;d:22;s:26:“conf_file_features_version”;d:22;} | 2 | NULL | 0 | 2 | NULL | /html5/html5lib/v2.14/mwEmbedLoader.php | NULL |
| 23448227 | 8 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448227__22.xml | Player with custom watermark - with live support | 400 | 330 | NULL | /flash/kdp3/v3.9.9/kdp3.swf | 2017-03-14 19:44:26 | 2017-03-14 19:44:26 | NULL | 1 | NULL | a:1:{s:17:“conf_fi
le_version”;d:22;} | 2 | NULL | 0 |
2 | NULL | /html5/html5lib/v2.14/mwEmbedLoader.php | NULL |
| 23448228 | 8 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448228__22.xml | Player w
ith no share button - live stream support | 400 | 360 | NULL | /flash/kdp3/v3.9.9/kd
p3.swf | 2017-03-14 19:44:26 | 2017-03-14 19:44:26 | NULL | 1 | NULL | a:1:{s:17:“conf_fi
le_version”;d:22;} | 2 | NULL | 0 |
2 | NULL | /html5/html5lib/v2.14/mwEmbedLoader.php | NULL |
| 23448229 | 8 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448229__22.xml | Widescre
en playlist player - dark skin, minimal - with live support | 740 | 255 | NULL | /flash/kdp3/v3.9.9/kd
p3.swf | 2017-03-14 19:44:26 | 2017-03-14 19:44:26 | NULL | 1 | NULL | a:1:{s:17:“conf_fi
le_version”;d:22;} | 2 | NULL | 0 |
2 | NULL | /html5/html5lib/v2.14/mwEmbedLoader.php | NULL |
| 23448230 | 8 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448230__22.xml | Widescre
en player - light skin - with live support | 400 | 285 | NULL | /flash/kdp3/v3.9.9/kd
p3.swf | 2017-03-14 19:44:26 | 2017-03-14 19:44:26 | NULL | 1 | NULL | a:1:{s:17:“conf_fi
le_version”;d:22;} | 2 | NULL | 0 |
2 | NULL | /html5/html5lib/v2.14/mwEmbedLoader.php | NULL |
| 23448231 | 8 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448231__22.xml | Widescre
en playlist player - dark skin, minimal | 740 | 255 | NULL | /flash/kdp3/v3.9.9/kd
p3.swf | 2017-03-14 19:44:26 | 2017-03-14 19:44:26 | NULL | 1 | kdp3,playlist | a:2:{s:17:“conf_fi
le_version”;d:22;s:26:“conf_file_features_version”;d:22;} | 2 | NULL | 0 |
2 | NULL | /html5/html5lib/v2.14/mwEmbedLoader.php | NULL |
| 23448232 | 1 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448232__52.xml | NTV
| 560 | 315 | NULL | /flash/kdp3/v3.9.9/kd
p3.swf | 2017-03-14 20:40:00 | 2017-03-16 18:57:43 | NULL | 1 | html5studio,player | a:1:{s:17:“conf_fi
le_version”;d:12;} | 2 | | 1 |
2 | 52 | /html5/html5lib/{latest}/mwEmbedLoader.php | NULL |
| 23448331 | 1 | 101 | 0 | /content/generatedUiConf/23/448/ui_conf_23448331__32.xml | Copy of
Widescreen player | 460 | 290 | NULL | /flash/kdp3/v3.9.9/kd
p3.swf | 2017-03-16 14:49:09 | 2017-03-16 14:50:15 | NULL | 1 | kdp3,player | a:2:{s:17:“conf_fi
le_version”;d:32;s:26:“conf_file_features_version”;d:32;} | 2 | NULL | 1 |
2 | NULL | /html5/html5lib/v2.54/mwEmbedLoader.php | NULL |
±---------±---------±-----------±--------±---------------------------------------------------------±--------
------------------------------------------------------------±------±-------±------------±---------------------
-------±--------------------±--------------------±----------±--------±-------------------±------------------
----------------------------------------------------------±-------±------------±------------------±-----------
—±--------±-------------------------------------------±-------------+
12 rows in set (0.00 sec)

<?php if ( ! defined( 'ABSPATH' ) ) {// to be on the safe side die; } return array( 'server_url' => ( is_ssl() ) ? 'https://gnvs-4.duckdns.org/' : 'http://gnvs-4.duckdns.org/', 'cdn_url' => ( is_ssl() ) ? 'https://gnvs-4.duckdns.org/' : 'http://gnvs-4.duckdns.org/', 'anonymous_user_id' => 'Anonymous', 'kcw_ui_conf_id_admin' => 15333782, 'categoriesRootId' => 0, 'thumbnail_player_ui_conf_id' => 14969192, 'kaltura_default_player_type' => 23448223, // default player if player was not chosen in plugin admin screen 'kaltura_show_media_from' => 'all_account', // when browsing media - should the media be from the whole account or just the logged in user's? 'kaltura_enable_kcw' => false, // enables the legacy flash uploader instead of html5 uploader 'kaltura_user_identifier' => 'user_login', );

Cloud you try to change Player id from
’kaltura_default_player_type’ => 23448223, // default player if player was not chosen in plugin admin screen

to
’kaltura_default_player_type’ => 23448331, // default player if player was not chosen in plugin admin screen
or
’kaltura_default_player_type’ => 23448232, // default player if player was not chosen in plugin admin screen

Thanks, I changed the Player Id, from config file on plugin but nothing… The AIO plugin doesn’t let me select the custom players, only the default ones… even if I changed the config file…
I changed this to make it work… from true to false and disabled to enabled…

var _disableSubmit = function () {
jQuery(options.submit).attr(‘disabled’, false);
};

	var _enableSubmit = function () {
		jQuery(options.submit).removeAttr('enabled');
	};

But I canr use my custom players on plugin, I have to change the embed code on WP for the custom player UI number…
Many thanks…

on my side, i able to see new custom player expect playlist player i still try to find why… through my trouble shoot i change below line
this.intialize = function () {
_disableSubmit();

to be
this.intialize = function () {
// _disableSubmit();
and it works (this is if the insert on post still not work )
also try to create new player and modify apply one by one youe changes

Sorry, didnt mention it was on file kaltura-player-selector.js

what are the basic Tips to insert button into the post?