wp-login.php redirects to…
-
Hi there,
I have a problem with my site http://eventi.iwgroup.it. When I try to login (http://eventi.iwgroup.it/wp-login.php) after putting user and password, it redirects in the page “http://eventi.iwgroup.it/wp-login.php?redirect_to=http%3A%2F%2Feventi.iwgroup.it%2Fwp-admin%2F&reauth=1”. I have the same issue with wp-admin. I don’t know how to access the admin panel.
Thank you
-
Hello acesolini,
I don’t see nothing bad here. When you enter your username and password and click login what error do you see?If I put username and password, it redirects automatically in that link “http://eventi.iwgroup.it/wp-login.php?redirect_to=http%3A%2F%2Feventi.iwgroup.it%2Fwp-admin%2F&reauth=1”. The same if I do it again.
Hello again,
Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.I deactivated all the plugins and the theme too. But it doesn’t still work. cleaning cache and cookie of course. always redirecting to that link
Hello Acesolini, that’s weird,
Sometimes .htaccess file can get corrupted which can result in internal server errors or login page refreshing error. Simply access your website through FTP. Backup the .htaccess file in your computer and then delete it from your website’s root directory. You may want to delete .htaccess file in wp-admin directory as well if it exist. Try logging in again. If you succeed, then this means that your .htaccess file were stopping you from logging into WordPress. Once you are logged in, simply go to Settings >> Permalinks and click Save. This will generate a new .htaccess file.not working.
without htaccess, without plugins without theme🙁
Still not working 🙁
without htaccess, without plugin, without theme.Hello again,
Have you contacted your hosting provider? This issue is a bit weird.Hi I haved the same problem and i solved it change the DB options
INSERT INTO
wp_options(option_id,option_name,option_value,autoload) VALUES
(1, ‘siteurl’, ‘http://mywebsite.mx’, ‘yes’),
(2, ‘home’, ‘http://mywebsite.mx’, ‘yes’),
(3, ‘blogname’, ‘mywebsite Power’, ‘yes’),I had same issue when I upgraded last week my ArchLinux.
Finally I found the root cause.the issue itself was not redirecting but something else.
First I enabled debugging. in wp-config.php I set this
define('WP_DEBUG', true);
as a result I saw what was the issue:
Uncaught Error: Cannot create references to/from string offsetsI solved it quite simply by adjustment in wp-login.php
I have replaced the line:
$user = wp_signon( '', $secure_cookie );
with this line
$user = wp_signon( array(), $secure_cookie );it was exactly the issue described here:
https://core.trac.wordpress.org/attachment/ticket/37071/fix-wp-login-error.patchThank you, @rafdre. That worked for me as well…
Sal C.
The topic ‘wp-login.php redirects to…’ is closed to new replies.