News:

Support the VirtueMart project and become a member

Main Menu

subtotal index missing/ no invoice generated

Started by marcel63, November 26, 2016, 13:03:06 PM

Previous topic - Next topic

marcel63

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

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
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

GJC Web Design

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

marcel63

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

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
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

marcel63

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.