Author Topic: subtotal index missing/ no invoice generated  (Read 1297 times)

marcel63

  • Beginner
  • *
  • Posts: 5
subtotal index missing/ no invoice generated
« on: November 26, 2016, 13:03:06 pm »
Good afternoon,

We use joomla 3.6.2 with vm 3.0.18 and OPC 2.0.319.300916
We upgraded all tables with vm migrate from VM 2.0 and also ran the table update tools.

70 % of our customers do not receive an invoice or email on ordering so I contacted the provider if the timeout could be increased in php.ini.

He said he first wanted to see the php errors generated upon ordering because timeout is set on 90 seconds and that was standard setting for all sites.

Now there are a lot of errors in the php error log. So it is strange the system works sometimes. The one that I suspect is:

[26-Nov-2016 07:22:50 Europe/Amsterdam] PHP Notice:  Undefined index: subtotal in D:\www\boekoe.nu\www\components\com_virtuemart\helpers\cart.php on line 1770
[26-Nov-2016 07:22:50 Europe/Amsterdam] PHP Notice:  Undefined index: subtotal in D:\www\boekoe.nu\www\components\com_virtuemart\helpers\cart.php on line 1773
[26-Nov-2016 07:22:50 Europe/Amsterdam] PHP Notice:  Undefined index: subtotal_tax_amount in D:\www\boekoe.nu\www\components\com_virtuemart\helpers\cart.php on line 1774
[26-Nov-2016 07:22:50 Europe/Amsterdam] PHP Notice:  Undefined index: subtotal_discount in D:\www\boekoe.nu\www\components\com_virtuemart\helpers\cart.php on line 1775
[26-Nov-2016 07:22:50 Europe/Amsterdam] PHP Notice:  Undefined index: subtotal_with_tax in D:\www\boekoe.nu\www\components\com_virtuemart\helpers\cart.php on line 1776
[26-Nov-2016 07:22:50 Europe/Amsterdam] PHP Notice:  Undefined index: subtotal in D:\www\boekoe.nu\www\components\com_virtuemart\helpers\cart.php on line 1770
[26-Nov-2016 07:22:50 Europe/Amsterdam] PHP Notice:  Undefined index: subtotal in D:\www\boekoe.nu\www\components\com_virtuemart\helpers\cart.php on line 1773

but there also is

[25-Nov-2016 20:30:33 Europe/Amsterdam] PHP Notice:  Use of undefined constant task - assumed 'task' in D:\www\boekoe.nu\www\plugins\system\kc_vm_registration_redirect\kc_vm_registration_redirect.php on line 57
[25-Nov-2016 21:46:04 Europe/Amsterdam] PHP Notice:  Use of undefined constant task - assumed 'task' in D:\www\boekoe.nu\www\plugins\system\kc_vm_registration_redirect\kc_vm_registration_redirect.php on line 57
[26-Nov-2016 00:03:23 Europe/Amsterdam] PHP Notice:  Use of undefined constant task - assumed 'task' in D:\www\boekoe.nu\www\plugins\system\kc_vm_registration_redirect\kc_vm_registration_redirect.php on line 57

and

[26-Nov-2016 11:35:34 Europe/Amsterdam] PHP Notice:  Trying to get property of non-object in D:\www\boekoe.nu\www\components\com_virtuemart\views\invoice\view.html.php on line 254
[26-Nov-2016 11:35:34 Europe/Amsterdam] PHP Notice:  Trying to get property of non-object in D:\www\boekoe.nu\www\components\com_virtuemart\views\invoice\view.html.php on line 254
[26-Nov-2016 11:35:34 Europe/Amsterdam] PHP Notice:  Trying to get property of non-object in D:\www\boekoe.nu\www\components\com_virtuemart\views\invoice\view.html.php on line 254
[26-Nov-2016 11:35:34 Europe/Amsterdam] PHP Notice:  Trying to get property of non-object in D:\www\boekoe.nu\www\components\com_virtuemart\views\invoice\view.html.php on line 254
[26-Nov-2016 11:35:34 Europe/Amsterdam] PHP Notice:  Trying to get property of non-object in D:\www\boekoe.nu\www\components\com_virtuemart\views\invoice\view.html.php on line 254
[26-Nov-2016 11:35:34 Europe/Amsterdam] PHP Notice:  Trying to get property of non-object in D:\www\boekoe.nu\www\components\com_virtuemart\views\invoice\view.html.php on line 254
[26-Nov-2016 11:35:34 Europe/Amsterdam] PHP Notice:  Trying to get property of non-object in D:\www\boekoe.nu\www\components\com_virtuemart\views\invoice\view.html.php on line 254
[26-Nov-2016 11:35:34 Europe/Amsterdam] PHP Notice:  Trying to get property of non-object in D:\www\boekoe.nu\www\components\com_virtuemart\views\invoice\view.html.php on line 254
[26-Nov-2016 11:35:34 Europe/Amsterdam] PHP Notice:  Trying to get property of non-object in D:\www\boekoe.nu\www\components\com_virtuemart\views\invoice\view.html.php on line 254


Anybody got a clue to this  ?. Many thanks marcel


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27565
  • Always on vacation
    • Jenkin Hill Internet
Re: subtotal index missing/ no invoice generated
« Reply #1 on: November 26, 2016, 13:24:54 pm »
They are only PHP Notices which should not affect function. Turn down the level of error reporting in your php.ini - http://php.net/manual/en/function.error-reporting.php

For email not sending check "Default Order Status to send email....." settings in VM Configuration/Emails  and make sure that the payment plugin is returning the correct order status after payment, ie check orders to show that a Confirmed status is present.

And you must update to Joomla 3.6.4!!
See
http://www.theregister.co.uk/2016/11/02/hurried_crims_target_30000_sites_to_pop_unpatched_joomla/
https://developer.joomla.org/security-centre/661-20161003-core-account-modifications.html
http://thehackernews.com/2016/10/joomla-security-update.html

Check if you have new/extra Joomla users with administrator permissions - if so hackers have already paid you a visit!
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 VM 3.6.8.10197 on Joomla 3.9.13 PHP 7.0.33

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9176
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: subtotal index missing/ no invoice generated
« Reply #2 on: November 26, 2016, 17:15:05 pm »
also do some basic testing with flipping the admin status of orders to generate notification emails and see if there is a problem

e.g. if u set to auto generate the pdf invoice this may be failing ( often on images e.g. shipping logos) which will stop the email
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

marcel63

  • Beginner
  • *
  • Posts: 5
Re: subtotal index missing/ no invoice generated
« Reply #3 on: November 26, 2016, 19:03:35 pm »
Ok, thanks for the tips so I will check it out. First the security update results. Joomla stated it was up to date !

After cleaning the cache Joomla still refused to update in every possible way stating that the archive was corrupt. Had to use filezilla to install the update.

There were 3 other administrators in the user database. So this is all getting difficult to manage......

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27565
  • Always on vacation
    • Jenkin Hill Internet
Re: subtotal index missing/ no invoice generated
« Reply #4 on: November 26, 2016, 23:44:15 pm »
If you have new adminsitrators then you have no idea what they may have done, and there are reports that some hackers could remove themselves from the user list so you would not know that they have been there.  Hackers can also make changes to prevent software updates!

If you don't know how to check a potentially hacked site then go to https://myjoomla.com/ and request a file scan - the first check is free.
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 VM 3.6.8.10197 on Joomla 3.9.13 PHP 7.0.33

marcel63

  • Beginner
  • *
  • Posts: 5
Re: subtotal index missing/ no invoice generated
« Reply #5 on: November 27, 2016, 11:17:30 am »
OK, I am also updating another virtuemart side and found the cause why
-  Joomla is not reporting that an update is available. (Only after cleaning cache)
- Joomla states that the 6.2.4 update is corrupted.

I used a complete archive file from virtuemart with joomla included: "VirtueMart3.0.18_Joomla_3.6.2-Stable-Full_Package"

if you install this one than the update process is immediately corrupted causing the above problems.

I am going to try a complete bottom up install and change all passwords. This is a real frustrating waste of time.