VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Greg-Baud on January 25, 2015, 13:43:26 PM

Title: Cannot edit article with stockable items after upgrading VM2 -> VM3
Post by: Greg-Baud on January 25, 2015, 13:43:26 PM
I upgraded VirtueMart (in a test environment) from VM2 to VM3. As I use stockable subitems, I ran the tool "Remove old vm2 inherited customfields, as described in
http://docs.virtuemart.net/tutorials/installation-migration-upgrade/198-upgrade-virtuemart-2-to-virtuemart-3.html

Now when I try to edit an article which used to have stockable items, I get the following error message:
VirtueMart 3.0.2

Warning: Invalid argument supplied for foreach() in /home/greg-baud.nl/public_html/Test3.3/administrator/components/com_virtuemart/plugins/vmcustomplugin.php on line 100

Fatal error: Call to undefined method JUtility::getToken() in /home/greg-baud.nl/public_html/Test3.3/plugins/vmcustom/stockable/stockable.php on line 134
Title: Re: Cannot edit article with stockable items after upgrading VM2 -> VM3
Post by: GJC Web Design on January 25, 2015, 14:48:33 PM
well - first - /plugins/vmcustom/stockable/stockable.php  i.e the VM2 stockable plugin isn't used and doesn't work in VM3
it should at the very least be unpublished .. uninstalled would be better
balai has released a beta new one for VM3 - search forum..

but I have no idea if it will take the VM custom settings - I suspect not

read on here our Max advises to do stockable children - but you can't have multiple options as I understand it
Title: Re: Cannot edit article with stockable items after upgrading VM2 -> VM3
Post by: Greg-Baud on January 25, 2015, 16:33:01 PM
I could not uninstall that plugin, but I was able to disable it.
that worked, I can now edit the articles again.
thanks for helping out