Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<esi Form Key/> Not being converted to a proper form key #30

Open
jonathonbyrdziak opened this issue May 15, 2015 · 5 comments
Open

<esi Form Key/> Not being converted to a proper form key #30

jonathonbyrdziak opened this issue May 15, 2015 · 5 comments

Comments

@jonathonbyrdziak
Copy link

I've looked through all of your documentation and your issues and I can't seem to understand this problem. I'm posting my issue here as a sort of walkthrough to find the answer, if anybody has any input while I figure this out, please share.

The Problem

The <esi:include src='http://domain.com/varnishcache/getformkey/' /> string is not being properly interpreted by Varnish on my setup. I should say, that it's being interpreted properly in some locations, but not others.

2015-05-15_1251

Related Issues

I've looked at the other issues which you have in this git issue system and they are not the same. The following issues reference that the form key is breaking their website and the solution to their problems is the quotation marks being wrong.

My problem differs in that the quotation marks have been done properly and the page passes w3 parsing standards. As I mentioned, the form key has been properly parsed in the past, and in some locations it works perfectly.

Here are the other issues, which mention the same problem, but have a different solution:

  1. Issue Problem with add to whishlist #24
  2. Issue Product Page - Links Broken? Please Help! #21
  3. Issue Checkout Form Key Issue #17

Possible Cause

I'm assuming that the page headers are wrong and therefore varnish doesn't know that it needs to punch a hole in the cache. I'm going to look into the page headers some more and let you know what I find.

If you have information and would like to contact me, please email me through my Magento Developer website.

@bbredewold
Copy link

Stange enough, when disabling the plugin, this error still exists...

@maciekpaprocki
Copy link

I Have this same issue. After uninstalling still doesn't work(cache cleared). Magento installation is almost empty/new so I don't see anything else that could create the problem.

Best regards
Maciej Paprocki

@diegoborba
Copy link

I have the problem only on cart page.
In the form: checkout/cart/updatePost/
The Refresh button and remove not working.

The other pages that use the form_key, are working.

@diegoborba
Copy link

I solved the problem here!

Try the following:

Copy the files vars.vcl and default_3.0.vcl directory: app/code/community/Phoenix/VarnishCache/etc

To the path /etc/varnish

Rename default_3.0.vcl to default.vcl

restart services and clear caches.

By doing so, the cart page corrected the form_key

@maciekpaprocki
Copy link

Apparently after switching off extension and reindexing issues stops showing. Just note for the people trying to get rid of issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants