Title: undefined function force_ssl_admin()
Last modified: August 19, 2016

---

# undefined function force_ssl_admin()

 *  Resolved [Clayburn](https://wordpress.org/support/users/clayburn/)
 * (@clayburn)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/undefined-function-force_ssl_admin/)
 * 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:
    [http://www.phidevinc.com/tech-tips/changing-conceailing-and-securing-wp-admin](http://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](https://wordpress.org/support/users/clayburn/)
 * (@clayburn)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/undefined-function-force_ssl_admin/#post-1960731)
 * 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.

## Tags

 * [SSL](https://wordpress.org/support/topic-tag/ssl/)
 * [undefined function](https://wordpress.org/support/topic-tag/undefined-function/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Clayburn](https://wordpress.org/support/users/clayburn/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/undefined-function-force_ssl_admin/#post-1960731)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
