• Resolved Clayburn

    (@clayburn)


    This is strange. I setup WordPress at home and everything was working fine. I did a lot of customization, installed a few plugins. Going great.

    The only thing I couldn’t do was change my /wp-admin using this method:
    https://www.phidevinc.com/tech-tips/changing-conceailing-and-securing-wp-admin

    I followed the directions, but it always redirected to the homepage when attempting to login.

    Anyway, I gave up on that and called it good. Launched the site. This morning at work I try to access wp-admin and get an error:
    Fatal error: Call to undefined function force_ssl_admin() in /hermes/bosweb/web276/b2763/ipw.clayburn/public_html/clayburn/blog/wp-login.php on line 12

    Well, I deleted the if statement that is in wp-login.php, bu that gave me another error, so I added it back. I never messed with config.php or functions.php. It was working fine at home; I made no changes since.

    However, what’s interesting is t hat I’m still logged in at home. I checked on that computer and I’m in the dashboard. I can navigate around and make changes through it. If I try accessing it from home on a different browser (new session), I get that error again.

    What might be the problem? Why is this function undefined?

Viewing 1 replies (of 1 total)
  • Thread Starter Clayburn

    (@clayburn)

    Found the solution: I had accidentally removed some code when undoing the wp-admin change.

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

    That should have been in wp-login. Oops.

Viewing 1 replies (of 1 total)
  • The topic ‘undefined function force_ssl_admin()’ is closed to new replies.