VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: vep87895 on September 04, 2019, 09:41:48 AM

Title: [solved] Error updating to higher version than VM 3.4.3.10014
Post by: 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()

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
Title: Re: Error updating to higher version than VM 3.4.3.10014
Post by: jjk on September 04, 2019, 11:30:56 AM
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.
Title: Re: Error updating to higher version than VM 3.4.3.10014
Post by: 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?
Title: Re: Error updating to higher version than VM 3.4.3.10014
Post by: vep87895 on September 04, 2019, 13:12:52 PM
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.
Title: Re: Error updating to higher version than VM 3.4.3.10014
Post by: jjk on September 04, 2019, 15:15:51 PM
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?
Title: Re: Error updating to higher version than VM 3.4.3.10014
Post by: vep87895 on September 04, 2019, 17:13:23 PM
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.
Title: Re: Error updating to higher version than VM 3.4.3.10014
Post by: Milbo on September 04, 2019, 18:18:37 PM
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
Title: Re: Error updating to higher version than VM 3.4.3.10014
Post by: jjk on September 04, 2019, 22:03:54 PM
I'm pretty sure Milbo wanted to write: Please directly use vm3.6.10113
Title: Re: Error updating to higher version than VM 3.4.3.10014
Post by: Milbo on September 04, 2019, 22:27:05 PM
lol, right
Title: Re: Error updating to higher version than VM 3.4.3.10014
Post by: vep87895 on September 05, 2019, 13:02:29 PM
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.
Title: Re: [solved] Error updating to higher version than VM 3.4.3.10014
Post by: Milbo on September 06, 2019, 15:22:44 PM
http://dev.virtuemart.net/attachments/1177/com_virtuemart.3.6.1.10121_package_or_extract.zip

Maybe this new version gets your old plugin alive again. Or maybe the reason is here http://forum.virtuemart.net/index.php?topic=143386.0