Title: Parse error: syntax error, unexpected
Last modified: June 6, 2017

---

# Parse error: syntax error, unexpected

 *  Resolved [snewbs](https://wordpress.org/support/users/snewbs/)
 * (@snewbs)
 * [9 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-198/)
 * Hi there,
 * I am very new to using WP and whilst I have read many of the solutions to this
   issue already on your forums I am struggling to understand what to do. I logged
   into WP for the first time, chose a theme, installed it and pressed activate 
   and ever since the following message has appeared:
 * Parse error: syntax error, unexpected ‘[‘ in /home/content/32/10103432/html/Families
   in Essex/wp-content/themes/juliet/functions.php on line 127
 * My website is [http://www.familiesinessex.com](http://www.familiesinessex.com)
   and I am unable to access it at all. Apologies if this question has already been
   answered, if anyone is able to explain to me what to do in layman’s terms I would
   be eternally grateful.
 * Kind regards

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

 *  Thread Starter [snewbs](https://wordpress.org/support/users/snewbs/)
 * (@snewbs)
 * [9 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-198/#post-9201601)
 * This is line 127:
 *  wp_enqueue_script(‘slick’, get_template_directory_uri().’/assets/js/slick.min.
   js’, [‘jquery’], ”, true);
 * Thanks
 *  [Rogmo](https://wordpress.org/support/users/rogmo/)
 * (@rogmo)
 * [9 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-198/#post-9203316)
 * We just ran into this too.
 * We are using WordPress Version 4.7.5, and I think we got the error when we made
   Juliet the active theme.
 * I fixed it by logging in via FTP and going to the /wp-content/themes folder and
   deleting the juliet folder. Then we could log in again and choose a different
   theme.
 * Good luck!
 *  Thread Starter [snewbs](https://wordpress.org/support/users/snewbs/)
 * (@snewbs)
 * [9 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-198/#post-9206621)
 * Thank you for your help Rogmo, i have done that and now I am all up and running
   with a different theme.
 * Kind regards!
    -  This reply was modified 9 years ago by [snewbs](https://wordpress.org/support/users/snewbs/).
 *  Theme Author [lyrathemes](https://wordpress.org/support/users/lyrathemes/)
 * (@lyrathemes)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-198/#post-9503207)
 * [@snewbs](https://wordpress.org/support/users/snewbs/) and [@rogmo](https://wordpress.org/support/users/rogmo/)
   Sorry for the delayed response. Thanks for reaching out and for using Juliet.
   I am sorry we didn’t get back to you earlier, looks like we somehow got unsubscribed
   from this forum 🙁
 * This issue has been fixed in the latest version of the theme. It was happening
   because we were using a syntax that was only available in the latest PHP version
   so your hosting account was probably running an older version. We’ve fixed this
   now and made it backward compatible.
 * Sorry for the inconvenience this may have caused you.

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

The topic ‘Parse error: syntax error, unexpected’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/juliet/2.1.1/screenshot.jpg)
 * Juliet
 * [Support Threads](https://wordpress.org/support/theme/juliet/)
 * [Active Topics](https://wordpress.org/support/theme/juliet/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/juliet/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/juliet/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [lyrathemes](https://wordpress.org/support/users/lyrathemes/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-198/#post-9503207)
 * Status: resolved