PsychoTherapist Posted February 9, 2015 Share Posted February 9, 2015 There is a serious issue with the Register page of Cubecart. If a previous guest customer registers at checkout, all is fine. However, if they instead try to register using the "Register" link at the top of the page, they receive the following error: The following errors were detected: Invalid Username and/or Password If they now try to order again as a Guest Customer, they get the following error and are completely unable to place any further orders: The following errors were detected: That email address is already being used. If they try to Register again, they receive the same "already being used" error, as above. The only way they can unlock their accounts and actually place any further orders after this has occurred, is to use the Recover Password function. This is a pretty major bug, that could potentially turn away customers. I see also that it has been posted on this forum previously here: '?do=embed' frameborder='0' data-embedContent>> BTW, this store was upgraded from version 3 and is otherwise working perfectly, besides this bug. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 9, 2015 Share Posted February 9, 2015 Welcome PsychoTherapist! Glad to see you made it to the forums. Are you running CC5? If so, what is the exact version (admin, Dashboard, Store Overview tab). Or are you running CC6? The developers will want to know more. Quote Link to comment Share on other sites More sharing options...
PsychoTherapist Posted February 9, 2015 Author Share Posted February 9, 2015 Yes, I'm running the latest version - 5.2.16 Was upgraded from version 3 and I've installed no modifications or plugins, just using what came with it. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 9, 2015 Share Posted February 9, 2015 The following is for CC6, but since the CC6 codebase is built from the CC5 codebase, these edits may work: https://github.com/cubecart/v6/commit/9ec9ca77092ebfdb0b5a4dc42416728a58f632e3 Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 9, 2015 Share Posted February 9, 2015 My initial test says, no, it didn't make a difference. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 9, 2015 Share Posted February 9, 2015 Well, that's because the customer I was experimenting with has a status of 'disabled'. Such a customer will always fail to 'authenticate'. Making another test. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 10, 2015 Share Posted February 10, 2015 This is what I did, but testing is required to make sure nothing else got broke. In /classes/user.class.php, near line 704: Was: if($existing[0]['type']==2) { $_POST['type'] = 1; $GLOBALS['db']->update('CubeCart_customer', $_POST, array('email' => strtolower($_POST['email']))); $insert = $existing[0]['customer_id']; Now: if($existing[0]['type']==2) { $_POST['type'] = 1; $_POST['new_password'] = 1; $GLOBALS['db']->update('CubeCart_customer', $_POST, array('email' => strtolower($_POST['email']))); $insert = $existing[0]['customer_id']; Quote Link to comment Share on other sites More sharing options...
PsychoTherapist Posted February 10, 2015 Author Share Posted February 10, 2015 I've just tested it and it seems to be working. Past guest customers can now use the Register page without being locked out and registration at checkout is still working fine as before. New customers are still able to register via both methods, as before. Thanks. Just tested and it seems to be working. Previous guest customers can now use the register page, without being locked out. Registration at checkout is still working fine as before and new customers can still register ok by either method. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.