Wordpress prompts "Your password reset link is invalid, please request a new link below." Solution

888u

Last update at :2024-04-07,Edit by888u

Wordpress prompts "Your password reset link is invalid, please request a new link below." Solution

The reason for this problem is that there is a bug in the WordPress program source code. The two symbols <> are added to the source code. The previous symbol does not matter. But later on, the address in the mailbox > will be considered part of the target site's address. After accessing the past, the connection will naturally be incorrect. Next we will delete these two symbols.

First file:/wp-login.php

Second file:/wp-includes/pluggable.php

We first open the first file wp-login.php and edit its source code.

Then look for "wp-login.php?action=rp&key=" and we will see a search result. It's about line 369, and the location may be different in different versions. The original file code is as follows:

$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">/r/n";

We modify it to:

$message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "/r/n";

The modification is to delete ‘<‘ in front of network. Just delete > at the end.

Then we modify the second file pluggable.php

Look for "wp-login.php?action=rp&key=" and we will see a search result. Probably at line 1899. The location may be different in different versions.

The original file code is as follows:

$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login') . ">/r/n/ r/n";

We modify it to:

$message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login') . "/r/n/r/n"; 

The modification is to delete ‘<‘ in front of network. Only delete at the end>

After modifying the above two files, save them. There is no problem in the blogger's test. (Tip: Remember to save after modification)

Modified renderings:

Your password reset link is invalid, please request a new link below.

Recommended site search: Hong Kong proxy server, is there a charge for domain name registration, Hong Kong high-defense server, in domain name, free US host, windows host, which Hong Kong server is fast, Hong Kong cloud host, space rental online check IP,

Wordpress prompts

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码