Author Topic: error when editing payment methods for VirtueMart 4  (Read 280 times)

jamesl-kemet

  • Beginner
  • *
  • Posts: 18
  • A beginner
error when editing payment methods for VirtueMart 4
« 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

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 585
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: error when editing payment methods for VirtueMart 4
« Reply #1 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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

jamesl-kemet

  • Beginner
  • *
  • Posts: 18
  • A beginner
Re: error when editing payment methods for VirtueMart 4
« Reply #2 on: November 10, 2022, 16:39:19 pm »
Thanks, that fixed the issue

Marion

  • Beginner
  • *
  • Posts: 20
  • A beginner
Re: error when editing payment methods for VirtueMart 4
« Reply #3 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

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 585
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: error when editing payment methods for VirtueMart 4
« Reply #4 on: November 14, 2022, 13:22:13 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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.