Title: Parse error: syntax error, unexpected $end in functions.php
Last modified: September 1, 2016

---

# Parse error: syntax error, unexpected $end in functions.php

 *  Resolved [thompsonswebservice](https://wordpress.org/support/users/thompsonswebservice/)
 * (@thompsonswebservice)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-in-functionsphp/)
 * I am in need of desperate help… My site is down and I desperately need it up.
   I updated wordpress to 4.6 and yes before I did back it up, but now for some 
   reason I can not even get the back up to restore…so this is my last resort. Can
   someone please tell me what is wrong with my functions.php file.
    [http://www.kingslawncareandlandscapingllc.com](http://www.kingslawncareandlandscapingllc.com)
 * _[moderator note – sorry, but that’s just way too much code. i went ahead and
   set up a [Pastebin](http://pastebin.com/HihLraw7) for you, please do so in the
   future]_

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

 *  [The API Guys](https://wordpress.org/support/users/pbarthmaier/)
 * (@pbarthmaier)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-in-functionsphp/#post-7680927)
 * I’m pretty sure this violates some terms of use by posting that much code. In
   a case like this, you should use some container site, like [http://pastebin.com/](http://pastebin.com/).
 * But to your issue, the specific error:
    `Parse error: syntax error, unexpected
   $end in /home/content/33/10971933/html/KINGSLAWNCAREANDLANDSCAPINGLLC/wp-includes/
   functions.php on line 5435` tells us that your functions.php is waaaaayyyyyy 
   toooooo looooonnnngggggg.
 * It also seems to indicate that you are missing some sort of closing tag. Try 
   adding a single close curly brace ( } ), ie the thing between the parentheses,
   and see if that does anything.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-in-functionsphp/#post-7680955)
 * that error refers to a **functions.php** in the **/wp-includes/** folder, i.e.
   a core functions.php file;
 * using FTP [http://codex.wordpress.org/FTP_Clients](http://codex.wordpress.org/FTP_Clients),
   try to upload an unedited version of this file into **/wp-includes/functions.
   php**
 * [https://github.com/WordPress/WordPress/blob/master/wp-includes/functions.php](https://github.com/WordPress/WordPress/blob/master/wp-includes/functions.php)
 * or possibly try to manually re-install/update WordPress;
    [https://codex.wordpress.org/Installing_WordPress](https://codex.wordpress.org/Installing_WordPress)
 *  Thread Starter [thompsonswebservice](https://wordpress.org/support/users/thompsonswebservice/)
 * (@thompsonswebservice)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-in-functionsphp/#post-7681110)
 * Thank You I finally solved it, I do apologize, I did not know about pastebin.
   com, thank you for everyone’s assistance. This can be closed.

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [thompsonswebservice](https://wordpress.org/support/users/thompsonswebservice/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-in-functionsphp/#post-7681110)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
