Title: Parse error: syntax error, unexpected?
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected?

 *  [Callum](https://wordpress.org/support/users/aic_technologies/)
 * (@aic_technologies)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-21/)
 * Hi Everyone,
 * So last night i purchased a theme (from themeforest.net) and chucked the files
   in the WordPress theme files. The theme ‘installed’ fine but when i activate 
   it; i get this error on an otherwise empty page
 * “Parse error: syntax error, unexpected ‘{‘ in /home/tasmania/public_html/wp-content/
   themes/entrepeneur/functions/widget_areas.php on line 1”
 * The website and the WordPress admin no longer work until i remove the theme from
   the WordPress files.
 * Opening up the widget_areas.php gives me this LINE of coding
 * <?phpif ( function_exists(‘register_sidebar’) ) { register_sidebar(array( ‘name’
   => ‘Sidebar’, ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’, ‘after_widget’
   => ”, ‘before_title’ => ‘<h3 class=”widgettitle”>’, ‘after_title’ => ‘</h3>’,));}
   if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘name’ => ‘
   Homepage’, ‘before_widget’ => ”, ‘after_widget’ => ”, ‘before_title’ => ‘<h3 
   class=”icon_header”>’, ‘after_title’ => ‘</h3>’,));if ( function_exists(‘register_sidebar’))
   register_sidebar(array( ‘name’ => ‘Footer’, ‘before_widget’ => ‘<div class=”footer_widget”
   >’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h4>’, ‘after_title’ => ‘</
   h4>’,));if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘name’
   => ‘Contact Page’, ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’, ‘
   after_widget’ => ‘<div class=”widget-divider”></div>’, ‘before_title’ => ‘<h3
   class=”widgettitle”>’, ‘after_title’ => ‘</h3>’,));?>
 * Does anybody know what is causing this error? I have no idea about coding and
   I would really appreciate any help. I have googled it and nothing relevant comes
   up.
 * Thanks in advance for anyone that posts, muchly appreciated..
 * Callum.
 * Note:
 * The theme im trying to get live is called “entrepeneur”.

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-21/#post-1831747)
 * could be a missing space after the `php` here:
    `<?phpif ( function_exists('register..........`
 * however, as you’ve just bought the theme, did you check with the theme author/
   seller?

Viewing 1 replies (of 1 total)

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

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-21/#post-1831747)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
