cancel
Showing results for 
Search instead for 
Did you mean: 

Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Good morning,

 

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!

 

Many thanks,

Richard

21 REPLIES 21

Re: Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Clear /var/cache and login to /downloader.

 

Reinstall "Mage_Compiler".

Chris / Placement Edge

Re: Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Hi richard_gandy,

 

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 Smiley Happy

 

-- Best regards --
Kent Christiansen | Magento Certified Solution Specialist

Re: Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Hi guys,

 

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.

 

Thanks again!

 

Richard

Re: Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Hi @richard_gandy 

 

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.

Re: Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Hi @Theis Corfixen 

 

Thank you for your comprehensive reply, I have checked my local.xml file and have found the followig in there:-

 

<config>
<global>
<install>
<date><![CDATA[Mon, 23 Mar 2015 17:22:00 +0000]]></date>
</install>
<crypt>
<key><![CDATA[fc45ce284efa76be5b8941d73ebb7507]]></key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
<db>
<table_prefix><![CDATA[]]></table_prefix>
</db>
<default_setup>
<connection>
<host><![CDATA[localhost]]></host>
<username><![CDATA[REMOVED]]></username>
<password><![CDATA[REMOVED]]></password>
<dbname><![CDATA[magento_test2]]></dbname>
<initStatements><![CDATA[SET NAMES utf8]]></initStatements>
<model><![CDATA[mysql4]]></model>
<type><![CDATA[pdo_mysql]]></type>
<pdoType><![CDATA[]]></pdoType>
<active>1</active>
</connection>
</default_setup>
</resources>
<session_save><![CDATA[files]]></session_save>
</global>
<admin>
<routers>
<adminhtml>
<args>
<frontName><![CDATA[admin]]></frontName>
</args>
</adminhtml>
</routers>
</admin>
</config>

 

Not sure if this helps locate the issue further?

 

Thanks again!

 

Richard

Re: Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Hi @richard_gandy 

 

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?

Re: Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Hi @Theis Corfixen 

 

Great stuff - I have checked var/session/ and the folder is empty!

 

Sorry forgot to mention that bit I am developing on a live server environment:

 

Frontend - www.liveitlive.co.uk/magento

Backend - www.liveitlive.co.uk/magento/admin

 

Thanks,

Richard

Re: Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Hi again @Theis Corfixen

 

Any further help on this would be much appreciated as i've hit a brick wall with the development process.

 

Thanks again!

 

Richard

Re: Admin panel won't go past the sign in page - it just keeps reloading with a new key!

Hi @richard_gandy 

 

Is this only a problem with the admin, or do you have the same problem eg. adding a product to the cart?

 

Did you check the database for the values I asked for?