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

/varnishcachekey/getformkey/ URLENCODED #35

Open
jtsSTECH opened this issue Jul 18, 2015 · 0 comments
Open

/varnishcachekey/getformkey/ URLENCODED #35

jtsSTECH opened this issue Jul 18, 2015 · 0 comments

Comments

@jtsSTECH
Copy link

Having a weird/random issue where the getformkey is showing up urlencoded.

For instance if you went directly to this url after the issue occurs
http://www.site.com/varnishcache/getformkey/

You would get:
%3Cesi%3Ainclude%20src%3D%27http%3A//www.site.com/varnishcache/getformkey/%27%20/%3E

Something is URL encoding that url and its sporadic.

Update: For some reason, it seems specific to just Macs. I'm not sure why that would happen just on that platform though (Cookies are set properly in Chrome, but not FF or Safari)

Update2: I can replicate the formkey cookie getting corrupted on a MAC
On a Mac I can always replicate this by going directly to the CLONE server.
Check your Cookies in Firebug. Watch the "PAGECACHE_FORMKEY" as this is what is used in the /varnishcache/getformkey/
1.) Clear ALL Cookies.
2.) Goto homepage
3.) Add product to cart. From Cart "Proceed to Checkout ".
4.) On checkout page, clear all cookies again then hit refresh.
5.) You'll see that the cookie is corrupted:
PAGECACHE_FORMKEY=%3Cesi%3Ainclude%20src%3D%27http%3A//www.site.com/varnishcache/getformkey/%27%20/%3E; expires=Sun, 19 Jul 2015 16:27:51 GMT; path=/; domain=.www.site.com

I have tried doing all of the edits to Esi.php and the formkey.phtml, but none of them worked. Any insight into this would be greatly appreciated.

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

1 participant