VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: biltong on July 05, 2017, 17:19:01 PM

Title: Update from 3.0.18 to 3.2.2 error - Call to undefined method VmTable...
Post by: biltong on July 05, 2017, 17:19:01 PM
Hi,

I got an error updating VM from 3.0.18 to 3.2.2 using the Joomla Extension Installer method.

The error message is "Call to undefined method VmTable::checkTableExists()"

This occurred on installing the update file 'com_virtuemart.3.2.2.zip' - see attached screenshot of the error message.

Using Joomla 3.6.5, to be updated as soon as VM is updated.

Any ideas please?
Title: Re: Update from 3.0.18 to 3.2.2 error - Call to undefined method VmTable...
Post by: biltong on July 05, 2017, 17:29:27 PM
I tried the installation again and it worked this time, so hoping everything is alright.

Screenshot of installation success page attached.
Title: Re: Update from 3.0.18 to 3.2.2 error - Call to undefined method VmTable...
Post by: Milbo on July 05, 2017, 21:11:47 PM
Will be okey then. This happens, when a "system" plugin loads the vmconfig, before the installer started the vm config, and so the wrong paths are set... to the old installation... So the installation misses new functions of vm. Installing it over again is the correct way.
Title: Re: Update from 3.0.18 to 3.2.2 error - Call to undefined method VmTable...
Post by: biltong on July 05, 2017, 22:21:00 PM
Thanks Milbo - glad to know nothing has gone wrong. Everything seems to be working fine now!
Title: Re: Update from 3.0.18 to 3.2.2 error - Call to undefined method VmTable...
Post by: maintanosgr on January 23, 2018, 18:50:25 PM
Quote from: Milbo on July 05, 2017, 21:11:47 PM
Will be okey then. This happens, when a "system" plugin loads the vmconfig, before the installer started the vm config, and so the wrong paths are set... to the old installation... So the installation misses new functions of vm. Installing it over again is the correct way.

Hi,

sorry for resurrecting a dead thread. However I just faced the same situation but not after an upgrade. We just installed a onepage checkout plugin and we get the same error after submitting the order and getting redirected to success page. For various circumstances we can't reinstall virtuemart to fix it or upgrade it as suggested in this thread.

Is it possible to manually fix this issue?

Best regards,

Title: Re: Update from 3.0.18 to 3.2.2 error - Call to undefined method VmTable...
Post by: maintanosgr on January 23, 2018, 19:23:46 PM
Never mind I'm answering my own question. CheckTableExists was added in a later version as I noticed on the repo. I just added it to the VMTable class and it was fixed.