Hi, I'm having some issues regarding 'checking out' when trying to add shipping details. Virtuemart seems to go into a loop when I create a 'shipping address'. It's adding a selected radio button, but with no address (seen on attachment "Screenshot 2022-12-13 140025.png"). Then when you go to checkout, it shows the error 'Invalid data entered' and if you try again, it will repeat the same previously, adding another radio button.
If you leave the shipping address as default/same as billing, then it works fine.
https://www.kemet.co.uk/shop/metallographic-consumables
I've updated VM to version 4.0.10 to see if this would fix the issue and also on joomla version 4.2.5
this is the debug report when receiving the 'invalid data entered'
1 vmdebug 1 Language, default shoplanguage (VmConfig::$jDefLang): en_gb en-GB
2 vmdebug 1 Language, default shoplanguage (VmConfig::$jDefLang): en_gb en-GB
3 vmdebug vmTime: time to import plugins vmextended: 4.29153442382812E-5
4 vmdebug vmTime: time to import plugins vmuserfield: 6.103515625E-5
5 vmdebug vmTime: time to load config param $lang=1 and iniLang=0 $exeTrig = 1 now = 0: 0.00562000274658203
6 vmdebug Set router vars Post, Get, self::$get and self::$request Var1:
Array
(
[cartpos] => Array
(
- => 0
)
[quantity] => Array
(
- => 1
)
[coupon_code] =>
[virtuemart_paymentmethod_id] => 1
[customer_note] => testing notes
[tos] => 1
[virtuemart_vendor_id] => 1
[order_language] => en-GB
[task] => updatecart
[option] => com_virtuemart
[view] => cart
[checkout] => 1
)
Var2:
Array
(
)
Var3:
Array
(
[option] => com_virtuemart
[view] => cart
[Itemid] => 803
)
Var4:
Array
(
[cartpos] => Array
(
- => 0
)
[quantity] => Array
(
- => 1
)
[coupon_code] =>
[virtuemart_paymentmethod_id] => 1
[customer_note] => testing notes
[tos] => 1
[virtuemart_vendor_id] => 1
[order_language] => en-GB
[task] => updatecart
[option] => com_virtuemart
[view] => cart
[checkout] => 1
[Itemid] => 803
)
7 vmdebug Start used Ram 8M
8 vmdebug Controller and Task in main controller Var1:
cart
Var2:
updatecart
9 vmdebug SSL enabled
10 vmdebug Going to set pw fields unrequired
11 vmdebug getVendorId normal shopper
12 vmdebug My Memory Limit in Bytes 134217728
13 vmdebug getProductSingle loading without prices id 516
14 vmdebug 1 Language, default shoplanguage (VmConfig::$jDefLang): en_gb en-GB
15 vmdebug My menu
16 vmdebug vmTime: time to import plugins vmcalculation: 9.41753387451172E-5
17 vmdebug vmTime: time to import plugins vmcustom: 0.000104188919067383
18 vmdebug vmTime: time to import plugins vmcoupon: 0.000123262405395508
19 vmdebug vmTime: time to import plugins vmshipment: 0.000129222869873047
20 vmdebug FOUND automatic SELECTED shipment !! Var1:
1
21 vmdebug vmTime: time to import plugins vmpayment: 0.00013422966003418
22 vmdebug vmTime: Time consumed for shipment/payment plugins: 0.00472784042358398
23 vmdebug FOUND automatic SELECTED shipment !! Var1:
1
24 vmdebug vmTime: Time consumed for shipment/payment plugins: 0.00571489334106445
25 vmdebug VmView loaded with override
25 vmTrace vmWarn Message empty
#0 vmTrace() called at [/home/kemetco/public_html/administrator/components/com_virtuemart/helpers/vmecho.php:174]
#1 vmWarn() called at [/home/kemetco/public_html/components/com_virtuemart/helpers/cart.php:1565]
#2 VirtueMartCart->redirecter() called at [/home/kemetco/public_html/components/com_virtuemart/helpers/cart.php:1648]
#3 VirtueMartCart->checkoutData() called at [/home/kemetco/public_html/components/com_virtuemart/controllers/cart.php:108]
#4 VirtueMartControllerCart->display() called at [/home/kemetco/public_html/components/com_virtuemart/controllers/cart.php:200]
#5 VirtueMartControllerCart->updatecart() called at [/home/kemetco/public_html/libraries/src/MVC/Controller/BaseController.php:672]
#6 Joomla\CMS\MVC\Controller\BaseController->execute() called at [/home/kemetco/public_html/components/com_virtuemart/virtuemart.php:128]
#7 require_once(/home/kemetco/public_html/components/com_virtuemart/virtuemart.php) called at [/home/kemetco/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71]
#8 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() called at [/home/kemetco/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73]
#9 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() called at [/home/kemetco/public_html/libraries/src/Component/ComponentHelper.php:355]
3 vmdebug vmTime: time to load config param $lang=1 and iniLang=0 $exeTrig = 0 now = 1: 0.00424313545227051
4 vmdebug 1 Language, default shoplanguage (VmConfig::$jDefLang): en_gb en-GB
5 vmdebug My menu
6 vmdebug vmTime: time to import plugins vmextended: 3.00407409667969E-5
7 vmdebug vmTime: time to import plugins vmuserfield: 4.1961669921875E-5
8 vmdebug Set router vars Post, Get, self::$get and self::$request Var1:
Array
(
)
Var2:
Array
(
)
Var3:
Array
(
[option] => com_virtuemart
[view] => user
[layout] => edit
[Itemid] => 805
[limitstart] => 0
[addrtype] => ST
[task] => editaddresscart
[limit] => 24
)
Var4:
Array
(
[limitstart] => 0
[view] => user
[addrtype] => ST
[task] => editaddresscart
[limit] => 24
[option] => com_virtuemart
[layout] => edit
[Itemid] => 805
)
9 vmdebug Start used Ram 8M
10 vmdebug Controller and Task in main controller Var1:
user
Var2:
editaddresscart
11 vmdebug SSL enabled
12 vmdebug VmView loaded with override
13 vmdebug Going to set pw fields unrequired
14 vmdebug My Url in loginform Var1:
index.php?option=com_virtuemart&view=cart&task=checkout
15 vmdebug End used Ram 8M
16 vmdebug Peak memory peak 8M
17 vmdebug vmTime: "VirtuemartControllerUser" Finished task editaddresscart in /home/kemetco/public_html/components/com_virtuemart: 0.0178570747375488
18 vmdebug getVendorId normal shopper
19 vmdebug My Memory Limit in Bytes 134217728
20 vmdebug getProductSingle loading without prices id 516
21 vmdebug vmTime: time to import plugins vmcalculation: 6.60419464111328E-5
22 vmdebug vmTime: time to import plugins vmcustom: 7.79628753662109E-5
23 vmdebug vmTime: time to import plugins vmcoupon: 9.70363616943359E-5
24 vmdebug vmTime: time to import plugins vmshipment: 0.00359606742858887
25 vmdebug FOUND automatic SELECTED shipment !! Var1:
1
26 vmdebug vmTime: time to import plugins vmpayment: 0.00583195686340332
27 vmdebug vmTime: Time consumed for shipment/payment plugins: 0.0148091316223145
I was originally trying to fix the issue in the attached (error - 'vmTable store updateObject'), but I was unable to replicate that error (image from mouseflow). The user was having the same issue with trying to add a different shipping address to the billing address
It may have been a "1st run" error after the update?
VM debug is generally not very helpful in tracing errors .. Joomla debug with the Debug plugin enabled should give you a much more useful php back trace so the source of the error can be found