cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Form Key. Please refresh the page.

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Invalid Form Key. Please refresh the page.

I went to create a new configureable product only to be met with an "Invalid Form Key | Please refresh your page" Error. I followed the steps here.

However the steps did not fix the issue. Solved: Invalid Form Key. Please Refresh Your Page

When viewing the debug.log. This is what I found.

 [2018-03-08 03:16:38] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["BACKEND_MAINMENU"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["LAYOUT_GENERAL_CACHE_TAG"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["BLOCK_HTML"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["COLLECTION_DATA"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["REFLECTION"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["DB_DDL"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["EAV"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["CUSTOMER_NOTIFICATION"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["INTEGRATION"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["INTEGRATION_API_CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["FPC"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["TRANSLATE"],"mode":"matchingTag"}} [] [2018-03-08 03:16:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["WEBSERVICE"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["LAYOUT_GENERAL_CACHE_TAG"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["BLOCK_HTML"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["COLLECTION_DATA"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["REFLECTION"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["DB_DDL"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["EAV"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["CUSTOMER_NOTIFICATION"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["INTEGRATION"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["INTEGRATION_API_CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["FPC"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["TRANSLATE"],"mode":"matchingTag"}} [] [2018-03-08 03:16:41] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/start","invalidateInfo":{"tags":["WEBSERVICE"],"mode":"matchingTag"}} [] [2018-03-08 03:16:42] main.DEBUG: cache_invalidate: {"method":"GET","url":"http://domain.com/setup/index.php/success","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 03:16:43] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/install/progress","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 15:40:56] main.DEBUG: cache_invalidate: {"method":"GET","url":"http://domain.com/j0k3r/admin/cache/index/key/magentokey/","invalidateInfo":{"tags":["interception","CONFIG"],"$ [2018-03-08 15:40:58] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/session/prolong","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 15:40:59] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/session/prolong","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 16:25:50] main.DEBUG: cache_invalidate: {"method":"GET","url":"http://domain.com/j0k3r/admin/cache/index/key/magentokey/","invalidateInfo":{"tags":["interception","CONFIG"],"$ [2018-03-08 17:52:25] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/session/prolong","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 17:52:26] main.DEBUG: cache_invalidate: {"method":"GET","url":"http://domain.com/j0k3r/admin/cache/index/key/magentokey/","invalidateInfo":{"tags":["interception","CONFIG"],"$ [2018-03-08 17:52:26] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/session/prolong","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 18:13:29] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/session/prolong","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} [] [2018-03-08 18:13:31] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://domain.com/setup/index.php/session/prolong","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} []
7 REPLIES 7

Re: Invalid Form Key. Please refresh the page.

 

Open your server's php.ini file with root user, search for max_input_vars and set its value as 180000 

 

max_input_vars = 180000

 

Also is there any custom module which is there in app/code directory and related to products ?

if issue solved,Click Kudos & Accept as Solution

Re: Invalid Form Key. Please refresh the page.

I set it to 180000 but it didn't work.

And no it's a fresh install.  No theme, just standard Magento 2 install.

Re: Invalid Form Key. Please refresh the page.

Which Magento 2 version are you using ? is it latest version 2.2.3 ? 

if issue solved,Click Kudos & Accept as Solution

Re: Invalid Form Key. Please refresh the page.

Yes it is the latest version

Re: Invalid Form Key. Please refresh the page.

Looking at the release notes there is no bug reported for that so might be its different issue.

 

okay then remove generated ,var/cache,var/page_cache, var/view_processed directories.

 

then run below commands.

 

php bin/magento setup:di:compile

 

php bin/magento cache:clean

 

php bin/magento cache:flush

 

that might be work for you !!

if issue solved,Click Kudos & Accept as Solution

Re: Invalid Form Key. Please refresh the page.

*bangs head on desk*

Now it's just giving me a straight www.domain.com 

is currently unable to handle this request.

HTTP ERROR 500

lol... 

Re: Invalid Form Key. Please refresh the page.


@ryan_bonnerwrote:

*bangs head on desk*

Now it's just giving me a straight www.domain.com 

is currently unable to handle this request.

HTTP ERROR 500

lol... 

I am banging my head big time.  I have cleaned caches again, reset stuff, increased max_input_vars.  Still get the invalid form key when trying to save any existing products.  But lets me create new ones.