Author Topic: Fatal error vmlanguage.php on line 246 on batch email notify  (Read 170 times)

ChannelDigital

  • Beginner
  • *
  • Posts: 7
Fatal error vmlanguage.php on line 246 on batch email notify
« 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.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1022
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: Fatal error vmlanguage.php on line 246 on batch email notify
« Reply #1 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

regards

Jörgen @ Kreativ Fotografi
Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)

ChannelDigital

  • Beginner
  • *
  • Posts: 7
Re: Fatal error vmlanguage.php on line 246 on batch email notify
« Reply #2 on: September 02, 2017, 09:09:26 am »
You, sir, are a star. Problem solved!

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1022
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: Fatal error vmlanguage.php on line 246 on batch email notify
« Reply #3 on: September 02, 2017, 10:10:14 am »
Nice to hear  :D
What exactly solved Your problem ?

regards

Jörgen @ Kreativ Fotografi
Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)

ChannelDigital

  • Beginner
  • *
  • Posts: 7
Re: Fatal error vmlanguage.php on line 246 on batch email notify
« Reply #4 on: September 02, 2017, 10:21:42 am »
As per Stan's post:

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

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

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1022
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: Fatal error vmlanguage.php on line 246 on batch email notify
« Reply #5 on: September 02, 2017, 11:09:59 am »
Thank You, good to know.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)