VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: jamesl-kemet on November 10, 2022, 14:45:27 PM

Title: error when editing payment methods for VirtueMart 4
Post by: jamesl-kemet on November 10, 2022, 14:45:27 PM
Hi, I'm currently working on migrating our website to joomla 4 and the latest virtuemart (VirtueMart 4.0.4 10688). While checking everything, I clicked on the Payment Methods section, then one of the payments (PayPal) I had set up previously before migrating, but after 30 seconds I get the below error (also attached). I ran the 'Update Sites' rebuild for the paypal payments option and also installed the Virtuemart installation again in case anything was missing. I have tried creating a new payment method, but when I click 'save' to set up the configuration within the payment method, I get the same error below again.

Also noticed that the payment methods were missing from the front-end cart when checking out.

FatalError
in /home/kemetco/public_html/mm4/libraries/src/Form/Form.php (line 1394)
            }
            // Iterate through the nested groups to find any matching form field groups.
            for ($i = 1, $n = \count($group); $i < $n; $i++) {
                // Initialise some loop variables.
                $validNames = \array_slice($group, 0, $i + 1);
                $current = $tmp;
                $tmp = [];
                // Check to make sure that there are no parent groups for each element.
                foreach ($current as $element) {

Any help would be appreciated, thanks
Title: Re: error when editing payment methods for VirtueMart 4
Post by: StefanSTS on November 10, 2022, 15:56:40 PM
Try the latest VM version here:
https://dev.virtuemart.net/projects/virtuemart/files

That was probably the issue from Joomla 4.1.5 to 4.2.

Stefan
Title: Re: error when editing payment methods for VirtueMart 4
Post by: jamesl-kemet on November 10, 2022, 16:39:19 PM
Thanks, that fixed the issue
Title: Re: error when editing payment methods for VirtueMart 4
Post by: Marion on November 11, 2022, 15:48:53 PM
I've been having exactly the same issue for days now with shipment methods, with Joomla 4.2.3, 4.2.4 and 4.2.5.

Thanks to StefanSTS this is solved now too.  ;D
Title: Re: error when editing payment methods for VirtueMart 4
Post by: StefanSTS on November 14, 2022, 13:22:13 PM
Quote from: Marion on November 11, 2022, 15:48:53 PM
Thanks to StefanSTS this is solved now too.  ;D

All the honor goes to Milbo for fixing it so quickly and the one who reported it first in Dev chat. I am merely a messenger in this case. ;-)

Stefan