New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customers get whoops.... after registering #180
Comments
I had used the code from #178 as a reference of code to specifically target the registration url and ignore it. Its probably a better way of fixing this issue but I was under alot of pressure to quickly fix the issue. I'll try and find it and post it here as a fix |
Can you provide a more detailed description/guide on how you solved the issue? Much appreciated! |
@mastrip2 can you provide us some code how to fix the issue? |
I downloaded the Batao.zip code from issue #178 . Then I browsed to the Plugin/Frontend/BitExpert/ForceCustomerLogin/Controller and edited the LoginCheck.php file. Inside the afterExcute function I added a way to check the current url and see if it was the url I observed to be for creating users. If it was I overrode the default way the extension redirected the user causing the error. Below is the code that im currently using. You just have to fix the namespace since I used a different one then the original. `
Theres probably a better way of doing this but I kind of need a fix a bit quickly and I didnt see anything in the original code that explained what was causing this |
@shochdoerfer @mastrip2 I can add an extended solution as provided for the password reset handling we recently fixed (see https://github.com/bitExpert/magento2-force-login/blob/master/Controller/LoginCheck.php#L148 and https://github.com/bitExpert/magento2-force-login/blob/master/Controller/PasswordResetHelper.php). Maybe some hook / event to loosely couple the logic and allow customized logic to be attached. |
@websharp sure, if you have the time to take a look, go ahead. Not sure if we need to make the logic customizable. |
This issue is still a thing, after registration we get redirect to createpost url as a GET. |
You could redirect to the |
Same here |
@shochdoerfer Sorry for the delay, I provided the suggested fix in #186 |
|
@mastrip2 @mustafaeyvazvaimo @davidwindell we added some fixes to the master, do you mind testing your issue, if everything works fine now or report any new issue occured? |
Seems ok to me. Thanks for the update. |
I am still getting this issue in 4.1.0 unfortunately, any ideas why this may be? |
Has anyone had any issues with customers getting the "whoops, our bad..." page not found error after registering for a account? It seems like the redirect that is done by default from magento isnt executing when the extension is enabled. If I turn it off the registering works.
Magento ver. 2.3.3 CE
Force Login Module Version : 4.0.2
Third party modules :
Magezon_PageBuilder
Mageplaza_CustomerApproval
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: