Title: function.php error. can&#039;t access my wordpress account
Last modified: August 19, 2016

---

# function.php error. can't access my wordpress account

 *  [bidishamukherjii](https://wordpress.org/support/users/bidishamukherjii/)
 * (@bidishamukherjii)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/functionphp-error-cant-access-my-wordpress-account/)
 * I tried to change php.functions. But after i changed it it didn’t work. then 
   i copy and pasted the previous code. after saving it the site totally disppeared.
   when i asked support team, i am told that there is some error log
 * Error log:
 * [29-Jul-2010 03:49:49] PHP Parse error: syntax error, unexpected ‘}’ in /home/
   news365/public_html/wp-content/themes/TodaysNews/functions.php on line 422
    [
   29-Jul-2010 03:49:49] PHP Parse error: syntax error, unexpected ‘}’ in /home/
   news365/public_html/wp-content/themes/TodaysNews/functions.php on line 422
 * I cannot access my WP login page. They are telling me tp reinstall WP.
 * Here are few problems
    1) I cannot install wordpress. I need step by step instructions
   2) after installing new wordpress when i will try to restore the old theme and
   posts, is it possible to occur the same problem again? if so, then how to solve
   the functions.php error?
 * I have saved the previous functions.php code in a notepad..is it somehow going
   to help?
 * can anybody help me out????

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/functionphp-error-cant-access-my-wordpress-account/#post-1604342)
 * You need to correct the problem in your functions.php file if you want to use
   that theme. Download a fresh copy of the theme to your computer, extract the 
   functions.php and upload it to the theme’s folder in wp-content/themes using 
   [FTP](http://codex.wordpress.org/FTP_Clients) or whatever file management application
   your host provides.
 *  [drdusan](https://wordpress.org/support/users/drdusan/)
 * (@drdusan)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/functionphp-error-cant-access-my-wordpress-account/#post-1604539)
 * I have the same problem:
 * Appearance > Editor > functions.php
 * I tried to put the script:
    add_theme_support(‘post-thumbnails’);
 * whereever I put this code and press update file
    the code disapeared !
 * I tried another method:
    I downloaded function.php inserted the code and uploaded
   it again
 * and than I couldn’t log in to admin
    I’ve got the error message same as Bidi.
   Than I have to put back the original function.php
 * PLEASE HELP:
    How can I put the upmentioned code in the function.php ?
 * Just to mention:
    all this was done under windows host, if it’s metters something.
 * Thanks
 *  [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * (@adeptris)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/functionphp-error-cant-access-my-wordpress-account/#post-1604540)
 * > I tried to put the script:
   >  add_theme_support(‘post-thumbnails’);
 * There should be no problem with the code:
    `add_theme_support('post-thumbnails');`
 * This needs to go in functions.php after line 1 which should be `<?php`
 * You should place it outside of any other functions, and this will not error, 
   in WordPress 2.9 or later.
 * It looks like you might have altered something else, or placed the code in the
   wrong place, I often add all my new calls right at the end of the functions.php
   file in thier own section.
 * If you want someone to advise you more, then paste you functions.php to [http://www.wordpress.pastebin.com](http://www.wordpress.pastebin.com)
   and someone would be able to update the code or tell you where to enter the lines.
 * This is for adding [Post Thumbnails](http://digitalraindrops.net/2010/02/adding-post-images/)
   to older Artisteer themes and may help
 * To both posters I would politly suggest looking at [creating a local environment](http://digitalraindrops.net/2010/08/getting-started/)
   and maybe using a child theme for for testing, then you are not affecting the
   website and errors can be easy fixed.
 * HTH
 * David

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

The topic ‘function.php error. can't access my wordpress account’ is closed to new
replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [wordpress reinstall](https://wordpress.org/support/topic-tag/wordpress-reinstall/)

 * 3 replies
 * 4 participants
 * Last reply from: [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/functionphp-error-cant-access-my-wordpress-account/#post-1604540)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
