Title: syntax error, unexpected token
Last modified: May 12, 2021

---

# syntax error, unexpected token

 *  Resolved [anon2694](https://wordpress.org/support/users/anon2694/)
 * (@anon2694)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-unexpected-token-3/)
 * I’ve installed wordpress locally using xampp and I’ve converted a website for
   a client into a wordpress theme. After activating the theme, I get the following
   error:
 * Parse error: syntax error, unexpected token “function” in /Applications/XAMPP/
   xamppfiles/htdocs/wp-content/themes/AquhaHeat WP Final/functions.php on line 
   218
 * This error is referencing where I’ve enqueued js files in functions.php and seems
   to affect all the functions that I’ve written to enqueue various javascript files.
   There’s no errors for enqueuing css files.
 * Here’s the specific function starting on line 218 that error is refering too:
 *     ```
       // Amination JS START
   
       function load_jsam() {
           wp_register_script('load_jsam', get_template_directory_uri() . 'js/animations/js/animations.min.js', array(), false, true);
           wp_enqueue_script('load_jsam');
       }
   
       add_action('wp_enqueue_scripts', 'load_jsam')
   
       // Amination JS END
       ```
   
 * Any ideas? Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [anon2694](https://wordpress.org/support/users/anon2694/)
 * (@anon2694)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-unexpected-token-3/#post-14430832)
 * Solved. I was missing a colon.

Viewing 1 replies (of 1 total)

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

## Tags

 * [solved](https://wordpress.org/support/topic-tag/solved/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 1 participant
 * Last reply from: [anon2694](https://wordpress.org/support/users/anon2694/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-unexpected-token-3/#post-14430832)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
