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

Problem with add to whishlist #24

Open
guidtz opened this issue Feb 3, 2015 · 7 comments
Open

Problem with add to whishlist #24

guidtz opened this issue Feb 3, 2015 · 7 comments

Comments

@guidtz
Copy link

guidtz commented Feb 3, 2015

Hello,

i have a problem with PageCache with "Add to whishlist" link. Linkls are like that :

http://site.domain.com/wishlist/index/add/product/1081/form_key/%3Cesi:include%20src=%22http://site.domain.com/varnishcache/getformkey/index/_nosid/1/?SID=tg0u8h8e058ksal9u52tnc3eh1%22%20/%3E/

And when I clic on link I have the whishlist page I have a page with that :

%3Cesi%3Ainclude%20src%3D%22http%3A//site.domain.com/varnishcache/getformkey/index/_nosid/1/%3FSID%3Dtg0u8h8e058ksal9u52tnc3eh1%22%20/%3E

Technical informations:
Magento CE : 1.8.00
Varnish 3.0.6

Varnish Daemon options :
DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT}
-f ${VARNISH_VCL_CONF}
-T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT}
-t ${VARNISH_TTL}
-w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT}
-s ${VARNISH_STORAGE}
-p esi_syntax=0x03 -p shm_reclen=4096"

Thanks for your help

Sincerely
Guidtz

@PHOENIX-MEDIA
Copy link
Collaborator

Please try "esi_syntax=0x3".

@guidtz
Copy link
Author

guidtz commented Feb 3, 2015

Yes I have it in varnish startup options :
Varnish Daemon options :
DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT}
-f ${VARNISH_VCL_CONF}
-T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT}
-t ${VARNISH_TTL}
-w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT}
-s ${VARNISH_STORAGE}
-p esi_syntax=0x03 -p shm_reclen=4096"

ps :
/usr/sbin/varnishd -P /var/run/varnishd.pid -a :80 -f /etc/varnish/default.vcl -T 127.0.0.1:6082 -t 120 -w 5,1000,120 -s malloc,1G -p esi_syntax=0x03 -p shm_reclen=4096

@PHOENIX-MEDIA
Copy link
Collaborator

"0x3" not "0x03".

@guidtz
Copy link
Author

guidtz commented Feb 3, 2015

Sorry but I have the same error with 0x3 :-(

@PHOENIX-MEDIA
Copy link
Collaborator

Are you using the latest VCL? Normally this ESI tag should be replaced. Does it work for your "add to cart" links?

@guidtz
Copy link
Author

guidtz commented Feb 3, 2015

I installed the version with magento connect.
Yes the add to cart link works.

@jonathonbyrdziak
Copy link

Again! This is the same problem as Issue #17 all you need to do is adjust the quotation marks in Esi.php Btw, Issue #17 suggests the fix for you with a pull request.

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

2 participants