Title: error in theme
Last modified: August 19, 2016

---

# error in theme

 *  [dublintours](https://wordpress.org/support/users/dublintours/)
 * (@dublintours)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/error-in-theme/)
 * I’m a complete newb and in my newbness i said i will copy my wordpress installation
   to another section on my website so as to fiddle with it. I moved it and moved
   it back and now im getting this error
 * Parse error: syntax error, unexpected $end in /usr/local/pem/vhosts/187777/webspace/
   httpdocs/wp/wp-includes/functions.php on line 3336
 * any idea as to what i should do?
 * i apologise if this is in the wrong section

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

 *  [Matt Cohen](https://wordpress.org/support/users/mattyza/)
 * (@mattyza)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/error-in-theme/#post-1508088)
 * Hi dublintours,
    This error usually surfaces when a file has not finished uploading
   via FTP or is in some way incomplete.
 * A possible solution could be to re-upload the functions.php file from a fresh
   copy of the wp-includes folder (ie: download WordPress, unzip and upload wp-includes/
   functions.php from there) and reload the page.
 * Please advise if this resolves the issue you are experiencing.
 * All the best,
    Matty.
 *  Thread Starter [dublintours](https://wordpress.org/support/users/dublintours/)
 * (@dublintours)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/error-in-theme/#post-1508350)
 * It has changed it but not resolved the issue,were there was an error message 
   now the site appears but only the green background nothing else.
 * [http://www.dublinwalkingtour.com/wp/](http://www.dublinwalkingtour.com/wp/) 
   is the site,it was fully done up with text,images,layout etc
 * Thank you for your reply 🙂
 *  [Matt Cohen](https://wordpress.org/support/users/mattyza/)
 * (@mattyza)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/error-in-theme/#post-1508419)
 * Hi dublintours,
 * On viewing the link provided, I noticed a PHP error that reads as follows:
 * `Fatal error: Call to undefined function: wp_specialchars_decode() in /usr/local/
   pem/vhosts/187777/webspace/httpdocs/wp/wp-includes/formatting.php on line 268`
 * In this case, I would recommend re-uploading the wp-includes folder from a fresh
   version of WordPress (that has the same version number of the one used on your
   installation) and see if this remedies the issue.
 * The function in question is defined in wp-includes/formatting.php around line
   355. If you’d prefer not to re-upload the entire folder (recommended as there
   may be other files missing), I’d recommend re-uploading a fresh copy of formatting.
   php into wp-includes.
 * All the best,
    Matty.
 *  Thread Starter [dublintours](https://wordpress.org/support/users/dublintours/)
 * (@dublintours)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/error-in-theme/#post-1508438)
 * Hello Matty,
 * Thank you for your reply i appreciate you trying to help me (truly i do!) i followed
   your instructions and now i’m getting this problem.
 * Warning: main(/usr/local/pem/vhosts/187777/webspace/httpdocs/wp/wp-includes/functions.
   php): failed to open stream: No such file or directory in /usr/local/pem/vhosts/
   187777/webspace/httpdocs/wp/wp-settings.php on line 283
 * Do you think it’s fixable or have i screwed it up so bad that starting over is
   the only option?
 *  [Dnal](https://wordpress.org/support/users/dnal/)
 * (@dnal)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/error-in-theme/#post-1508439)
 * What version of WordPress are you using?
 * What did you change when you were fiddling with it?

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

The topic ‘error in theme’ is closed to new replies.

 * 5 replies
 * 3 participants
 * Last reply from: [Dnal](https://wordpress.org/support/users/dnal/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/error-in-theme/#post-1508439)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
