• Resolved jodamo5

    (@jodamo5)


    Hi. I installed the plugin, and found an Uncaught SyntaxError: Unexpected identifier.

    I tracked it down to this line that it was inserting:

    fluidvids.init({selector: ['iframe', 'object',]players: ['www.youtube.com', 'player.vimeo.com',]});

    It is missing a comma after the selector closing ]

    I found I could fix it in this file:
    fluidvids/class-fluidvids.php

    I changed this:
    $html .= 'selector: [' . $this->esc_fluidvids( $selectors ) . ']';
    to this
    $html .= 'selector: [' . $this->esc_fluidvids( $selectors ) . '],';

    and the error was fixed.

    https://www.ads-software.com/plugins/fluidvids/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught SyntaxError: Unexpected identifier’ is closed to new replies.