• Resolved Palpatine1976

    (@palpatine1976)


    Latest version of FV Player throws the PHP warning below whenever you are on the Admin Edit screen (post, page, custom post type)

    “<b>Warning</b>: Invalid argument supplied for foreach() in <b>/………./wp-content/plugins/fv-wordpress-flowplayer/controller/frontend.php</b> on line <b>406</b>”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello Twig,

    seems like you are using an old PHP version and you have warnings enabled. Please reinstall FV Player and the issue should be fixed, I put in the fix into the current release.

    For more help, troubleshooting and tutorials please visit https://foliovision.com/support or https://foliovision.com/player

    Thanks!

    Thread Starter Palpatine1976

    (@palpatine1976)

    Hi @foliovision

    I’m running PHP 5.6 with default error reporting.

    Thanks for the update – but now the latest version is throwing this error (and looks like you are var_dump()’ing out to the front end)

    
    string(7) "globals"
    array(1) {
      ["fv_player_admin_load"]=>
      bool(true)
    }
    <br />
    <b>Warning</b>:  Cannot use a scalar value as an array in <b>../html/wp-includes/class.wp-scripts.php</b> on line <b>447</b><br />

    Hello Twig,

    thank you for your note! I was moving too fast here. The var_dump() shouldn’t normally show up in frontend as that whole variable is legacy but we used it when improving how the shortcode editor preview works. We will have to put in a better solution long term.

    FV Player 6.3.6 it out and it fixes the issue you reported.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Latest version throwing PHP warning’ is closed to new replies.