Title: Error message when logging in
Last modified: August 21, 2016

---

# Error message when logging in

 *  [TessaJ](https://wordpress.org/support/users/tessaj/)
 * (@tessaj)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-message-when-logging-in-2/)
 * I had a query earlier which appeared to be resolved. [http://wordpress.org/support/topic/site-goes-to-home-page-when-i-try-to-save-settings?replies=10](http://wordpress.org/support/topic/site-goes-to-home-page-when-i-try-to-save-settings?replies=10)
 * However now my site [http://www.landlordlawblog.co.uk](http://www.landlordlawblog.co.uk)(
   although it seems to be displaying OK for readers) is now showing an error page
   when I try to log in or (in the browser where I am already logged in) try to 
   save anything.
 * This is the message:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/tessashepperson/public_html/wp-config.php:83) in /home/tessashepperson/
   public_html/wp-includes/pluggable.php on line 876
 * I have had a look at that file and that section – linie 876 says
 * header(“Location: $location”, true, $status);
 * And is part of the following:
 *     ```
       if ( !function_exists('wp_redirect') ) :
       /**
        * Redirects to another page.
        *
        * @since 1.5.1
        * @uses apply_filters() Calls 'wp_redirect' hook on $location and $status.
        *
        * @param string $location The path to redirect to
        * @param int $status Status code to use
        * @return bool False if $location is not set
        */
       function wp_redirect($location, $status = 302) {
               global $is_IIS;
   
               $location = apply_filters('wp_redirect', $location, $status);
               $status = apply_filters('wp_redirect_status', $status, $location);
   
               if ( !$location ) // allows the wp_redirect filter to cancel a redirect
                       return false;
   
               $location = wp_sanitize_redirect($location);
   
               if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
                       status_header($status); // This causes problems on IIS and some FastCGI setups
   
               header("Location: $location", true, $status);
       }
       endif;
       ```
   
 * I am not a programmer so am not able to fix this. Do you have any ideas?
 * Shortly before the crash I had installed a replacement plugin for wordpress firewall
   2 which was Better WP Security. Maybe that had something to do with it. I did
   not do the settings however and was trying to remove it when the problems started.

Viewing 1 replies (of 1 total)

 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-message-when-logging-in-2/#post-3659249)
 * Please review:
    [http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)

Viewing 1 replies (of 1 total)

The topic ‘Error message when logging in’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Krishna](https://wordpress.org/support/users/1nexus/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/error-message-when-logging-in-2/#post-3659249)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
