Title: Parse error with functions.php
Last modified: August 22, 2016

---

# Parse error with functions.php

 *  Resolved [Mungomum](https://wordpress.org/support/users/mungomum/)
 * (@mungomum)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/)
 * Hi I hope someone can help as I’ve just killed my website.
 * I updated the functions.php code in my theme which was written for me by a website
   developer. It is based on twenty 11.
 * I updated the sidebar basically to change from </aside> to </div> and I got a
   parse error as follows
 * Parse error: syntax error, unexpected ”after_widget” (T_CONSTANT_ENCAPSED_STRING),
   expecting ‘)’ in /homepages/29/d496947996/htdocs/clickandbuilds/WordPress/ClubSite/
   wp-content/themes/PNSC/functions.php on line 32
 * As always I copied the original code into notepad before I made the change and
   so I just copied the original code straight back in but I still get the parse
   error when I press update!
 * I’ve seen this issue has happened before on this forum and the solution was to
   put the full twenty 11 functions php code back in – that didn’t work either.
 * I do not have FTP access to the site all I have is the wordpress menu so when
   I’ve seen this as a solution I don’t really understand what that means.
 * Please help I have spent ages developing this site so I would hate to have lost
   it all! Please reply in idiot speak I am new to developing.
 * Thanks

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/#post-5443320)
 * Are you saying you still have admin access?
 *  Thread Starter [Mungomum](https://wordpress.org/support/users/mungomum/)
 * (@mungomum)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/#post-5443322)
 * I did until about 5 mins ago just by using the back button but now that’s gone
   I have no admin access just the lovely parse error code. I guess my only option
   is to go to the hosting site and get the FTP access to overwrite the PHP code?
 * Is that fairly simple? I have only updated the site via the wordpress admin function
   until now, it was a site I inherited and was managed by someone else who previously
   owned the domain. It’s been transferred now to our club but I don’t have the 
   details on the host.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/#post-5443324)
 * Yes the only option is to use FTP. Let us know once you have that access.
 *  Thread Starter [Mungomum](https://wordpress.org/support/users/mungomum/)
 * (@mungomum)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/#post-5443325)
 * OK thanks Andrew I thought as much.
 *  Thread Starter [Mungomum](https://wordpress.org/support/users/mungomum/)
 * (@mungomum)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/#post-5443329)
 * Andrew – I am a donut I was copied on an email with the host details so I am 
   into the account info – we are hosted by 1&1 – can you talk me through what I
   need to do to change the functions.php? I haven’t used FTP before so idiots guide
   would be fab.
 * Thanks for your help.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/#post-5443330)
 * Can you put the entire code of your functions.php file on PasteBin and link us
   that? [http://pastebin.com/](http://pastebin.com/)
 *  Thread Starter [Mungomum](https://wordpress.org/support/users/mungomum/)
 * (@mungomum)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/#post-5443334)
 * Here’s the code
 * [http://pastebin.com/ByzviQrE](http://pastebin.com/ByzviQrE)
 * I downloaded filezilla and tried to start it from the menu but it doesn’t seem
   to work? It did nicely change my google to yahoo though (grr hate programs that
   take over your preferences!)
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/#post-5443384)
 * Replace all of the code with the code from this [http://pastebin.com/fGxTkcdm](http://pastebin.com/fGxTkcdm)
 *  Thread Starter [Mungomum](https://wordpress.org/support/users/mungomum/)
 * (@mungomum)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/#post-5443386)
 * Thank you for your help! It’s fixed now yay! :0)

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

The topic ‘Parse error with functions.php’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [Mungomum](https://wordpress.org/support/users/mungomum/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-with-functionsphp/#post-5443386)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
