News:

Support the VirtueMart project and become a member

Main Menu

PHP error after update to VM 3.6.10

Started by Sturmhorst, February 25, 2020, 09:08:48 AM

Previous topic - Next topic

Sturmhorst

Hej folks, on a Joomla page (Joomla 3.9.15, VM 3.6.10, PHP 7.2.10) regardless of the selected payment method this error message appears after checkout:
Argument 1 passed to plgVmPaymentPaypal::plgVmDisplayLogin() must be an instance of VirtuemartViewUser, instance of VmView given, called in /../libraries/joomla/event/event.php on line 70.

The order is listed in the order overview in the backend. The error message also appears when logging into the user account. I have tried it with Vm 3.4, but without success. Does anybody here know what to do?

GJC Web Design

is your components\com_virtuemart\sublayouts\login.php over ridden in your template and up to date?

have u updated your AIO?
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

Sturmhorst

Many thanks for the indicative questions. I was not aware that VM AIO needs to be updated separately. Now everything seems fine.

GJC Web Design

always -- they are always released together and you should check whether the TCPDF needs updating as well
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

yaksich

#4
Hello
I have updated Virtuemart (also AIO) to the latest release. However, I am getting this error message when clicking on Sign Up or anything related to checkout:
Error
Argument 1 passed to plgVmPaymentPaypalExt::plgVmDisplayLogin() must be an instance of VirtuemartViewUser, instance of VmView given, called in /home/topqual2/public_html/libraries/joomla/event/event.php on line 70

No error when I am logged in (as admin).
Is this a result of miss-configuration or something else?
Many thanks for any assistance on this matter.
Nick

GJC Web Design

what is plgVmPaymentPaypalExt ?

3rd party paypal ext? I don't recognise that class
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

yaksich

Yes, that's right. It is a third party Paypal plugin, but it happens regardless of whether the plugin is activated or not. When standard VM payment is active, it also happens.

Jörgen

Is there a library or system plugin for this paymentoption? Something either cached or active looks for this. Plugin or only payment option deactivated ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

yaksichnick

Thanks you guys. It was VM Paypal Extended plugin that was causing trouble. Uninstalled it and everything is ok now.
Cheers

Jörgen

Great to hear.

Just a note, ALL payment plugins listen to the triggers from VM. It is the responsibility of the plugin to check the supplied ID and not to act on a call not meant for the actual plugin. This is not the case for some badly written payment options. So if You suspect payment method issues make sure that all plugins that are not being used are deactivated on the plugin level, not only deactivated in VM payment methods, just to make sure nothing interferes.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.