Author Topic: PHP error after update to VM 3.6.10  (Read 1113 times)

Sturmhorst

  • Beginner
  • *
  • Posts: 2
  • A beginner
PHP error after update to VM 3.6.10
« 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?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9656
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: PHP error after update to VM 3.6.10
« Reply #1 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?
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

Sturmhorst

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: PHP error after update to VM 3.6.10
« Reply #2 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9656
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: PHP error after update to VM 3.6.10
« Reply #3 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
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

yaksich

  • Beginner
  • *
  • Posts: 2
Re: PHP error after update to VM 3.6.10
« Reply #4 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9656
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: PHP error after update to VM 3.6.10
« Reply #5 on: March 23, 2020, 23:41:34 pm »
what is plgVmPaymentPaypalExt ?

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

yaksich

  • Beginner
  • *
  • Posts: 2
Re: PHP error after update to VM 3.6.10
« Reply #6 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.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2757
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: PHP error after update to VM 3.6.10
« Reply #7 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)

yaksichnick

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: PHP error after update to VM 3.6.10
« Reply #8 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

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2757
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: PHP error after update to VM 3.6.10
« Reply #9 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)