Foliovision › Forums › FV Player › Bug Reports › PHP Warning: stripslashes() expects parameter 1 to be string, object
-
-
Hello Timothy,
I don’t see any reason why you could get such error.
Please check Settings -> FV Player Pro -> Tools -> System Info. When you scroll to the bottom of it, do you see something like this?
CREATE TABLE `wp_fv_player_playermeta` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_player` bigint(20) unsigned NOT NULL DEFAULT '0', `meta_key` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL, `meta_value` longtext COLLATE utf8mb4_unicode_520_ci NOT NULL, PRIMARY KEY (`id`), KEY `id_player` (`id_player`), KEY `meta_key` (`meta_key`(191)) ) ENGINE=InnoDB AUTO_INCREMENT=329 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci
In another words, there was to be that wp_fv_player_playermeta table.
Are you able to trace it to a specific player ID? Perhaps the log gives your the URL where did the error occur?
Also, what PHP version are you using?
Thanks,
MartinI have this is my settings. Almost identical but my server is using utf8mb4_unicode_ci vs. utf8mb4_unicode_520_ci in your sample above.
———————————
Settings:
———————————Multisite: No
FV Player version: 7.4.17.727
FV Player core version: 7.2.7
FV Player license: Valid (next check 2020-05-05 18:59:07 GMT)FV Player Pro version: 7.4.16.727
FV Player Pro license: Valid (next check 2020-05-05 18:59:06 GMT)WordPress Version: 5.3.2
Permalink Structure: /%postname%/
Active Theme: Myriad 1.0 (BackStop Themes – my theme company)Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
PHP Version: 5.6.40-0+deb8u11
MySQL Version: 5.5.62
Web Server Info: ApacheWordPress Memory Limit: 128M
PHP Memory Limit: 256M
PHP Upload Max Size: 50M
PHP Post Max Size: 50M
PHP Upload Max Filesize: 50M
PHP Time Limit: 60
PHP Max Input Vars: 1000
PHP Arg Separator: &
PHP Allow URL File Open: Yes
WP_DEBUG: DisabledDISPLAY ERRORS: On (1)
cURL: Your server supports cURL.———————————-
CREATE TABLE `wp_fv_player_playermeta` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_player` bigint(20) unsigned NOT NULL DEFAULT '0', `meta_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `meta_value` longtext COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `id_player` (`id_player`), KEY `meta_key` (`meta_key`(191)) ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
——————————————————–
We are experiencing the same problem. Failure occurs just with one of our videos. It happens when we have finished upload the video to FV Player and then save the project, Happens when saved directly in FV Player but also when adding the clip from the back-end.
Warning: stripslashes() expects parameter 1 to be string, object given in ../wp-content/plugins/fv-wordpress-flowplayer/models/db-player-meta.php on line 341
Warning: Cannot modify header information – headers already sent by (output started at ../wp-content/plugins/fv-wordpress-flowplayer/models/db-player-meta.php:341) in ../wp-admin/post.php on line 231
Warning: Cannot modify header information – headers already sent by (output started at ../wp-content/plugins/fv-wordpress-flowplayer/models/db-player-meta.php:341) in ../wp-includes/pluggable.php on line 1281
Warning: Cannot modify header information – headers already sent by (output started at ../wp-content/plugins/fv-wordpress-flowplayer/models/db-player-meta.php:341) in ../wp-includes/pluggable.php on line 1284
Hello Sven,
I removed these file paths from your message.
It would be great if you could help us with the testing. Could you please reinstall FV Player (not FV Player Pro) from this file: https://github.com/foliovision/fv-wordpress-flowplayer/archive/344-debug-db-player-meta.zip To do that you will have to first deactivate and delete the current FV Player plugin you are using. WordPress will warn you that you might loose settings and data, but it’s not the case with our plugin, no settings now videos will be lost. Or you can just replace the plugin files via FTP.
Then repeat the action which seems to trigger that error and there should be a detailed log of what happened in your WordPress folder named fv-player-db-player-meta-341.log.
Thanks,
Martin