I can't do anything on my wordpress site right now, because for every click I get sent to the log in page.
I can click on certain things in the control panel such as "Pages" or "Posts", but if I try to edit or save anything it takes me to the log in page.
In the address bar it says:
http://www.site.com/content//wp-login.php?redirect_to=http%3A%2F%2Fwww.site.com%2Fcontent%2F%2Fwp-admin%2Fprofile.php
or:
http://www.site.com/content//wp-login.php?redirect_to=http%3A%2F%2Fwww.site.com%2Fcontent%2F%2Fwp-admin%2Fpage.php%3Faction%3Dedit%26post%3D146
or similar.
This all started when I updated the browser and lost the saved password and had to reset it. Not sure the connection but that's when the problems started.
Denzel Chia answers:
Hi,
May I know how did you reset your password? By going to WordPress login page or via phpMyAdmin? And any other things that you may have done?
If you changed your password in database using phpMyAdmin, did you save password as md5?
Since you can login, why don't you clear your browser cache, login to WordPress Admin, go to your profile page and reset your password again?
You can also try disabling all plugins or any plugin that you installed recently, so as to ensure that it is not caused by any plugin.
Hope it helps.
Thanks.
Denzel Chia comments:
Hi,
Just thought of another possibility, something must have caused your user capabilities to change during your password reset, if your user capabilities cannot edit post or page or anything. You will be redirected to login page, every time you try to update, change, or post something.
You can try register another administrator user access and use this new profile instead.
If registration goes well you will be able to control everything again.
If not you can also try to re upgrade your blog, by going to update in WordPress admin, hopefully it can reverse any wrong done.
Whatever you do, please do not manually delete any files, as this may lock you out of your blog indefinitely.
Thanks.
Tobias Nyholm answers:
Check you /wp-content/ dir. Is there any file named "advanced-cache.php" or "db.php", delete that file and you are good to go. =)
Ivaylo Draganov answers:
Did you set any constants in your `WP_ your <em>wp-config.php</em> file? This seems to me like an issue with the paths to WordPress. Try adding this to your <em>wp-config.php</em>(or edit the values if they exist):
define('WP_SITEURL', 'http://www.site.com/content');
define('WP_HOME', 'http://www.site.com');
<strong>Note:</strong> there should be no trailing slash at the end.
I assume that your website is accessed at <em>http://www.site.com</em> and your wp-login page at <em>http://www.site.com/content/wp-login.php</em>. If your website is accessed at <em>http://www.site.com/content</em> just set WP_SITEURL and WP_HOME to be the same.
Pau answers:
your permalinks might cause that. try to reset your permalinks back to default at your dashboard under settings tab
Nilesh shiragave answers:
Hi
First add this code in your wp-config.php file
define('WP_HOME','http://www.site.com/content');
define('WP_SITEURL','http://www.site.com/content');
If you still get same login issue check this link for more details.
http://codex.wordpress.org/Login_Trouble
Jeremy Jared answers:
<strong>Try the New Log-In File </strong>
It is from the Wordpress Codex page: [[LINK href="http://codex.wordpress.org/Login_Trouble"]]Login Trouble[[/LINK]].
You might also try re-installing Wordpress. This can be done by going to Dashboard from the Wordpress Admin page. Click on the Dashboard icon in the top of the left side admin bar. Click updates under the Dashboard menu. It will say you already have the newest version, click install anyway.