WordPress.org

Ready to get started?Download WordPress

Forums

Unable to Access Dashboard (2 posts)

  1. msmoneyspider
    Member
    Posted 2 years ago #

    When trying to access my WP dashboard, I am getting the following error message;

    Warning: Cannot modify header information - headers already sent by (output started at /home/spider/public_html/wp-config.php:4) in /home/spider/public_html/wp-includes/pluggable.php on line 881

    Lines 856 to 884 in wp-includes/pluggable.php are as follows;
    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;

    Please help.

    Regards
    Margaret

  2. D M
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic