VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: grower on February 27, 2012, 23:43:02 PM

Title: update -> VM2.02 ->Fatal error frontent website
Post by: grower on February 27, 2012, 23:43:02 PM
Currently working on Joomla 1.7.4 Local (xampp) to prepare website

I updated  today VM2 to VM2.02 and get the following message when I try to open the website (locallly)

Fatal error: Call to undefined method VmModel::getModel() in C:\xampp\htdocs\AGH\modules\mod_virtuemart_category\mod_virtuemart_category.php on line 31

If this problem occurs is it possible to undo the installation, as I want to lauch the websit in a couple of days. Before this update everythinmg worked fine.

Thanks
Title: Re: update -> VM2.02 ->Fatal error frontent website
Post by: Milbo on February 28, 2012, 13:55:45 PM
Thanks, I do not understand atm how it happens, but explains also some errors for others.
Title: Re: update -> VM2.02 ->Fatal error frontent website
Post by: Milbo on February 28, 2012, 14:08:35 PM
Please try this file, replace the file in \modules\mod_virtuemart_product

[attachment cleanup by admin]
Title: Re: update -> VM2.02 ->Fatal error frontent website
Post by: grower on February 28, 2012, 15:28:46 PM
Tried the replacement file (after renaming it to php). No difference. But this file is in mod_virtuemart_prod. The error message is calling for a undefined method in  mod_virtuemart_category
Title: Re: update -> VM2.02 ->Fatal error frontent website
Post by: Milbo on February 29, 2012, 01:05:49 AM
lol, okey, but I think I added a fix for all modules, it is in the svn. Please try that. Else I must spam the forum with files, lol.
Title: Re: update -> VM2.02 ->Fatal error frontent website
Post by: grower on February 29, 2012, 16:53:17 PM
Quoteit is in the svn.

Can you please explain what you mean with this?
Title: Re: update -> VM2.02 ->Fatal error frontent website
Post by: svetlyi85 on March 05, 2012, 09:10:19 AM
You must upgrade both components: com_virtuemart and com_virtuemart_ext_aio. They should be the same version. I have these components after the upgrade everything worked.
Title: Re: update -> VM2.02 ->Fatal error frontent website
Post by: leFlea on April 18, 2012, 08:47:06 AM
Until someone gives a permanent fix, I reverted to the old code:
Just replace line 31 with: $categoryModel = new VirtueMartModelCategory();