Title: Hacked and need some help (Array Problems)
Last modified: October 12, 2016

---

# Hacked and need some help (Array Problems)

 *  [kikboxr777](https://wordpress.org/support/users/kikboxr777/)
 * (@kikboxr777)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hacked-and-need-some-help-array-problems/)
 * Hello All,
 * Well it was inevitable. I had an issue of updating regularly and noticed I had
   a cookie issue on my login page ([http://mabas2.org/wp-login.php](http://mabas2.org/wp-login.php)).
   It stated :ERROR: Cookies are blocked due to unexpected output.
 * I then tried what I found as a possible solution. I changed themes (no fix), 
   clicked off plugins (no fix). I then went into the CPanel and noticed that I 
   had tons of named (individuals names) .php files that should not have been there.
   I went and put a fresh install in the system and kept my wp-config.php file and
   my contents folder. Unfortunately, this caused several errors with the website.
 * I still cannot get into the backend from the login page…Pesky cookies error message.
 * Also I am getting the following error messages on my main page and login page:
 * Notice: Undefined variable: h in /home3/neodoc77/public_html/mabas2.org/wp-config.
   php on line 675
 * Notice: Undefined variable: h in /home3/neodoc77/public_html/mabas2.org/wp-config.
   php on line 680
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/neodoc77/public_html/mabas2.org/wp-content/plugins/paid-memberships-
   pro/includes/currencies.php:1) in /home3/neodoc77/public_html/mabas2.org/wp-login.
   php on line 402
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/neodoc77/public_html/mabas2.org/wp-content/plugins/paid-memberships-
   pro/includes/currencies.php:1) in /home3/neodoc77/public_html/mabas2.org/wp-login.
   php on line 415
 * I checked both of lines of code (673 through 681)and they are:
 * if (file_exists(‘index.php’)) {
 *  file_put_contents(‘index.php’, str_replace(array($h,$i), ”, file_get_contents(‘
   index.php’)));
    }
 * if (file_exists(‘index.php’)) {
 *  file_put_contents(‘index.php’, str_replace(array($h,$i), ”, file_get_contents(‘
   index.php’)));
    }
 * and a couple additional on the login page
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/neodoc77/public_html/mabas2.org/wp-content/plugins/paid-memberships-
   pro/includes/currencies.php:1) in /home3/neodoc77/public_html/mabas2.org/wp-login.
   php on line 402
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/neodoc77/public_html/mabas2.org/wp-content/plugins/paid-memberships-
   pro/includes/currencies.php:1) in /home3/neodoc77/public_html/mabas2.org/wp-login.
   php on line 415
 * I am not sure if they modified the wp-config file which is quite possible with
   all the files and folders that were inputted on the server.
 * Any help would be appreciated.
 * Thanks
 * Mike

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

 *  [assoc](https://wordpress.org/support/users/assoc/)
 * (@assoc)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hacked-and-need-some-help-array-problems/#post-8285296)
 * Are you able to re install the whole wordpress engine, and begin with scratch?
 *  Thread Starter [kikboxr777](https://wordpress.org/support/users/kikboxr777/)
 * (@kikboxr777)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hacked-and-need-some-help-array-problems/#post-8285368)
 * Hello Assoc,
 * I reinstalled 4.6.1 but left my content folder along with the wpconfig.php file
   in place. Everything else was deleted. My issue is with the databases and all
   the files that I have on the site that are tied into menus and such.
 * Mike
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hacked-and-need-some-help-array-problems/#post-8285580)
 * [@assoc](https://wordpress.org/support/users/assoc/) – I’d recommend you take
   a look at this reference:
    [https://codex.wordpress.org/FAQ_My_site_was_hacked](https://codex.wordpress.org/FAQ_My_site_was_hacked)
 * And then this:
    [https://codex.wordpress.org/Hardening_WordPress](https://codex.wordpress.org/Hardening_WordPress)
    -  This reply was modified 9 years, 7 months ago by [bdbrown](https://wordpress.org/support/users/bdbrown/).
    -  This reply was modified 9 years, 7 months ago by [bdbrown](https://wordpress.org/support/users/bdbrown/).

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

The topic ‘Hacked and need some help (Array Problems)’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/hacked-and-need-some-help-array-problems/#post-8285580)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
