VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Channel Digital on September 01, 2017, 18:57:29 PM

Title: Fatal error vmlanguage.php on line 246 on batch email notify
Post by: Channel Digital on September 01, 2017, 18:57:29 PM
Recently updated Joomla 3.7.5 and VM 3.2.4.

500 error occurs in Artio VM Invoice when performing batch order status change with email notifications (works fine if notify customer isn't selected).

Fatal error: Allowed me in /public_html/administrator/components/com_virtuemart/helpers/vmlanguage.php on line 246

That's as much of the error info I get. Line 246 is this - self::$_loaded['com'][$site][] = $name;

Will process 2, maybe 3 orders out of 10 in testing. The memory limits on the server are set pretty high, and this worked fine to process around 50 orders in one go before the update.

Open to ideas as Artio have stated there's not much they can do.
Title: Re: Fatal error vmlanguage.php on line 246 on batch email notify
Post by: Jörgen on September 01, 2017, 22:09:18 PM
Could this have anything with this to do ?
http://forum.virtuemart.net/index.php?topic=138032.msg484750#msg484750 (http://forum.virtuemart.net/index.php?topic=138032.msg484750#msg484750)

regards

Jörgen @ Kreativ Fotografi
Title: Re: Fatal error vmlanguage.php on line 246 on batch email notify
Post by: Channel Digital on September 02, 2017, 09:09:26 AM
You, sir, are a star. Problem solved!
Title: Re: Fatal error vmlanguage.php on line 246 on batch email notify
Post by: Jörgen on September 02, 2017, 10:10:14 AM
Nice to hear  :D
What exactly solved Your problem ?

regards

Jörgen @ Kreativ Fotografi
Title: Re: Fatal error vmlanguage.php on line 246 on batch email notify
Post by: Channel Digital on September 02, 2017, 10:21:42 AM
As per Stan's post:

\administrator\components\com_virtuemart\helpers\vmlanguage.php

line 246 replace:
self::$_loaded['com'][$site][] = $name;

with:
self::$_loaded['com'][$site][$name] = $name;
Title: Re: Fatal error vmlanguage.php on line 246 on batch email notify
Post by: Jörgen on September 02, 2017, 11:09:59 AM
Thank You, good to know.

regards

Jörgen @ Kreativ Fotografi