Varnish and WordPress stuck at wp-login.php - wordpress

I am trying to fix some stuff with some website and came across a big issue which I am really stuck on now and can't move on.
The problem is like this after I do enter right username + password and hit on login at mydomain.com/wp-admin/ it will redirect me to mydomain.com/wp-login.php with a blank page. I have been trying for hours now and came with no solution.
I tried
this VarnishAndWordpress
to disable all plugins
to enable some redirect plugins
this wordpress-wp-admin-redirecting-to-wp-login-php-when-logged-in
to add new users delete users
and I tried to replace wp-admin and wp-includes with a fresh copy.
unfortunately all didn't work. And though if after I do login I change the URL to mydomain.com/wp-admin/ it will take me to the dashboard but I really need the redirect to work :(
Thanks in advance

It turns out to be a Theme problem. changing the theme fixed the problem.

Related

wordpress website is redirecting to blink.piterreceiver.ga/fast.php?t=j&id=658-3474568568-23-458578434

Wordpress website Awannews.fr is being redirect to blink.piterreceiver.ga/fast.php?t=j&id=658-3474568568-23-458578434. Can someone please help how can i figure out whats the issue.
I recently encountered the exact same redirect happening on a WordPress website I worked on. What worked for me was disabling a plugin that came with the theme I'm using on the site. In my case, it was an outdated version of the "WooCommerce Dynamic Pricing & Discounts" plugin that was infected with some malicious code.
Once I found the specific page the redirect happened on, I opened Inspect Elements in the Browser and looked at the changes to the page while it loaded in. There I managed to catch a glimpse of a <div> element loading in just before it redirects (the element id was pointing back to the plugin I ended up disabling).
First, I would recommend to:
Make sure all of the WordPress plugins are up to date.
Try to disable one plugin at a time and then refresh, check the site itself in another tab or window to see if the problem still presists.
If the 2 steps above don't help, then you could try to narrow down the cause/source by going around your WordPress site and try to catch at which point or which specific page the redirect happens. That way you could have a better idea of where to look or where not to look for the cause.
I hope this is helpful and you can post an update on how it went.

Wordpress gives 404 in any page with any kind of permalink, but when I change the theme it works. How to fix?

I have a wordpress theme that has the page.php, but it gives 404 in any page that I create, even using the plain permalink (http://localhost:8080/?page_id=33141).
But when I change to wordpress theme the page works.
I think it is not about htacces, because none of the themes should work.
Could the theme redirect all pages to 404? I didn't find anything in the code.
Could someone refresh my mind?
Thanks.
I am running it in a docker container but I dont think it has influence because the other theme works.
Try go to setting->permalink and click save and clear cache and fresh page.
go to settings-> permalinks and save the permalinks and also clear the cache. sometime it is occurring due to cache.
And also sometimes it may happens due to permission is declined from cpanel
Go to cpanel and then right click select permission and change the permission. It may be helpful

how to stop redirection in wordpress?

when i upload any things (media, post etc). then Wordpress panel redirect to the side of domain name with custom link and show the 404 error page.
https://domainname/#custom/
please help
Make sure this is not being caused by a plugin conflict.
Deactivate all activated plugins and try the action again. If it gets posted without redirecting you, a plugin might be the cause.
If this is the case, reactivate the recently active plugins and go through the process again, but this time, deactivate the plugins one after the other while you post new items. When you find the culprit, you can uninstall them and replace them with another plugin that does the same job.
If a plugin isn't causing this, you can rename your current .htaccess file to something else, then create an empty .htaccess file on the server. After doing this, go ahead and reset the permalinks.
See if the above suggestions solve your issue. Let e know how it goes.

wp-admin redirects to another page after automatic wordpress upgrade

Whenever I try to log into my wordpress site using mysite.com/wp-admin it redirects me to mysite.com/auto-login and giving a 404 error. It is happening with mysite.com/wp-login.php page as well. After go through my email i came to know that worpdress was upgraded automatically to 4.4.6. That means the problem started after the upgrade. Before that I could log into the site using wp-admin or login.php page without any problem.
Let me tell you what I did so far to solve it.
Edited the .htaccess file with the default code from wordpress.org site. Problem remained.
After that I deleted the file and uploaded a new one.
Did both through cpanel, but all in vain.
Update: I disabled my plugins one by one and found a faulty one. wp-admin or wp-login.php is now taking me to login page. But now the problem is it keeps redirecting to this same login page every time I enter my user name and password.
(Posted on behalf of the OP).
I have solved it. Let me tell you how.
I disabled my theme by renaming the folder.
I had no other theme in my directory so I uploaded twentysixteen theme.
I tried to login and It gave me a wrong password error which was weird because I did not change anything.
So I went through my phpMyAdmin and found that my password was changed I don't know how. Anyway I changed that and came back to login.
And voila! WordPress let me in!
Then I changed the theme to my previous real one and everything is OK now.

Broken Wordpress Admin

I have a client who has asked me to start working on their Wordpress site. The admin page is broken and I do not have access to the database yet (I am trying to track down the previous people who worked on it). It is quite messy, I know.
What I am doing now is migrating peices over to a new wordpress site using Wamp server just to get it functional, but I am wondering if the solution is simpler than that. Ideally, I would just fix the the login, but I have minimal Wordpress experience and don't know where to start.
Here is the website: http://fundafighter.com
If you go to http://fundafighter.com/wp-admin you'll notice that it is broken. I reroutes to "login-2", which I don't think is normal. So far I haven't found any folder with that title...
I would log into the site via FTP, check the wp-config.php file for any redirects for wp-login.php. Then, check the .htaccess file for the same. Remove any references.
If you get that page working, and you need to reset the password, I would follow this tutorial through phpMyAdmin:
https://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin

Resources