• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Skip to footer navigation
  • +1-562-855-0743
  • [email protected]
  • Let's chat
Web Design Studio | Pie Solutions

Web Design Studio | Pie Solutions

Award-Winning Web Design & Digital Marketing Studio

  • Home
  • Services
    • WordPress Development
    • Website Design & Development Services
    • Graphics Design & Animation
    • MVP Development
    • SEO & Marketing
    • Mobile Apps Development
    • Business Intelligence
  • About Us
  • Contact Us

Our Portfolio

Pie-Solutions is an affordable & a full service design studio in United States. We turn your ideas into reality with our award winning certified designers and developers. Our services includes custom logo design, web site designing, mobile apps, video animation to digital marketing. We provide high-quality services that drives results with 100% customer satisfaction guaranteed!

Home » Blog » How to fix “Invalid Form Key. Please refresh the page.” error on Magento Backend

How to fix “Invalid Form Key. Please refresh the page.” error on Magento Backend

December 31, 2016 By Mohsin

So you’re also having this “Invalid Form Key. Please refresh the page.” error and not able to login to your newly installed Magento Backend interface? No worries in this short article we will learn how to fix it.

There are number of reasons behind this and different solution works for different people so lets closely go through some of them.

Solution # 1: Use Database to save session
Often it seems that the “files” method to store session doesn’t work due to file permissions or other related issues so you can switch to Database method by making the change in app/etc/local.xml
Search for:

< ![CDATA[files]]>

and replace with:

< ![CDATA[db]]>

Save the file and sessions will now be stored in the database instead of files. Although you might see performance issues if you are running a large web store or multi sites with great number of products.

Solution # 2: Files & Folders Permission
So instead of switching to Database method for storing sessions we discussed above you make sure the folder /var/cache have the right permissions (0755 should be enough though but it has been noticed that some servers require 0777 on those folders), and writable to the user running php so magento can create new session files in that folder. if folder is not writable you are more likely to encounter the error.

Solution # 3: Core Config Data Table
For many users the problem lies in database. There are 2 of the possible fixes written below, if this is really a database issue.
Please note: If you find multiple entries for the following be sure to only use the default one or the one you want to change because resetting/removing the wrong entry might break your magento webstore completely.

  1. Reset the following:
    Browse core_config_data table (you might have to add the db/table prefix)
SELECT * FROM `core_config_data` WHERE `path` = "web/cookie/cookie_domain";
Set the above path value to null
SELECT * FROM core_config_data WHERE path="web/cookie/cookie_path";

set the value to above path to /

  1. Delete the following entries
    If the above code not help you then deleting the following entries from core_config_data table will help fixing the issue.
DELETE FROM `core_config_data` WHERE `path` = "web/cookie/cookie_domain";
DELETE FROM `core_config_data` WHERE `path` = "web/cookie/cookie_path";

Solution # 4: Cookies, Cache issue
If nothing mentioned above works for you don’t give up it’s more likely a bad Cookie issue. The simple solution is to delete cache, cookies from your browser. Also its nice to clear up magento cache if it doesn’t hurt you.

Please feel to reach to us if you don’t get it fixed.

Primary Sidebar

Recent Posts

  • Pie Solutions Ranked As Top 30 Branding Agencies In California
  • The Skills of Humor!
  • Let’s understand Mindfulness and work on it.
  • How to fix “Invalid Form Key. Please refresh the page.” error on Magento Backend
  • How to fix “Magento is already installed” error

Archives

  • December 2021
  • September 2020
  • December 2016
  • January 2015
  • September 2013
  • August 2013
  • January 2013

Categories

  • Branding
  • Development
  • Personal Development
  • Tutorials

About Us

Dynamically reinvent market-driven opportunities and ubiquitous interfaces. Energistically fabricate an expanded array of niche markets through robust products.

Footer

About Us

Pie-Solutions is an independent All-in-One studio operating from California, United States, specializing in Web design, web development, Mobile apps and Digital Media Production.

Connect with Us

1981 Knoxville, Long Beach CA, 90815
Phone: +1 562-855-0743
Email: [email protected]

Top Software Development Company in Long Beach

Copyright © 2023 Pie-Solutions.com. All rights reserved . Privacy Policy

  • Home
  • About
  • Contact
  • Portfolio
  • Blog