Title: SyntaxError: expected expression, got &#039;}&#039;
Last modified: August 30, 2016

---

# SyntaxError: expected expression, got '}'

 *  Resolved [kingfisher64](https://wordpress.org/support/users/kingfisher64/)
 * (@kingfisher64)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got/)
 * I’m not getting the slide to show. Firebug shows the following error:
 * `SyntaxError: expected expression, got '}'`
 * The error can be seen on a test site: [http://wordpress-test.drupalego.com/vegas-frontpage/](http://wordpress-test.drupalego.com/vegas-frontpage/)
 * If I can provide any useful information please ask. If not a dev but can test
   the plugin.
 * Thanks
 * [https://wordpress.org/plugins/vegas-fullscreen-background-slider/](https://wordpress.org/plugins/vegas-fullscreen-background-slider/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [kingfisher64](https://wordpress.org/support/users/kingfisher64/)
 * (@kingfisher64)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got/#post-6209805)
 * Should mention that no slides show up, it’s just blank with the arrows showing
   when that option is selected.
 *  Thread Starter [kingfisher64](https://wordpress.org/support/users/kingfisher64/)
 * (@kingfisher64)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got/#post-6210024)
 * Background mananger plugin shows the background on all pages, so i’ll use that
   instead but Vegas appears to just not work.
 *  Plugin Author [jamesdbruner](https://wordpress.org/support/users/jamesdbruner/)
 * (@jamesdbruner)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got/#post-6210036)
 * Sorry for the delay man! These forums slipped my mind for a bit.
 *     ```
       <script>
           jQuery( function() {
           jQuery.vegas('slideshow', {
           delay:4000,
           backgrounds:[{ src:'http://wordpress-test.drupalego.com/wp-content/uploads/2015/06/1920x1080sample3.jpg', fade:delay=},{ src:'http://wordpress-test.drupalego.com/wp-content/uploads/2015/06/1920x1080sample1.jpg', fade:delay=},{ src:'http://wordpress-test.drupalego.com/wp-content/uploads/2015/06/1920x1080sample2.jpg', fade:delay=},]
       }) });
       </script>
       ```
   
 * From the above, it’s showing us there that the fade parameter isn’t being set.
   I’d like to see the shortcode you’re trying to use in your page if you’re still
   looking for a fix.
 *  Thread Starter [kingfisher64](https://wordpress.org/support/users/kingfisher64/)
 * (@kingfisher64)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got/#post-6210037)
 * You are absolutely right thanks. I wrongly assumed that leaving it empty would
   generate a nil value.
 * Thank you for taking the time to reply jamesdbruner 🙂 it is appreciated.
 *  Plugin Author [jamesdbruner](https://wordpress.org/support/users/jamesdbruner/)
 * (@jamesdbruner)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got/#post-6210039)
 * Well I mean… that would be the SMART thing to do…
 * … I’ll see about adding that later 😛
 * Now that I’m thinking about it, I swear I set a default value for the shortcode
   parameter. I’ll take a look at it later. You’re welcome and I’m sorry I didn’t
   get to this sooner, I forget these support forums exist sometimes and it doesn’t
   send me an email when a new topic is created unfortunately. :/

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘SyntaxError: expected expression, got '}'’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/vegas-fullscreen-background-slider_4d4d4d.
   svg)
 * [WP Vegas](https://wordpress.org/plugins/vegas-fullscreen-background-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/reviews/)

## Tags

 * [syntaxerror](https://wordpress.org/support/topic-tag/syntaxerror/)
 * [wp vegas](https://wordpress.org/support/topic-tag/wp-vegas/)

 * 5 replies
 * 2 participants
 * Last reply from: [jamesdbruner](https://wordpress.org/support/users/jamesdbruner/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got/#post-6210039)
 * Status: resolved