Title: Error require
Last modified: November 2, 2023

---

# Error require

 *  Resolved [nicosa23](https://wordpress.org/support/users/nicosa23/)
 * (@nicosa23)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-require/)
 * Good morning, I have just moved the wp-login.php out of root, in the wps-hide
   login plugin I have to face an Err on the absolute path line 603 // @require_once
   ABSPATH. I put back the path to link the new directory but it makes an error,
   while waiting for the debug I put the plugin.old.. If you have a clue thank you

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * (@seinomedia)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-require/#post-17181634)
 * Hello,
 * Thanks for using WPS Hide Login.
 * This plugin does’nt need to move the wp-login.php. You just have to change the
   slug in WPS Hide Login settings.
 *  Thread Starter [nicosa23](https://wordpress.org/support/users/nicosa23/)
 * (@nicosa23)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-require/#post-17181667)
 * 
   Hey Maxime, I know that, but why is it giving me this error in this case, it’s
   buggy, it’s not stable.
 *  Plugin Support [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * (@seinomedia)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-require/#post-17181686)
 * wp-login.php is a file that must not be moved from its place.
 * Let it at the root and only change the slug in WPS Hide Login settings.
 *  [jeroenimo02](https://wordpress.org/support/users/jeroenimo02/)
 * (@jeroenimo02)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-require/#post-17181705)
 * [@nicosa23](https://wordpress.org/support/users/nicosa23/) I had a similar problem.
   
   I don’t know if it is linked to your problem, but it is worth a try._(Note: I
   personally have modified the original code slightly to work with our custom theme,
   so i am not sure if this warnings also occur in the normal plugin)_
 * On PHP 7.4 everything went fine, but switching our server to PHP 8.0 I saw some
   warnings on the new login url.
 *     ```wp-block-code
       Warning: Undefined variable $user_login in /www/wp-login.php on line 1428
       Warning: Undefined variable $user_login in /www/wp-login.php on line 1512
       Warning: Undefined variable $error in /www/wp-login.php on line 1534
       ```
   
 * I fixed this by changing the public function wp_loaded().
   I added:
 *     ```wp-block-code
       $user_login = '';
       $error = '';
       ```
   
 * Before the wp-login is required.
 *     ```wp-block-code
       @require_once ABSPATH . 'wp-login.php';
       die;
       ```
   
 * So like this:
 *     ```wp-block-code
       $user_login = '';
       $error = '';
   
       @require_once ABSPATH . 'wp-login.php';
       die;
       ```
   
 * Maybe this helps you?
 *  Thread Starter [nicosa23](https://wordpress.org/support/users/nicosa23/)
 * (@nicosa23)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-require/#post-17181708)
 * I put it outside the directory and I have no problem, this also allows you to
   secure outside the directory. you just need to be able to connect the path and
   it would work.
    -  This reply was modified 2 years, 7 months ago by [nicosa23](https://wordpress.org/support/users/nicosa23/).
 *  Plugin Support [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * (@seinomedia)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-require/#post-17183885)
 * Hello,
 * WPS Hide Login works with wp-login.php set on the root but not if it’s moved.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error require’ is closed to new replies.

 * ![](https://ps.w.org/wps-hide-login/assets/icon-256x256.png?rev=1820667)
 * [WPS Hide Login](https://wordpress.org/plugins/wps-hide-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wps-hide-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wps-hide-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wps-hide-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wps-hide-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wps-hide-login/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/error-require/#post-17183885)
 * Status: resolved