Answer the question
In order to leave comments, you need to log in
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
if (!$msg = VirtueMartModelState::testStateCountry($cart->{$type}['virtuemart_country_id'], $cart->{$type}['virtuemart_state_id'])) {
Answer the question
In order to leave comments, you need to log in
Update OnePageCheckout to the latest version. This error appears in their changelog, see screenshot
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question