Title: Parse error: syntax error, unexpected $end
Last modified: August 22, 2016

---

# Parse error: syntax error, unexpected $end

 *  Resolved [joshcawthorne](https://wordpress.org/support/users/joshcawthorne/)
 * (@joshcawthorne)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-21/)
 * Hi all,
 * I tried to install a fresh copy of WordPress on the server for [http://nsrlive.co.uk/](http://nsrlive.co.uk/)
   today. I cleared everything off public_html, downloaded WordPress 3.9.2 and extracted.
   Then I copied the files over onto the server using FileZilla. The first time 
   I did, I got the screen to setup wordpress. When I clicked setup, it went to 
   a white screen. I wiped it again and re-uploaded another fresh copy. Now I get
   the error:
 * “Parse error: syntax error, unexpected $end in /var/sites/n/nsrlive.co.uk/public_html/
   wp-includes/functions.php on line 4285”
 * I’ve re-uploaded functions.php and still get it. I can’t access the host or CP
   as I don’t know the details.
 * Please help!

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

 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-21/#post-5230736)
 * Make sure you have the very latest version of the entire WordPress package. It
   doesn’t seem like **functions.php** line 4285 is supposed to have an `$end` there:
   [https://github.com/WordPress/WordPress/blob/master/wp-includes/functions.php](https://github.com/WordPress/WordPress/blob/master/wp-includes/functions.php)
 *  Thread Starter [joshcawthorne](https://wordpress.org/support/users/joshcawthorne/)
 * (@joshcawthorne)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-21/#post-5230762)
 * Thanks for the help, Senff. My client wasn’t fully uploading everything. We’ve
   sorted it now!

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

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

## Tags

 * [fresh install](https://wordpress.org/support/topic-tag/fresh-install/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [joshcawthorne](https://wordpress.org/support/users/joshcawthorne/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-21/#post-5230762)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
