Title: Cannot modify header information
Last modified: August 21, 2016

---

# Cannot modify header information

 *  Resolved [Joey](https://wordpress.org/support/users/joeythesquid/)
 * (@joeythesquid)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/)
 * I use a plugin called BackupBuddy to backup my sites and a script called Importbuddy
   to restore / deploy them. Generally this process works just fine and I’m able
   to restore my sites including plugins and settings without any problems.
 * However, for whatever reason, All in One WP Security and Firewall just doesn’t
   work after being restored by Importbuddy. It causes “Cannot Modify Header Information”
   errors on the wp-admin login page.
 * To be clear, All in One WP Security and Firewall works just fine on the site 
   from which the backup was made, and I can install the plugin after I’ve restored/
   deployed the site, but it doesn’t survive the restoration itself – even if disabled
   while being restored. In fact, even re-installing the plugin won’t fix the errors
   after they’ve appeared.
 * All that said, does anyone have any idea what would cause “Cannot modify header
   information” errors? It’s my understanding that they’re usually related to extra
   returns in functions.php but that clearly isn’t the case since the errors occur
   regardless of the theme in place.
 * Any ideas?
 * [http://wordpress.org/plugins/all-in-one-wp-security-and-firewall/](http://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)

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

 *  Thread Starter [Joey](https://wordpress.org/support/users/joeythesquid/)
 * (@joeythesquid)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4223846)
 * Sample errors enclosed, if they’re helpful:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 698
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 699
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 700
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 703
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 704
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 705
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 706
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 709
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 710
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 711
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/XXXX/public_html/wp-content/plugins/all-in-one-wp-security-and-firewall/
   classes/wp-security-debug-logger.php:52) in /home/XXXX/public_html/wp-includes/
   pluggable.php on line 712
 *  [mra13 / Team Tips and Tricks HQ](https://wordpress.org/support/users/mra13/)
 * (@mra13)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4223904)
 * When you are importing a site using importbuddy, are you importing the security
   plugin too?
 *  Thread Starter [Joey](https://wordpress.org/support/users/joeythesquid/)
 * (@joeythesquid)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4223931)
 * Yes, I’m importing a fully functional site with the security plugin configured
   and in place. That said, I think I figured it out. It seems to be related to 
   the permissions on the log file:
 * wp-security-log.txt
 * The file is set to 644 but, for whatever reason, setting it to 777 fixes the 
   errors. Interestingly, on the original non-imported site, the permissions are
   644 and it’s working just fine.
 *  Thread Starter [Joey](https://wordpress.org/support/users/joeythesquid/)
 * (@joeythesquid)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4223932)
 * Here’s what the plugin was attempting to write to the log file:
 * [10/15/2013 8:59 PM] – FAILURE : Error inserting record into wp_aiowps_login_activity
   [
   10/15/2013 8:59 PM] – FAILURE : Error inserting record into wp_aiowps_login_activity[
   10/15/2013 9:00 PM] – FAILURE : Error inserting record into wp_aiowps_login_activity[
   10/15/2013 9:00 PM] – FAILURE : Error inserting record into wp_aiowps_login_activity[
   10/16/2013 1:07 AM] – FAILURE : Error inserting record into wp_aiowps_login_activity[
   10/16/2013 1:07 AM] – FAILURE : Error inserting record into wp_aiowps_login_activity
 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4223939)
 * At login time the plugin hooks into the login event to store some account details
   regarding account activity. It stores these details in a table called “yourprefix_aiowps_login_activity”.(
   where “yourprefix_” is whatever you have set the DB prefix to – sounds like for
   you it is “wp_”)
 * Can you check if this table actually exists in your database?
 * If it does, then another good place to glean more info about why the SQL command
   failed is from the error_log files on your server if you have any.
 *  Thread Starter [Joey](https://wordpress.org/support/users/joeythesquid/)
 * (@joeythesquid)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4224157)
 * Just checked and the table does exist and it does contain data.
 * Also, as a side note, changing the permissions on the log file proved to be a
   temporary fix. Since, after updating the plugin, the errors returned on all my
   sites. Any idea how I might be able to work around this or troubleshoot it further?
 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4224160)
 * Did you check for any error_log files on your server?
 *  Thread Starter [Joey](https://wordpress.org/support/users/joeythesquid/)
 * (@joeythesquid)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4224161)
 * I dug through the log files but didn’t notice anything. Is there something specific
   I should be searching for beyond errors related specifically to that table? Or
   maybe I’m looking at the wrong logs?
 *  Thread Starter [Joey](https://wordpress.org/support/users/joeythesquid/)
 * (@joeythesquid)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4224175)
 * I’ve been looking into this further and noticed that if I access wp-login.php
   directly, the errors vanish. However if I use /wp-admin/ and it redirects then
   the errors return. For whatever reason, this appears to be related to the reauth
   =1 flag at the end of the URL. I say that, since removing this flag also fixes
   the errors.
 * Any idea why this might be the case?
 *  Thread Starter [Joey](https://wordpress.org/support/users/joeythesquid/)
 * (@joeythesquid)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4224180)
 * Oh well, I can’t sort it out. I guess I’ll have to disable the plugin across 
   all my sites. Anyway, I appreciate the help.
 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4224181)
 * [@joeythesquid](https://wordpress.org/support/users/joeythesquid/),
    We don’t
   use the “reauth” query param in our plugin.
 * I wonder if another plugin might be using it.
 * Maybe you can try a test where you deactivate all other plugins except AIOWPS.
   
   Then see if you can reproduce the issue. If you can’t, then maybe the problem
   lies with another plugin. Then proceed by activating each of the other plugins
   one by one and try reproducing the issue after each activation.
 * Sorry we couldn’t be of more help.
 *  Thread Starter [Joey](https://wordpress.org/support/users/joeythesquid/)
 * (@joeythesquid)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4224182)
 * Actually I’ve already tried that. I migrated my base WordPress install via by
   Backupbuddy to a sandbox testing account and removed all my plugins (even backupbuddy).
   I also removed my theme framework, just in case that might be causing an issue.
 * [http://204.197.248.107/~sandbox/wp-admin/](http://204.197.248.107/~sandbox/wp-admin/)
 * As you can see, when you login using the wp-admin URL, the errors appear. If 
   you target wp-login.php directly, the errors stop:
 * [http://204.197.248.107/~sandbox/wp-login.php](http://204.197.248.107/~sandbox/wp-login.php)
 * I’ve also turned off all of the settings and modifications within All In One 
   WP Security & Firewall, but that doesn’t help either. The only way to fix the
   problem is to turn off the plugin altogether.
 * As I only build sites using a preconfigured version of WordPress, I can’t say
   if the conflict is coming from my base WordPress install. So I suppose the next
   test is to install WordPress from scratch, add in the plugin, migrate via backupbuddy
   and see what happens.
 *  [lusitano](https://wordpress.org/support/users/lusitano/)
 * (@lusitano)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4224248)
 * Same problem here and i am using a normal wordpress installation file. Its quite
   annoying but i also had to turn off the plugin to fix this problem.
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4224249)
 * Hi Lusitano, this support Thread has been marked as resolved. Your best bet is
   to start a new support thread. I am sure will get more support that way.
 * Also when you create the new support thread can you provide the errors reported
   in the log file, that would help.

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

The topic ‘Cannot modify header information’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

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

 * 14 replies
 * 5 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-83/#post-4224249)
 * Status: resolved