Title: Database Error &#8211; Trying to remove malware
Last modified: November 16, 2017

---

# Database Error – Trying to remove malware

 *  [mcbrineellis](https://wordpress.org/support/users/mcbrineellis/)
 * (@mcbrineellis)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/database-error-trying-to-remove-malware/)
 * Site was compromised, now I’m still getting “SQL Server Gone Away” errors (see
   full error that is received below in the gist). Page loads below where the error
   is displayed.
 * [https://gist.github.com/anonymous/bc3ea8ad8166b34fb9119631d8936ce3](https://gist.github.com/anonymous/bc3ea8ad8166b34fb9119631d8936ce3)
 * Looking for some assistance if you guys can point me in the right direction. 
   Tried disabling all plugins, switching themes, etc. Looking at debug.log is useless
   as it’s just the same error as I get on the web page. Tried to run sucuri but
   it isn’t working as the site freezes once it’s loaded after the error.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-error-trying-to-remove-malware%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/database-error-trying-to-remove-malware/#post-9690518)
 * Carefully follow [this guide](https://codex.wordpress.org/FAQ_My_site_was_hacked).
   When you’re done, you may want to implement some (if not all) of [the recommended security measures](https://codex.wordpress.org/Hardening_WordPress).
 *  Thread Starter [mcbrineellis](https://wordpress.org/support/users/mcbrineellis/)
 * (@mcbrineellis)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/database-error-trying-to-remove-malware/#post-9690526)
 * It seems to only intermittently affect the front facing website, whereas the 
   copied/pasted SQL error ALWAYS loads right away when opening wp-admin.
 *  Thread Starter [mcbrineellis](https://wordpress.org/support/users/mcbrineellis/)
 * (@mcbrineellis)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/database-error-trying-to-remove-malware/#post-9690531)
 * > [View post on imgur.com](https://imgur.com/a/Ba9GH)
 * See the screenshot above.
 *  [Adam](https://wordpress.org/support/users/adamlachut/)
 * (@adamlachut)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/database-error-trying-to-remove-malware/#post-9690559)
 * You may try to disable wp-cron for a while
 * A.
 *  Thread Starter [mcbrineellis](https://wordpress.org/support/users/mcbrineellis/)
 * (@mcbrineellis)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/database-error-trying-to-remove-malware/#post-9692132)
 * Thanks [@adamlachut](https://wordpress.org/support/users/adamlachut/) – disabled
   wp-cron, no effect yet, but I see what you mean, the query is full of references
   to cron / scheduled stuff.
 * I now see this below the main query error message:
 *     ```
       Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/laurelmcbrine.com/food/wp-includes/update.php on line 156
   
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/laurelmcbrine.com/food/wp-includes/wp-db.php:1406) in /var/www/laurelmcbrine.com/food/wp-admin/includes/misc.php on line 1114
   
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/laurelmcbrine.com/food/wp-includes/wp-db.php:1406) in /var/www/laurelmcbrine.com/food/wp-includes/option.php on line 919
   
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/laurelmcbrine.com/food/wp-includes/wp-db.php:1406) in /var/www/laurelmcbrine.com/food/wp-includes/option.php on line 920
       ```
   
 * [@t-p](https://wordpress.org/support/users/t-p/) – I’ll make sure to follow what
   I haven’t already done from that guide and report back here. Thank you.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/database-error-trying-to-remove-malware/#post-9692143)
 * > Warning: An unexpected error occurred. Something may be wrong with WordPress.
   > org or…
 * Please review this tutorial to fix: [http://www.wpbeginner.com/wp-tutorials/how-to-fix-secure-connection-error-in-wordpress/](http://www.wpbeginner.com/wp-tutorials/how-to-fix-secure-connection-error-in-wordpress/)
 * > Warning: Cannot modify header information – headers already sent
 * Try reviewing this info to solve header already sent problem: [https://make.wordpress.org/support/handbook/appendix/breakfix-lessons/php-whitespace-headers-already-sent/](https://make.wordpress.org/support/handbook/appendix/breakfix-lessons/php-whitespace-headers-already-sent/)

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

The topic ‘Database Error – Trying to remove malware’ is closed to new replies.

## Tags

 * [hacked](https://wordpress.org/support/topic-tag/hacked/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/database-error-trying-to-remove-malware/#post-9692143)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
