VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Tryer on January 03, 2020, 21:08:24 PM

Title: Problem with User Registration after VM update
Post by: Tryer on January 03, 2020, 21:08:24 PM
I have just updated to Joomla 3.9.14 with PHP 7.2.25.
Having updated to the current version of VM (as above) I find that users can no longer register on my site (create a new account). When they attemp to do so, they see the following error (I have turned on debug):
Call to a member function get() on null
/home/sites/mysite.co.uk/public_html/components/com_virtuemart/views/user/view.html.php:282
Call stack
#    Function    Location
1    ()    JROOT/components/com_virtuemart/views/user/view.html.php:282
2    VirtuemartViewUser->shopper()    JROOT/components/com_virtuemart/views/user/view.html.php:142
3    VirtuemartViewUser->display()    JROOT/components/com_virtuemart/controllers/user.php:59
4    VirtueMartControllerUser->display()    JROOT/libraries/src/MVC/Controller/BaseController.php:710
5    Joomla\CMS\MVC\Controller\BaseController->execute()    JROOT/components/com_virtuemart/virtuemart.php:120
6    require_once()    JROOT/libraries/src/Component/ComponentHelper.php:402
7    Joomla\CMS\Component\ComponentHelper::executeComponent()    JROOT/libraries/src/Component/ComponentHelper.php:377
8    Joomla\CMS\Component\ComponentHelper::renderComponent()    JROOT/libraries/src/Application/SiteApplication.php:194
9    Joomla\CMS\Application\SiteApplication->dispatch()    JROOT/libraries/src/Application/SiteApplication.php:233
10    Joomla\CMS\Application\SiteApplication->doExecute()    JROOT/libraries/src/Application/CMSApplication.php:196
11    Joomla\CMS\Application\CMSApplication->execute()    JROOT/index.php:49

No errors appear in the site error log.

When clicking on "Forgot your username" users are directed to ../component/users/?view=remind&Itemid=195
When clicking on "Forgot your username" users are directed to ../component/users/?view=reset&Itemid=195
When clicking on "Create an account" users are directed to ../component/virtuemart/user?Itemid=0

If I disable all the VM component/modules/plugins, the characteristics of the error change. Users are then directed to the error 404 page.

Any ideas or suggestions would be very welome.

Thanks
Title: Re: Problem with User Registration after VM update
Post by: GJC Web Design on January 03, 2020, 22:18:18 PM
what version of VM?

appears to be the shopper group list function
Title: Re: Problem with User Registration after VM update
Post by: Tryer on January 04, 2020, 11:22:19 AM
Sorry about the omission. I have updated to VM3.6.10. Am I correct in suspecting this is a bug in the new version?
Title: Re: Problem with User Registration after VM update
Post by: jjk on January 05, 2020, 10:32:33 AM
Maybe this one?
http://dev.virtuemart.net/projects/virtuemart/repository/revisions/10218/diff/trunk/virtuemart/components/com_virtuemart/views/user/view.html.php
Title: Re: Problem with User Registration after VM update
Post by: Tryer on January 05, 2020, 12:32:55 PM
Brilliant! Problem fixed.

Thank you for your assistance.
Title: Re: Problem with User Registration after VM update
Post by: jankoo on February 29, 2020, 16:36:10 PM
hi. i got the same error.
creating the menu item for account maintenance dont solve the issue, because on the "login page" there is a link - "Don't have an account?"

how to get this to work? all of my stores have this issue after latest update..
and will the update cover this issue too?
Title: Re: Problem with User Registration after VM update
Post by: el_gonza on June 29, 2020, 19:16:00 PM
Hello, sorry if I make a wrong statement or something like that, I am new in virtuemart and joomla.

I've applied this patch on my store and the user registration page started to work, but somehow the "register" button dissapeared. Maybe Im looking in the wrong file.

Updating to VirtueMart 3.8.4 didn't fix it either. This is the link to the store www.sdselectronica.com.ar

Maybe someone can help me about this? Or which file I have to change for this to start working again?