• Resolved nicosa23

    (@nicosa23)


    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

    (@seinomedia)

    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

    (@nicosa23)


    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

    (@seinomedia)

    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.

    @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.

    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:

    $user_login = '';
    $error = '';

    Before the wp-login is required.

    @require_once ABSPATH . 'wp-login.php';
    die;

    So like this:

    $user_login = '';
    $error = '';
    
    @require_once ABSPATH . 'wp-login.php';
    die;

    Maybe this helps you?

    Thread Starter nicosa23

    (@nicosa23)

    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.
    Plugin Support MaximeWPS

    (@seinomedia)

    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.