Author Topic: Strange errors in invoice emails  (Read 4357 times)

hekg

  • Beginner
  • *
  • Posts: 3
  • A beginner
Strange errors in invoice emails
« on: June 16, 2015, 19:30:21 pm »
Hello, I have an older version of virtuemart 1.1.4 and customer invoices are showing the following errors.   

Strict Standards: Non-static method vm_ps_vendor::formatted_store_address() should not be called statically, assuming $this from incompatible context in /public_html/components/com_virtuemart/themes/default/templates/order_emails/confirmation_email.tpl.php on line 23

Country field:  Strict Standards: Non-static method JFactory::getDBO() should not be called statically, assuming $this from incompatible context in /public_html/administrator/components/com_virtuemart/classes/ps_database.php on line 44

Product SKU field:   Strict Standards: Non-static method JFactory::getDBO() should not be called statically, assuming $this from incompatible context in /public_html/administrator/components/com_virtuemart/classes/ps_database.php on line 44

I have error reporting off in system settings.   Any suggestion on how I can fix this please?

Thank you

hekg

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: Strange errors in invoice emails
« Reply #1 on: June 17, 2015, 17:54:34 pm »
Any help please?  :-\

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28399
  • Always on vacation
    • Jenkin Hill Internet
Re: Strange errors in invoice emails
« Reply #2 on: June 17, 2015, 23:22:01 pm »
The heading for this forum includes VirtueMart 1.1.x [ Old version - no longer supported ] for a reason.

See this announcement from 3 years ago, with particular attention to the paragraph in purple. 
http://forum.virtuemart.net/index.php?topic=106865.0
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 4.0.10 10767  J 3.10.11 PHP 7.4.30

hekg

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: Strange errors in invoice emails
« Reply #3 on: June 18, 2015, 16:20:06 pm »
Yes I can read just fine. You had the time to reply but not to offer any help in that reply?  Did it ever occur to you that somebody might have had this issue and an answer for somebody on an old system? Close the boards then.  SMH

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28399
  • Always on vacation
    • Jenkin Hill Internet
Re: Strange errors in invoice emails
« Reply #4 on: June 20, 2015, 11:23:31 am »
The paragraph mentioned in the announcement suggested turning off error reporting in php.ini - realistically this is the only option. http://www.w3schools.com/php/func_error_reporting.asp

Otherwise move the site to a host still using an old PHP version? You could rewrite the VM code, but then other parts will error when PHP is updated again.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 4.0.10 10767  J 3.10.11 PHP 7.4.30