Title: Uncaught SyntaxError: Unexpected identifier
Last modified: August 21, 2016

---

# Uncaught SyntaxError: Unexpected identifier

 *  Resolved [jodamo5](https://wordpress.org/support/users/jodamo5/)
 * (@jodamo5)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-1/)
 * 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://wordpress.org/plugins/fluidvids/](https://wordpress.org/plugins/fluidvids/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * (@grapplerulrich)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-1/#post-5039707)
 * Thanks, I have fixed in version 1.4.0 which has been released.

Viewing 1 replies (of 1 total)

The topic ‘Uncaught SyntaxError: Unexpected identifier’ is closed to new replies.

 * ![](https://ps.w.org/fluidvids/assets/icon-256x256.png?rev=979809)
 * [Fluidvids for WordPress](https://wordpress.org/plugins/fluidvids/)
 * [Support Threads](https://wordpress.org/support/plugin/fluidvids/)
 * [Active Topics](https://wordpress.org/support/plugin/fluidvids/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fluidvids/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fluidvids/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-1/#post-5039707)
 * Status: resolved