O
O
Olga2019-03-29 12:46:30
Joomla
Olga, 2019-03-29 12:46:30

Why does it give an error after clicking "Confirm order"?

Good afternoon!
There is Joomla 3.8, VirtueMart 3.4.6 and OnePageCheckout from Rupostel. All fields are filled, but after clicking on the "Confirm order" button, the following error occurs:

Too few arguments to function VirtueMartModelState::testStateCountry(), 2 passed in /home/a/algoritm12/zakazpechati.rf/public_html/components/com_onepage/overrides/cart_override.php on line 2364 and exactly 3 expected

5c9de96f96263824046881.png
On this line is:
if (!$msg = VirtueMartModelState::testStateCountry($cart->{$type}['virtuemart_country_id'], $cart->{$type}['virtuemart_state_id'])) {

Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Gruznykh, 2019-03-29
@pavelcarcass

Update OnePageCheckout to the latest version. This error appears in their changelog, see screenshot
5c9e106ac468a516958065.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question