[solved] Error updating to higher version than VM 3.4.3.10014

Started by vep87895, September 04, 2019, 09:41:48 AM

Previous topic - Next topic

vep87895

I got some weird problem with one of my websites which is running vm 3.4.0, if I try to update to a higher version than 3.4.3.10014 it throws me an error when installing the vm aio part, the error is:
Call to undefined method plgVmPaymentStandard::addVarsToPushCore()

Something must have changed between version 3.4.3.10014 and 3.4.3.10020 that triggers this error, that's the only clue I got so far. I've tried every version from 3.4.3.10020 to the latest 3.6.0 and they all generate this error.

I'm running Joomla! 3.9.11 / PHP 7.3.8 / MariaDB 10.1.41

jjk

I can't reproduce that when I update a Joomla 3.9.11/VirtueMart 3.4.0 installation. In my case the update works fine. (Only difference is that I run it on PHP 7.1.x). Do you have any restrictions set in your published standard payment method, like for example minimum and/or maximum amount, countries, etc?

Check the tmp folder on your server, and remove all files there, which might be leftovers from unsuccessful VM updates, before you try to install the AIO again.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

GJC Web Design

the function addVarsToPushCore() is present in VM3.6.0 vmpsplugin.php ...  are u sure u are installing the core 3.6.0 then the 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

vep87895

#3
Yes I have 3 published standard payments all with country restrictions, no amount restrictions though.

I removed all files in the tmp folder and also tried with PHP 7.1.31 but no luck still the same error.

Quote from: GJC Web Design on September 04, 2019, 13:06:48 PM
the function addVarsToPushCore() is present in VM3.6.0 vmpsplugin.php ...  are u sure u are installing the core 3.6.0 then the AIO?

Yes the core first and then the AIO.

edit: I should also mention that I have two more vm stores on the same server where the update to 3.6.0 worked fine, the main difference between those two and the one that gets the error is that they have only one language and one country set.

jjk

Quote from: vep87895 on September 04, 2019, 13:12:52 PM
the main difference between those two and the one that gets the error is that they have only one language and one country set.
Just for information: my successful update test from VM 3.4.0 was with 2 languages and 3 countries selected in the standard payment plugin.
Does the system show a more detailed error information if you set Joomla debug to 'maximum' or 'develpment' before you try to update the AIO?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

vep87895

It does not show any more error information when I set reporting to maximum before updating.

I also tried deleting all the three standard payment methods (before updating) but no luck there either.

Milbo

Quote from: vep87895 on September 04, 2019, 09:41:48 AM
I got some weird problem with one of my websites which is running vm 3.4.0, if I try to update to a higher version than 3.4.3.10014 it throws me an error when installing the vm aio part, the error is:
Call to undefined method plgVmPaymentStandard::addVarsToPushCore()


I hope you know, that you can usually always directly update to the LAST most recent version? Please directly use vm3.6.10013
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jjk

I'm pretty sure Milbo wanted to write: Please directly use vm3.6.10113
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

vep87895

I finally found what was causing the error, it was an old outdated version of the plugin VP Payment by Shipment (1.2), when disabled everything works as it should. The reason I didn't update this plugin earlier to 2.0 was that my credit card plugin (Dibs) only worked with version 1.2, so now I only have to figure out a solution to that.

Quote from: Milbo on September 04, 2019, 18:18:37 PM
I hope you know, that you can usually always directly update to the LAST most recent version? Please directly use vm3.6.10013

Yes I know, that's what I was doing at first directly from 3.4 to 3.6 but when I got the error I started to try every vm version in between to maybe find a clue of what was going on. Anyway, thanks for the help guys.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/