VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Sturmhorst on February 25, 2020, 09:08:48 AM

Title: PHP error after update to VM 3.6.10
Post by: Sturmhorst on February 25, 2020, 09:08:48 AM
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?
Title: Re: PHP error after update to VM 3.6.10
Post by: GJC Web Design on February 25, 2020, 12:40:23 PM
is your components\com_virtuemart\sublayouts\login.php over ridden in your template and up to date?

have u updated your AIO?
Title: Re: PHP error after update to VM 3.6.10
Post by: Sturmhorst on February 26, 2020, 14:28:06 PM
Many thanks for the indicative questions. I was not aware that VM AIO needs to be updated separately. Now everything seems fine.
Title: Re: PHP error after update to VM 3.6.10
Post by: GJC Web Design on February 26, 2020, 15:09:39 PM
always -- they are always released together and you should check whether the TCPDF needs updating as well
Title: Re: PHP error after update to VM 3.6.10
Post by: yaksich on March 23, 2020, 16:27:45 PM
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
Title: Re: PHP error after update to VM 3.6.10
Post by: GJC Web Design on March 23, 2020, 23:41:34 PM
what is plgVmPaymentPaypalExt ?

3rd party paypal ext? I don't recognise that class
Title: Re: PHP error after update to VM 3.6.10
Post by: yaksich on March 24, 2020, 01:12:03 AM
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.
Title: Re: PHP error after update to VM 3.6.10
Post by: Jörgen on March 24, 2020, 01:22:19 AM
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
Title: Re: PHP error after update to VM 3.6.10
Post by: yaksichnick on March 24, 2020, 03:50:05 AM
Thanks you guys. It was VM Paypal Extended plugin that was causing trouble. Uninstalled it and everything is ok now.
Cheers
Title: Re: PHP error after update to VM 3.6.10
Post by: Jörgen on March 24, 2020, 11:41:49 AM
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