VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: stawebnice on June 04, 2020, 09:36:29 AM

Title: Call to undefined method VmConfig::isSiteByApp() after update to VM 3.8.2
Post by: stawebnice on June 04, 2020, 09:36:29 AM
Hi,

after updating VM from 3.6.10 to 3.8.2 I always get white screen with this error:
Call to undefined method VmConfig::isSiteByApp()

Virtuemart gets updated and seems to work then

it happened on all of 10 eshops I have already updated.

Any idea why is it happening?
Title: Re: Call to undefined method VmConfig::isSiteByApp() after update to VM 3.8.2
Post by: pinochico on June 04, 2020, 16:53:50 PM
It is definitely not possible to recognize them from this message.

Call Petro please :)
Title: Re: Call to undefined method VmConfig::isSiteByApp() after update to VM 3.8.2
Post by: Milbo on June 15, 2020, 21:09:56 PM
When you install Virtuemart, there is always a note about the used path. Something like

Used source path /home/stawebnice/public_html

So when this points to the old vm files, then there is somehow a problem for the vm installer to find the right path. This usually happens, when another plugin (usually a system or router plugin) initialises the VmConfig on its own, then all the ClassLoader paths point to the old vm.

In this case you shoud just install VM again over the old installation. Else you have new files, but old db setup.