문제

The error "Invalid Form Key. Please refresh the page." appears when submitting the contact form.

I just don't know how to handle this. :( In my opinion, this must not even be supposed to happen. How can I get rid of this error?

enter image description here

도움이 되었습니까?

해결책

The problem was the missing line inside contact page as seen in the page's source code:

enter image description here

My solution was to overwrite the form.php file of the contact module inside my custom theme so it could generate the line marked in the above picture.

enter image description here

After that I ran the command: ./magento setup:di:compile

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top