Author Topic: Undefined array key "BT" after upgrade to joomla  (Read 233 times)

MKI-Miro

  • Jr. Member
  • **
  • Posts: 197
Undefined array key "BT" after upgrade to joomla
« on: December 28, 2022, 15:50:02 pm »
Hi

I am getting these errors when order is finished:

Code: [Select]
vmTable store insertObject

Warning: Undefined array key "BT" in /data/8/c/8cebda2e-e64f-4f2a-9ed5-25033aa98354/web/administrator/components/com_virtuemart/models/orders.php on line 2789

Warning: Attempt to read property "order_number" on null in /data/8/c/8cebda2e-e64f-4f2a-9ed5-25033aa98354/web/administrator/components/com_virtuemart/models/orders.php on line 2789

Warning: Undefined array key "BT" in /data/8/c/8cebda2e-e64f-4f2a-9ed5-25033aa98354/web/plugins/vmshipment/weight_countries/weight_countries.php on line 105

Warning: Attempt to read property "virtuemart_shipmentmethod_id" on null in /data/8/c/8cebda2e-e64f-4f2a-9ed5-25033aa98354/web/plugins/vmshipment/weight_countries/weight_countries.php on line 105

Warning: Undefined array key "BT" in /data/8/c/8cebda2e-e64f-4f2a-9ed5-25033aa98354/web/plugins/vmpayment/paypal/paypal.php on line 450

Warning: Attempt to read property "virtuemart_paymentmethod_id" on null in /data/8/c/8cebda2e-e64f-4f2a-9ed5-25033aa98354/web/plugins/vmpayment/paypal/paypal.php on line 450

Warning: Undefined array key "BT" in /data/8/c/8cebda2e-e64f-4f2a-9ed5-25033aa98354/web/plugins/vmpayment/standard/standard.php on line 117

Warning: Attempt to read property "virtuemart_paymentmethod_id" on null in /data/8/c/8cebda2e-e64f-4f2a-9ed5-25033aa98354/web/plugins/vmpayment/standard/standard.php on line 117
Thank you for your order!
Your order has been processed.

VirtueMart 4.0.12 10777
The currently installed Joomla! version is "‎4.2.6"

Hot to fix it? thanks

MKI-Miro

  • Jr. Member
  • **
  • Posts: 197
Re: Undefined array key "BT" after upgrade to joomla
« Reply #1 on: January 01, 2023, 21:39:50 pm »
I found the problem:

The problem was in database table vjenl_virtuemart_order_userinfos where virtuemart_order_userinfo_id  was not set as PK because there were many duplicatece rows with value 0