VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: joggel on March 25, 2020, 18:38:52 PM

Title: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: joggel on March 25, 2020, 18:38:52 PM
after updating to joomla 3.9.16 / vm 3.6.10 i get the following error when I try to edit adress in the shoppinc cart.

Call to undefined method VirtueMartCart::setupAddressFieldsForCart()

I already tried updating template as described  here http://forum.virtuemart.net/index.php?topic=141196.0   - with no success..

can anybody help?
Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: joggel on March 26, 2020, 11:37:26 AM
and here is my call stack:

Call stack
#   Function   Location
1   ()   JROOT/components/com_virtuemart/views/user/view.html.php:110
2   VirtuemartViewUser->display()   JROOT/components/com_virtuemart/controllers/user.php:102
3   VirtueMartControllerUser->editAddressCart()   JROOT/libraries/src/MVC/Controller/BaseController.php:710
4   Joomla\CMS\MVC\Controller\BaseController->execute()   JROOT/components/com_virtuemart/virtuemart.php:120
5   require_once()   JROOT/libraries/src/Component/ComponentHelper.php:402
6   Joomla\CMS\Component\ComponentHelper::executeComponent()   JROOT/libraries/src/Component/ComponentHelper.php:377
7   Joomla\CMS\Component\ComponentHelper::renderComponent()   JROOT/libraries/src/Application/SiteApplication.php:194
8   Joomla\CMS\Application\SiteApplication->dispatch()   JROOT/libraries/src/Application/SiteApplication.php:233
9   Joomla\CMS\Application\SiteApplication->doExecute()   JROOT/libraries/src/Application/CMSApplication.php:196
10   Joomla\CMS\Application\CMSApplication->execute()   JROOT/index.php:49
Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: GJC Web Design on March 26, 2020, 11:41:45 AM
Is this to do with no menu set for shopper  VirtueMart » Account Maintenance?
Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: joggel on March 26, 2020, 12:28:36 PM
I can't find such an option in VM Configuration? Where is it?
Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: GJC Web Design on March 26, 2020, 12:33:33 PM
Joomla menus -> VM
Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: joggel on March 26, 2020, 15:42:30 PM
I tried adding a separate menu with no success - still got the same error..
Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: GJC Web Design on March 26, 2020, 17:13:55 PM
In com_virtuemart.3.6.10.10211  the function setupAddressFieldsForCart() exists in the cart helper and is called correctly form /views/user/view.html.php line 110

so u need to do a bit of code digging and research in your install
Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: Studio 42 on March 27, 2020, 09:17:47 AM
In last betas, if you dont set a Joomla menu link to virtuemart user view, he crash.
Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: AH on March 27, 2020, 09:37:38 AM
Please can you explain your test studio42.

I tested without any user menu links V3.6.11++

It does not crash when I edit/save shipping address in cart

Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: Studio 42 on March 27, 2020, 09:51:10 AM
i had the problem with 3.6.10.1410
because
$this->params->get('showUserShopperGrp',1);
Params are not set, if you have no menu.
I dont know if this is the case with 3.6.11, but he use 3.6.10
Quote from: joggel on March 25, 2020, 18:38:52 PM
after updating to joomla 3.9.16 / vm 3.6.10 i get the following error when I try to edit adress in the shoppinc cart.

Call to undefined method VirtueMartCart::setupAddressFieldsForCart()

I already tried updating template as described  here http://forum.virtuemart.net/index.php?topic=141196.0   - with no success..

can anybody help?
Then it's possible he use a lower release as me.
Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: AH on March 27, 2020, 13:47:25 PM
Thanks for the clarification
QuoteIn last betas

So not the last betas - but some other betas that have now been adjusted so the problem is not occuring
Title: Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
Post by: GJC Web Design on March 27, 2020, 15:22:44 PM
QuoteIs this to do with no menu set for shopper  VirtueMart » Account Maintenance?

but he's saying

QuoteI tried adding a separate menu with no success - still got the same error..