Title: Cannot Declare errors in wp-config
Last modified: August 19, 2016

---

# Cannot Declare errors in wp-config

 *  Resolved [indyadmin1974](https://wordpress.org/support/users/indyadmin1974/)
 * (@indyadmin1974)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-declare-errors-in-wp-config/)
 * So I seem to be a victim of a rather annoying hacker.
 * I have a site hosted by GoDaddy.com and was initially using Joomla. I kept getting
   strange errors no matter what I did to harden my site. So I have my wife’s blog
   on the same hosting provider and she is using WordPress with no issues.
 * I decided to just go to WordPress since I’m familiar with it and really enjoy
   working with it.
 * Things were looking good yesterday, but literally 5 minutes ago, I got the following
   error when going to the main page on the site. I cannot get into wp-admin either.
 * > Fatal error: Cannot redeclare sohi() (previously declared in /home/content/
   > i/n/d/indyadmin1974/html/wp-config.php(1) : eval()’d code:1) in /home/content/
   > i/n/d/indyadmin1974/html/wp-includes/functions.php(1) : eval()’d code on line
   > 1
 * I was in the process of researching how to harden WordPress and this happened.
   Oh the irony.

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-declare-errors-in-wp-config/#post-1266805)
 * [http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/](http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/)
 * [http://ottodestruct.com/blog/2009/hacked-wordpress-backdoors/](http://ottodestruct.com/blog/2009/hacked-wordpress-backdoors/)
 *  Thread Starter [indyadmin1974](https://wordpress.org/support/users/indyadmin1974/)
 * (@indyadmin1974)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-declare-errors-in-wp-config/#post-1266812)
 * Thanks samboll. I’m in the process of starting from scratch (thank goodness I
   don’t have anything important).
 * I’ve read several different docs and seem to have done everything that is suggested
   and it keeps happening.
 * Are there any good sites/docs that have this info collected? I’m contacting my
   hosting provider too and see what they can do for me.
 *  Thread Starter [indyadmin1974](https://wordpress.org/support/users/indyadmin1974/)
 * (@indyadmin1974)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-declare-errors-in-wp-config/#post-1266873)
 * This post talks about the issue. It’s not a specific WordPress issue:
    [Gumblar Hack](http://wordpress.org/support/topic/320967?replies=9)

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

The topic ‘Cannot Declare errors in wp-config’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [indyadmin1974](https://wordpress.org/support/users/indyadmin1974/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-declare-errors-in-wp-config/#post-1266873)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
