I'm using the latest version of WP. I have a problem, where clicking the logout button from the admin panel redirects to a completely broken link:
/?loggedout=true
As you can see, the domain is completely omitted from the link(in my case it's wp.localhost)
I will mention that this local WP site was "cloned" from a remote server, but i made sure to change the "siteurl" and "home" fields in the wp_options table, and everything else works just fine
Can somebody tell me, where the problem might be? Is there any other configuration field, that might be relevant to this?
I'm using the latest version of WP. I have a problem, where clicking the logout button from the admin panel redirects to a completely broken link:
http://wp-login.php/?loggedout=true
As you can see, the domain is completely omitted from the link(in my case it's wp.localhost)
I will mention that this local WP site was "cloned" from a remote server, but i made sure to change the "siteurl" and "home" fields in the wp_options table, and everything else works just fine
Can somebody tell me, where the problem might be? Is there any other configuration field, that might be relevant to this?
Share Improve this question asked Sep 12, 2019 at 9:40 i.brodi.brod 1357 bronze badges 9 | Show 4 more comments1 Answer
Reset to default 2Found the answer. It is a bug in WordPress v5.2.3 affecting WordPress in Windows environments. Caused by backslashes in Windows paths that aren't stripped correctly
Details here: https://core.trac.wordpress/ticket/47980
I have tried the patch suggested and can confirm it solves the problem.
replace:
$location = '/' . ltrim( $path . '/', '/' ) . $location;
with
$location = '/' . ltrim( $path . '/', '/\\' ) . $location;
in /wp-includes/pluggable.php, line 1404
It says it will be fixed in version 5.2.4
wp-config.php
file for special settings likeWP_SITEURL
? How about your.htaccess
file - anything that's suspicious? – Sally CJ Commented Sep 12, 2019 at 13:12