Title: parse error
Last modified: August 21, 2016

---

# parse error

 *  Resolved [gpowis](https://wordpress.org/support/users/gpowis/)
 * (@gpowis)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/parse-error-189/)
 * Hi
 * WordPress 3.5.2 Twenty Twelve
 * I seem to have hit a problem. I was trying to paste in some code into my functions.
   php file and my site has gone down. The paste was as follows:
 * add_filter(‘the_content’,’nuke_title_attribute’);
 * function nuke_title_attribute($output) {
    $output = preg_replace(‘/title=\”(.*?)\”/’,”,
   $output); return $output; }
 * (I was trying to get rid of pop up descriptions over images)
 * I copied back the original content of the file but no success – just the same
   error message which reads
 * Parse error: syntax error, unexpected ‘}’ in /www/sites/904/128/www.gpowis.com/
   web/wp-content/themes/twentytwelve/functions.php on line 452
 * Obviously I’m code useless but any ideas what I can do to get my site back?? 
   Any help appreciated thanks

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

 *  [Sunder Deep Dasna](https://wordpress.org/support/users/shashank-mukherjee/)
 * (@shashank-mukherjee)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/parse-error-189/#post-3891666)
 * Either add extra ‘}’ or remove one required ‘}’ from functions.php.
 * It will be better interpret if paste the code of functions.php in [Paste Bin](http://pastebin.com/)
 *  Thread Starter [gpowis](https://wordpress.org/support/users/gpowis/)
 * (@gpowis)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/parse-error-189/#post-3891691)
 * Shashank thanks for your help – I found there was still some wrong code in the
   functions.php which I cleared out and now it’s all back to normal.

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

The topic ‘parse error’ 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/)
 * 2 replies
 * 2 participants
 * Last reply from: [gpowis](https://wordpress.org/support/users/gpowis/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/parse-error-189/#post-3891691)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
