Support » Plugin: FV Flowplayer Video Player » JS Errors leading to unusable wordpress admin

  • Resolved Enuz

    (@enuz)


    Hello.

    The plugin create some JS errors in the wordpress admin that results in unusable features in several places like :
    • FV Player settings Page
    • Pages and Posts
    • Advanced Custom Fields is unusable (no JS error for that one)
    • probably in other pages

    If I deactivate FV Player, all work like a charm.
    All is fine on front office.
    All plugins + wordpress are up to date.

    Error on FV Player settings page :

    Uncaught Error: cannot call methods on sortable prior to initialization; attempted to call method 'disable'
        at Function.error (jquery.min.js?ver=3.6.0:2)
        at HTMLDivElement.<anonymous> (core.min.js?ver=1.12.1:116)
        at Function.each (jquery.min.js?ver=3.6.0:2)
        at s.fn.init.each (jquery.min.js?ver=3.6.0:2)
        at s.fn.init.x.fn.<computed> [as sortable] (core.min.js?ver=1.12.1:116)
        at options-general.php?page=fvplayer:1190

    Error on post and pages :

     Uncaught TypeError: Cannot read properties of undefined (reading 'frame')
        at post-edit-1730.js:5
        at HTMLDocument.<anonymous> (post-edit-1730.js:5)

    How Can I resolve this please ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author FolioVision

    (@foliovision)

    Hello Enuz,

    I’m not running into these issues on a clear WordPress install nor any of our existing websites.

    Please provide a list of the plugins which you are using, or provide output of Settings -> FV Player -> Tools -> System Info to let us see all of it in a single place.

    I’m mainly not sure where is that post-edit-1730.js script coming from. Please let us know what is the full URL of that file – you can find out about it on the browser console if you click it.

    Please use our support forum to let us keep track of the issues if you stumble upon anything else: https://foliovision.com/support

    Thanks,
    Martin

    Thread Starter Enuz

    (@enuz)

    Thx for your answer.

    I can’t reach Settings -> FV Player -> Tools -> System Info as JS is broken.

    Here are more investigations :
    The file post-edit-1730.js is from Yoast SEO plugin.

    • NO ERROR
    Theme TwentyTwenty
    No plugin activated

    • White screen (not even the wordpress admin menu) on edit Post, or Page, or Advanced Custom fields. No error in JS console
    Theme TwentyTwenty
    Active plugins :
    – FV Player

    • Error JS post-edit-1730.js
    file /wp-content/plugins/wordpress-seo/js/dist/post-edit-1730.js
    Theme TwentyTwenty
    Active plugins :
    – FV Player
    – Yoast SEO

    Would you like some other reports ?

    Plugin Author FolioVision

    (@foliovision)

    Hello Enuz,

    it’s a bit unclear if Advanced Custom Fields was also activated or not. I tried a fresh WordPress install with FV Player, Yoast SEO and Advanced Custom Fields and it all works.

    However –

    If your get white screen on your edit post page, then please check the PHP error log. Perhaps FV Player does run into some unforeseen issues and breaks the page rendering for you.

    If you are not sure about how to check the PHP error log, the server technical support should be able to give you a hand. Or you can install this plugin which makes a list of these errors available in wp-admin: https://wordpress.org/plugins/error-log-monitor/

    Then you will just have to try to open that edit post screen again and see what error is logged.`

    Thanks,
    Martin

    Thread Starter Enuz

    (@enuz)

    Thank you for your feedbacks.

    I know what was wrong now :
    There are 2 required php modules that are missing.

    I was pretty sure that FV Player works fine because I also have tested the plugin on my side, on a fresh wp.

    Plugin Author FolioVision

    (@foliovision)

    Hello Enuz,

    could you please post these error message so that we can improve FV Player to serve you better?

    Thanks,
    Martin

    Thread Starter Enuz

    (@enuz)

    No problem
    Here is what the plugin Site Health plugin has detected.

    
    • Warning The optional module, bcmath, is not installed, or has been disabled.
    • Warning The optional module, curl, is not installed, or has been disabled.
    • Warning The optional module, imagick, is not installed, or has been disabled.
    • Error The required module, gd, is not installed, or has been disabled.
    • Error The required module, mbstring, is not installed, or has been disabled.

    Here is what is the php log you’re interested in

    [08-Oct-2021 07:44:49 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_case() in /oxygen_content/wordpress/shesaboy.com/wp-content/plugins/fv-wordpress-flowplayer/models/flowplayer.php:2028
    Stack trace:
    #0 /oxygen_content/wordpress/shesaboy.com/wp-content/plugins/fv-wordpress-flowplayer/view/wizard.php(380): flowplayer::get_languages()
    #1 /oxygen_content/wordpress/shesaboy.com/wp-content/plugins/fv-wordpress-flowplayer/controller/editor.php(117): require_once('/oxygen_content...')
    #2 /oxygen_content/wordpress/shesaboy.com/wp-includes/class-wp-hook.php(303): fv_wp_flowplayer_edit_form_after_editor()
    #3 /oxygen_content/wordpress/shesaboy.com/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #4 /oxygen_content/wordpress/shesaboy.com/wp-includes/plugin.php(470): WP_Hook->do_action()
    #5 /oxygen_content/wordpress/shesaboy.com/wp-admin/edit-form-advanced.php(649): do_action()
    #6 /oxygen_content/wordpress/shesaboy.com/wp-admin/post.php(206): require('/oxygen_content...')
    #7 {main}
      thrown in /oxygen_content/wordpress/shesaboy.com/wp-content/plugins/fv-wordpress-flowplayer/models/flowplayer.php on line 2028
    Plugin Author FolioVision

    (@foliovision)

    Hello Enuz,

    strange, I thought we did prevent any use of mbstring functions without checking first long time ago.

    I prepared a fix for the issue for the new FV Player release. To get it right now please reinstall FV Player from this link: https://github.com/foliovision/fv-wordpress-flowplayer/archive/master.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.

    Thanks,
    Martin

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.