Error when user create an account user the membership plugin

By Dave - November 22, 2023

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, 2023

Thanks Dave, that's fixed it.

Jeff