Hello, Virtuemart community!
Recently, after Joomla & Virtuemart update, my cart stopped working as supposed to. When customer clicks 'add to cart' - it gets sooooo sloooowww. Shop navigation works +/- fast, but... when it gets to cart, it gets painfull. Any cart update / remove products and other actions in cart 98% leads to "508: Resource Limit Is Reached" error to server. What can cause so strange behaviour? What can I do to get rid of it? Thanks in advance!
Link to my shop: https://atzi.me/bodite
Link to cart: https://atzi.me/bodite/grozs
Joomla version 3.9.13 / Virtuemart version 3.6.8 10197
P.S. Sorry, site in Latvian... I hope it wouldn't obstacle to investigate problems ;)
UPDATE: Yes, I tested it with 'Protostar' template - same problem, nothing changes
the cart is sending out 1000's of ajax requests...
something to do with the VM keepalive
https://atzi.me/components/com_virtuemart/assets/js/vmkeepalive.js?vmver=72ef233f
I remember another forum member (AH) reporting this once but can't remember how it was solved ..
it should only send out once every few minutes -- the idea is to keep the session alive if there is no user input
In the short term you could try just adding a dummy function or in the above js comment out the call line 46
// vmKeepAlive();
I tested the root https://atzi.me and i see directly 503 "Resource Limit Is Reached" so i dont think its specific to the cart page
Quote from: Studio 42 on November 17, 2019, 00:11:20 AM
I tested the root https://atzi.me and i see directly 503 "Resource Limit Is Reached" so i dont think its specific to the cart page
Whole page down for everyone everytime after adding products, testing (like now) in Virtuemart cart... :( Minutes ago tried commenting out vmKeepAlive();, as GJC Web Design suggested. Count of AJAX requests dropped & will see what to do next...
You should check your browser console. You have other javascript problems to solve.
In some case a javascript error can break another javascript.