Foliovision › Forums › FV Player › Bug Reports › Can’t edit playlist
-
-
Hello Paul,
please check our playlist editing guide: https://foliovision.com/player/basic-setup/creating-playlists
At which exact step does the issue occur?
Please enable your web browser JavaScript console (here’s how to do it: https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors#Step_3:_Diagnosis), then try to reproduce the error and see what appears on that console.
Please also provide output of Settings -> FV Player -> Tools -> System Info.
Thanks,
MartinHello Paul,
so it appears that the Ajax loading of the playlist data fails.
Could you please try to clone that player on wp-admin -> FV Player screen and see if you can edit that one?
Please also provide the export of that player by using the export function found in each table row in wp-admin -> FV Player.
Last thing – do you see any new entry in your PHP error log when you open that player in editor?
Thanks,
MartinHello Martin,
the cloned playlist can’t be edited either.
What export do you mean: from dashboard or database via myphpadmin?
I have enabled php-loging in wp-config.php:
define( ‘WP_DEBUG’, true);
No /wp-content/debug.log was written; php-errors are displayed on the web-site instead. But no new entries when open player in editor.regards
PaulHello Martin,
Table `wp_fv_player_videometa` is empty. Here the other 3 tables:
================================================
— Host: localhost
— Server Version: 5.7.20
— PHP-Version: 5.4.45INSERT INTO `wp_fv_player_playermeta` (`id`, `id_player`, `meta_key`, `meta_value`) VALUES (9, 9, 'post_id', '3008'); INSERT INTO `wp_fv_player_players` (`id`, `player_name`, `player_slug`, `videos`, `ab`, `ad`, `ad_height`, `ad_width`, `ad_skip`, `align`, `author`, `autoplay`, `controlbar`, `copy_text`, `changed_by`, `date_created`, `date_modified`, `embed`, `end_actions`, `end_action_value`, `height`, `hflip`, `lightbox`, `lightbox_caption`, `lightbox_height`, `lightbox_width`, `playlist`, `playlist_advance`, `qsel`, `share`, `share_title`, `share_url`, `speed`, `sticky`, `video_ads`, `video_ads_post`, `width`) VALUES (9, 'testplaylist', '', '9', '', '', '', '', '', '', 1, '', '', '', 1, '2018-11-27 18:22:14', '2018-11-27 18:22:14', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''); INSERT INTO `wp_fv_player_videos` (`id`, `src`, `src1`, `src2`, `splash`, `splash_text`, `caption`, `end`, `mobile`, `rtmp`, `rtmp_path`, `start`) VALUES (9, 'https://cdn.foliovision.com/wp-content/videos/Formation2010.mp4', '', '', '', '', '', '', '', '', '', '');
Hello Paul,
I improved the code appearance to handle SQL statements better and added a note for you to use the pre tag below the forum reply form.
What you provided works fine for me. I’m able to edit it just fine. But it’s not a playlist, just a single video. Are you sure you are having issues with that one?
I see you are using PHP 5.2.17 so I wonder if the issue could be caused by that. Are you able to switch to PHP 5.4, 5.5 or 5.6 easily? You can do that relatively easy – at least in comparison to switching to PHP 7.
Another thing is that there should be no hourglass icon and no black window opening. It should be white with a spinning icon – same as when you hit “Add new” on wp-admin -> FV Player screen. So some plugin might be causing a conflict here.
Thanks,
MartinHello Paul,
PHP 5.2 even has some security issues, it should really be updated. We did test our plugins with it to avoid syntax issues as some of the statements are not supported in that old PHP version, but we don’t check all the plugin functions in it.
What’s left is trying
define( 'WP_DEBUG_LOG', true );
and then checking wp-content/debug.log. As WordPress.org suggests:
Note that this allows you to write to /wp-content/debug.log using PHP’s built in error_log() function, which can be useful for instance when debugging AJAX events.
And that’s just what we need.
Thanks,
MartinHello Martin,
the debug.log is from the moment I opend wp-admin -> FV Player until attempt to edit the playlist:
.... 28-Nov-2018 13:00:39] PHP Warning: json_encode() expects exactly 1 parameter, 2 given in .../wp-content/plugins/fv-wordpress-flowplayer/models/db.php on line 1064 .... [28-Nov-2018 13:01:00] PHP Warning: json_encode() expects exactly 1 parameter, 2 given in .../wp-content/plugins/fv-wordpress-flowplayer/models/db.php on line 1064 ...
Hello Paul,
I shortened that debug log to the entries which are related to FV Player. These look fine tough and should not affect anything. They are specific to PHP 5.2 too. But on the other hand these are in the right spot, so perhaps it’s affecting things.
What new log entries appear once you open a playlist for editing?
Also, does the Export function on wp-admin -> FV Player screen work?
I think we are close now.
Thanks,
MartinHello Paul,
we created a fix for this, but before we release it could you please try it out on your website? Just reinstall FV Player from this ZIP file: https://github.com/foliovision/fv-wordpress-flowplayer/archive/master.zip To do that you will have to disable and delete your current FV Player plugin. WordPress might say something that your data might get lost and so on, but no worries, it’s not the case with FV Player. All settings and videos remain intact.
Let us know if it helps with the export function too.
Thanks!
MartinHello Paul,
thanks, if you reinstall from https://github.com/foliovision/fv-wordpress-flowplayer/archive/master.zip then that will be fixed as well.
Thanks,
Martin