Title: Syntax error in functions.php
Last modified: September 26, 2016

---

# Syntax error in functions.php

 *  Resolved [bygderad](https://wordpress.org/support/users/bygderad/)
 * (@bygderad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/)
 * Hey
    I have made a mess in my functions.php and have got a syntax error in line
   538 ??
 * Is there a quick fix to this, or du i really have to count line by line until
   538

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8221799)
 * download the file and load it into a text editor that has line numbering 🙂
 * The quick fix — download a new copy of your theme, extract functions.php, and
   upload it via FTP replacing the messed up one.
 *  Thread Starter [bygderad](https://wordpress.org/support/users/bygderad/)
 * (@bygderad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8221959)
 * Hi
    I have copyed the file into a notpad editor. It showes only 536 lines ???
 * Because of the syntax error i am not able to download anything in the word press
   using dashboard ..
    Next step ?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8221968)
 * Don’t use the WP dashboard; download via either the file manager in your host’s
   control panel or via FTP.
 * >> **The quick fix — download a new copy of your theme, extract functions.php,
   and upload it via FTP replacing the messed up one. **<<
 *  Thread Starter [bygderad](https://wordpress.org/support/users/bygderad/)
 * (@bygderad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222120)
 * What is the correct placing on my server.
 * I try to put it in the folder
    / wp-content / themes / twentytwelve
 * Still problems
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222144)
 * What is the EXACT error you see?
 * Please provide a link to your site! Thanks.
 *  Thread Starter [bygderad](https://wordpress.org/support/users/bygderad/)
 * (@bygderad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222164)
 * [http://bygderadiovest.no/](http://bygderadiovest.no/)
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222179)
 * I would suggest that you did not really replace the functions.php file.
 * Be sure you’re replacing wp-content/themes/twentytwelve/functions.php
 * Also, it’s a bad idea to edit a twenty* theme as they often get updated. An update
   will blow away your work. Instead, you should child theme it.
 *  Thread Starter [bygderad](https://wordpress.org/support/users/bygderad/)
 * (@bygderad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222189)
 * how do i do that ?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222230)
 * A child theme? [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
 * To fix your other problem, you could just totally reinstall twentytwelve. Activate
   another theme, delete twentytwelve, then reinstall.
 *  Thread Starter [bygderad](https://wordpress.org/support/users/bygderad/)
 * (@bygderad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222272)
 * can u log on my pc with TeamViewer to help me out ?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222304)
 * No.
 * I’m am 100% sure you mean well but please never offer or ask for credentials 
   on these forums or offer access to your site.
 * [http://codex.wordpress.org/Forum_Welcome#The_Bad_Stuff](http://codex.wordpress.org/Forum_Welcome#The_Bad_Stuff)
 * Now for the why: The internet is a wonderful place full of very nice people and
   a few very bad ones. I’m sure everyone here is very nice however, by giving some
   ones keys to your house you are trusting they wont steal anything. Likewise the
   person who takes the keys is now responsible for the house FOREVER.
 *  Thread Starter [bygderad](https://wordpress.org/support/users/bygderad/)
 * (@bygderad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222411)
 * Sorry for asking….
 * I am not qualified to fix the errors,
    So this means by by to my WordPress homepage…..
 * Life stinks
 *  Thread Starter [bygderad](https://wordpress.org/support/users/bygderad/)
 * (@bygderad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222555)
 * A miracle … I had and old backup..
    This file resolved the problem………….

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

The topic ‘Syntax error in functions.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 2 participants
 * Last reply from: [bygderad](https://wordpress.org/support/users/bygderad/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-functions-php/#post-8222555)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
