Title: Plugin blocks wp-login during login using third-party auth providers
Last modified: September 1, 2016

---

# Plugin blocks wp-login during login using third-party auth providers

 *  [Matthieu](https://wordpress.org/support/users/theschappy/)
 * (@theschappy)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-block-wp-login/)
 * I am using SEO redirect in combination with OpenID and other login plugins to
   allow users to login to the backend using third-party auth providers. When logging
   in to the backend for the first time, the login fails due to the following error
   in the php.log:
 * `PHP Fatal error: Call to undefined function get_home_path() in /var/lib/wordpress/
   wp-content/plugins/seo-redirection/seo-redirection.php on line 175`
 * However, after reloading the blocked wp-login webpage the login proceeds correctly.
   It seems that under some circumstances the required wp-admin/includes/file.php
   is not included correctly, which contains the definition the method `get_home_path`
   function used by the script. My current fix is to add the following to the top
   of the seo-redirection.php.
 *     ```
       if (!function_exists('get_home_path')) {
               require_once( ABSPATH . '/wp-admin/includes/file.php' );
       }
       ```
   
 * Would be great to have this included in one of the upcoming releases.
 * Thanks in advance,
 * Matthieu
 * [https://wordpress.org/plugins/seo-redirection/](https://wordpress.org/plugins/seo-redirection/)

The topic ‘Plugin blocks wp-login during login using third-party auth providers’
is closed to new replies.

 * ![](https://ps.w.org/seo-redirection/assets/icon-128x128.jpg?rev=983735)
 * [SEO Redirection Plugin - 301 Redirect Manager](https://wordpress.org/plugins/seo-redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-redirection/reviews/)

## Tags

 * [get_home_path](https://wordpress.org/support/topic-tag/get_home_path/)
 * [Login Issue](https://wordpress.org/support/topic-tag/login-issue/)

 * 0 replies
 * 1 participant
 * Last reply from: [Matthieu](https://wordpress.org/support/users/theschappy/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-block-wp-login/)
 * Status: not resolved