Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (260): D:\wwwroot\test_hx360\wwwroot/wp-content/themes/sky1.0/single-post-wordpress%e6%96%b0%e7%94%a8%e6%88%b7%e6%b3%a8%e5%86%8c%e6%88%96%e6%89%be%e5%9b%9e%e5%af%86%e7%a0%81%e6%97%b6%e6%8f%90%e7%a4%ba%e6%82%a8%e7%9a%84%e5%af%86%e7%a0%81%e9%87%8d%e8%ae%be%e9%93%be.php in D:\wwwroot\test_hx360\wwwroot\wp-includes\template.php on line 634

Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (260): D:\wwwroot\test_hx360\wwwroot/wp-content/themes/sky1.0/single-post-wordpress%e6%96%b0%e7%94%a8%e6%88%b7%e6%b3%a8%e5%86%8c%e6%88%96%e6%89%be%e5%9b%9e%e5%af%86%e7%a0%81%e6%97%b6%e6%8f%90%e7%a4%ba%e6%82%a8%e7%9a%84%e5%af%86%e7%a0%81%e9%87%8d%e8%ae%be%e9%93%be.php in D:\wwwroot\test_hx360\wwwroot\wp-includes\template.php on line 637

Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (260): D:\wwwroot\test_hx360\wwwroot/wp-includes/theme-compat/single-post-wordpress%e6%96%b0%e7%94%a8%e6%88%b7%e6%b3%a8%e5%86%8c%e6%88%96%e6%89%be%e5%9b%9e%e5%af%86%e7%a0%81%e6%97%b6%e6%8f%90%e7%a4%ba%e6%82%a8%e7%9a%84%e5%af%86%e7%a0%81%e9%87%8d%e8%ae%be%e9%93%be.php in D:\wwwroot\test_hx360\wwwroot\wp-includes\template.php on line 640
WordPress新用户注册或找回密码时提示“您的密码重设链接无效” - 汇享网

WordPress新用户注册或找回密码时提示“您的密码重设链接无效”

wordpress 汇享网 728℃

1、打开WP根目录下的 wp-login.php,找到如下代码(374行左右):

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

去掉两个尖括号即可。修改为

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

2、解决新用户注册时,点击邮件中的重置密码链接提示“您的密码重设链接无效”:
打开WP安装目录下的/wp-includes/pluggable.php,找到如下代码(1741行左右):

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

修改为:

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

转载请注明:汇享网 » WordPress新用户注册或找回密码时提示“您的密码重设链接无效”

喜欢 (1)or分享 (0)

精品资源

投稿