Title: Parsing error: Syntax Error
Last modified: September 9, 2018

---

# Parsing error: Syntax Error

 *  [arithmatic](https://wordpress.org/support/users/arithmatic/)
 * (@arithmatic)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/parsing-error-syntax-error/)
 * when i updated enqueue.php file and after adding styles and js file when i run
   it it shows me: Parse error: syntax error, unexpected ‘;’, expecting ‘,’ or ‘)’
   in C:\xampp\htdocs\wordpress\wp-content\themes\portfolio\inc\enqueue.php on line
   6
 * and my code is :
 *     ```
       <?php 
   
       require_once(get_template_directory().'/inc/enqueue.php');  //this is no 4 line
   
       ?>
       ```
   
    -  This topic was modified 7 years, 8 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparsing-error-syntax-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/parsing-error-syntax-error/#post-10671739)
 * What you posted does not have enough context. Standing alone it’s fine. Within
   its context, clearly there’s a problem. Please post everything from the start
   through to line 7.
 * It looks like you are trying to require the file in which your code resides, 
   which is invalid circular logic. Perhaps one file is of a child theme and you
   are requiring the parent file? In a general sense, that would be OK, but it shouldn’t
   be necessary if the parent theme is already requiring that file as a descendant
   of its functions.php code.

Viewing 1 replies (of 1 total)

The topic ‘Parsing error: Syntax Error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/parsing-error-syntax-error/#post-10671739)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
