Error when user create an account user the membership plugin

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: November 22   (RSS)

By Dave - November 22

Hi Jeff, 

That looks like a bug, can you try this fix?

In /cmsb/plugins/websiteMembership/wsm_codeGenerator.php around line 346, replace this line: 

$colsToValues['username'] = $_REQUEST['username'] ?: $_REQUEST['email']; // email is saved as username if usernames not supported

With this line: 

$colsToValues['username'] = $useUsernames ? $_REQUEST['username'] : $_REQUEST['email'];

And you can also apply that fix to your generated account create page. 

Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com

By JeffC - November 22

Thanks Dave, that's fixed it.

Jeff