I hope someone can help - I have recently installed Magento 1.9 and have configured it sucessfully so that both the frontend and backend are visible (demo only).
However when the admin panel loads and the user details are inputted the log in page just reloads and won't let me get passed this point. The page loads with a new key at the end of the URL each time and if the inccorrect username or password are inputted this is detected and renders with the relevant error.
I have looked around and a lot of people have advised amending the varien.php file which I have tried but the problem still persists.
If anyone could offer any advice or help that would be great!
Clear /var/cache and login to /downloader.
Should be enough to clear the var/cache/xxxx/xxx folder like written,
You could also trying to empty your browser cache, if you using Google Chrome > rightclick on the page > select inspector > Ressources tab > cookies area > delete entires when you are on the admin "blank" page.
Let us know if this helps
Many thanks for your replies but unfortunately clearing the var > cache folder and resetting the cache on google chrome doesn't have any effect on the problem.
I tried running the downloader and reinstalling mage_compiler but as soon as I hit 'Commit Changes' in the black box at the bottom it just loads the log in magento connect box and won't go past this point similarly to the admin panel.
Any further help on this would be much appreciated.
Sounds like the sessions are starting correctly on your server, this can be a result of many things.
First of all you are using a session mangement system like memecahce that are not running. Check app/etc/local.xml and see if there is a node referering to sessions.
Secound of all if you are developing locally or you movd your install there might be an issue with setting the cookies / validating the sessions.
Since you can't login you can't really check this but go to your database browser tool of choice and find the table: core_config_data.
Find the following rows with the SQL command:
SELECT * FROM `core_config_data` WHERE `path` = 'web/cookie/cookie_domain' OR `path` = 'web/cookie/cookie_httponly'
If you are not on a real domain (if you are developing locally and are located on like http://magentodevelopment/ you need to change the value in:
web/cookie/cookie_httponly to be 0
And then set the domain to null.
This should allow you to login locally.
You can also if this is the case change your local development enviroment to end in .dev so the URL would be http://magentodevelopment.dev/ .
I hope this helps.
Thank you for your comprehensive reply, I have checked my local.xml file and have found the followig in there:-
<date><![CDATA[Mon, 23 Mar 2015 17:22:00 +0000]]></date>
<initStatements><![CDATA[SET NAMES utf8]]></initStatements>
Not sure if this helps locate the issue further?
It does a little you can see that the session_save node is set to be files, meaning that all sessions should be stored in var/session/
Check if this folder is writeable, and if there are any files in it.
Are you developing locally or was i wrong assuming that?
Hi again @Theis Corfixen
Any further help on this would be much appreciated as i've hit a brick wall with the development process.