VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Vetrasputns on November 16, 2019, 21:14:08 PM

Title: Virtuemart cart & 508 error (Resource Limit Is Reached)
Post by: Vetrasputns on November 16, 2019, 21:14:08 PM
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
Title: Re: Virtuemart cart & 508 error (Resource Limit Is Reached)
Post by: GJC Web Design on November 16, 2019, 23:19:28 PM
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();   
Title: Re: Virtuemart cart & 508 error (Resource Limit Is Reached)
Post by: 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
Title: Re: Virtuemart cart & 508 error (Resource Limit Is Reached)
Post by: Vetrasputns on November 17, 2019, 00:26:18 AM
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...
Title: Re: Virtuemart cart & 508 error (Resource Limit Is Reached)
Post by: Studio 42 on November 17, 2019, 16:31:04 PM
You should check your browser console. You have other javascript problems to solve.
In some case a javascript error can break another javascript.