PHOENIX-MEDIA / Magento-PageCache-powered-by-Varnish

Community version which is available on Magento Connect (http://www.magentocommerce.com/magento-connect/pagecache-powered-by-varnish.html)
89 stars 49 forks source link

Problem with add to whishlist #24

Open guidtz opened 9 years ago

guidtz commented 9 years ago

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 commented 9 years ago

Please try "esi_syntax=0x3".

guidtz commented 9 years ago

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 commented 9 years ago

"0x3" not "0x03".

guidtz commented 9 years ago

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

PHOENIX-MEDIA commented 9 years ago

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

guidtz commented 9 years ago

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

jonathonbyrdziak commented 9 years ago

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.