Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Unable to get to Login page

Discussion in 'Misc WordPress Requests' started by andyfabri, Oct 19, 2017.

  1. andyfabri

    Guest

    Unable to get to Login page, by andyfabri

    Not sure what happened but my site, reports4u.co.uk, has ceased working. When I try to login I’m given the php with wp-login rather than being asked to enter my user name and password. Below is an excerpt of what I get. I have tried replacing the wp-login.php file but no difference. Is anyone able to help figure out why I can no longer login to the site?

    Note I’m unaware of any backend changes being made in the past few years.

    Thanks

    <?php
    /**
    * WordPress User Page
    *
    * Handles authentication, registering, resetting passwords, forgot password,
    * and other user handling.
    *
    * @package WordPress
    */

    /** Make sure that the WordPress bootstrap has run before continuing. */
    require( dirname(__FILE__) . ‘/wp-load.php’ );

    // Redirect to https login if forced to use SSL
    if ( force_ssl_admin() && ! is_ssl() ) {
    if ( 0 === strpos($_SERVER[‘REQUEST_URI’], ‘http’) ) {
    wp_redirect( set_url_scheme( $_SERVER[‘REQUEST_URI’], ‘https’ ) );
    exit();
    } else {
    wp_redirect( ‘https://’ . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’] );
    exit();
    }
    }

    /**
    * Output the login page header.

    Unable to get to Login page
     
    #1

Share This Page

Web Hosting