News:

Looking for documentation? Take a look on our wiki

Main Menu

Virtuemart cart & 508 error (Resource Limit Is Reached)

Started by Vetrasputns, November 16, 2019, 21:14:08 PM

Previous topic - Next topic

Vetrasputns

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

GJC Web Design

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();   
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

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

Vetrasputns

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...

Studio 42

You should check your browser console. You have other javascript problems to solve.
In some case a javascript error can break another javascript.