Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upReset password throws error since 2.2.6 #18256
Comments
This comment has been minimized.
This comment has been minimized.
Hi @edwinbos. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @edwinbos do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
This comment has been minimized.
This comment has been minimized.
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
This comment has been minimized.
This comment has been minimized.
Hi @edwinbos I'm not able to reproduce following steps you described. see attachments |
This comment has been minimized.
This comment has been minimized.
You have forgotten step 3 and step 4: |
This comment has been minimized.
This comment has been minimized.
@edwinbos Can you confirm it on vanilla instance ? |
This comment has been minimized.
This comment has been minimized.
I can confirm it's a vanilla Magento 2.2.6 instance. @magento-engcom-team give me 2.2.6 instance |
This comment has been minimized.
This comment has been minimized.
Hi @edwinbos. Thank you for your request. I'm working on Magento 2.2.6 instance for you |
This comment has been minimized.
This comment has been minimized.
Hi @edwinbos, here is your Magento instance. |
This comment has been minimized.
This comment has been minimized.
@edwinbos So can you reproduce this on vanilla instance ? |
This comment has been minimized.
This comment has been minimized.
@engcom-backlog-nazar I was able to reproduce this issue on a clean Magento 2.2.6 instance. |
This comment has been minimized.
This comment has been minimized.
@edwinbos But why i'm able to reset password on this instance ? |
This comment has been minimized.
This comment has been minimized.
Found it. It doesn't work on PHP7.0.30 on my local instance, but it's working on PHP7.1. |
This comment has been minimized.
This comment has been minimized.
@edwinbos Supported version 7.1 7.0 only for 2.1-* |
This comment has been minimized.
This comment has been minimized.
Does that mean the DevDocs is not up-to-date? https://devdocs.magento.com/guides/v2.2/install-gde/prereq/prereq-overview.html https://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html |
This comment has been minimized.
This comment has been minimized.
@edwinbos I'm tested with php 7.0 and have no issue passwords reset correctly, maybe some problem in you environment ? |
This comment has been minimized.
This comment has been minimized.
Can reproduce on a clean Magento 2.2.6 installed using composer. The exception message which happens is: Stacktrace:
Exact steps to reproduce:
|
This comment has been minimized.
This comment has been minimized.
Hi @hostep Thank you for your explanation now i'm able to reproduce on composer version, but on 2.2-dev this works perfectly. |
This comment has been minimized.
This comment has been minimized.
@engcom-backlog-nazar: ok, great! I really hope this won't turn out to be caused by one of the CBE's again, because otherwise this is getting quite ridiculous... |
This comment has been minimized.
This comment has been minimized.
@hostep, Ok thanks that be my mistake to not use composer version. |
This comment has been minimized.
This comment has been minimized.
@engcom-backlog-nazar I have the same issue found on composer version cloud instance 2.2.6, I have submitted the internal ticket with the issue I found the issue missing customer id lines of code in the Controller "ResetPasswordPost.php" which may cause the issue, I fixed the temp solution override the core . |
This comment has been minimized.
This comment has been minimized.
@hostep I'm disabled Amazon module, and have success result. |
This comment has been minimized.
This comment has been minimized.
@engcom-backlog-nazar: I cannot confirm this, disabling all Amazon modules still triggers the problem over here. @salikahmed: can you share your solution? Or maybe even better, create a pull request with the fix if you believe it is correct? Thanks! |
This comment has been minimized.
This comment has been minimized.
Some extra useful information from @webspeaks from #18297:
(not verified if this is true) |
This comment has been minimized.
This comment has been minimized.
A temporary fix is to modify the
with following lines
Note: We have modified core file which is not recommended. But its a temporary fix and not a permanent solution. |
This comment has been minimized.
This comment has been minimized.
#Mm18mx |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi @paco44. Thank you for working on this issue.
|
This comment has been minimized.
This comment has been minimized.
@magento-engcom-team give me 2.3-develop instance |
This comment has been minimized.
This comment has been minimized.
Hi @paco44. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
This comment has been minimized.
This comment has been minimized.
Hi @paco44, here is your Magento instance. |
This comment has been minimized.
This comment has been minimized.
Updating PHP version from 7.0 to 7.1 fixed the issue for me. |
This comment has been minimized.
This comment has been minimized.
Hi @p-bystritsky. Thank you for working on this issue.
|
This comment has been minimized.
This comment has been minimized.
Hi @edwinbos. Thank you for your report. The fix will be available with the upcoming 2.3.1 release. |
This comment has been minimized.
This comment has been minimized.
How can we override this class without modifying the core class? |
This comment has been minimized.
This comment has been minimized.
Hi @nuwaus, I tried overriding the 'AccountManagement' Class and its working fine. Please make sure the private functions which are using 'resetPassword' function are also included in the extended class. In addtion to this if you are overriding the whole file then please make sure all class has namespace because in core 'AccountManagement' class excluded some class namespace which are in the same directory. |
This comment has been minimized.
This comment has been minimized.
So far I managed to fix it by removing the module-customer module from composer and adding a clone of it with changes again via composer, eg: module-customer-temp That way I managed to get it working, but I'll try as you mentioned and write the outcome here, soon.. |
This comment has been minimized.
This comment has been minimized.
@nuwaus @tonycr7 the recommended way is to make a composer patch file to use with for example https://github.com/cweagans/composer-patches |
This comment has been minimized.
This comment has been minimized.
Seems to also be fixed in 2.2-develop already, but not in 2.2.7 |
This comment has been minimized.
This comment has been minimized.
Yes I can see this has been fixed in the 2.2-develop branch on 05/11/2018 ( 7443dc3 )but it wasn't included in 2.2.7. @magento-engcom-team will this fix be included in 2.2.8 ? Thank you ! |
This comment has been minimized.
This comment has been minimized.
Yes as not all commits made it into the planned release (the bot who gives the info about the version is still not very accurate / correct). |
This comment has been minimized.
This comment has been minimized.
@peterjaap @nuwaus @tonycr7 I created a patch for the fix: https://gist.githubusercontent.com/maartenatmarissen/b8e41e15f8a0597cf510a84be56b65c5/raw/cdf2be8cfcdf6b08c884d7b751b1c21e5a7078d7/AccountManagement.php.patch Can be applied using https://github.com/cweagans/composer-patches : |
This comment has been minimized.
This comment has been minimized.
Apparently you changed your username, so the gist is now at https://gist.githubusercontent.com/maartenwolfsen/b8e41e15f8a0597cf510a84be56b65c5/raw/cdf2be8cfcdf6b08c884d7b751b1c21e5a7078d7/AccountManagement.php.patch with more information at https://gist.github.com/maartenwolfsen/b8e41e15f8a0597cf510a84be56b65c5/ and composer-patch code
|
This comment has been minimized.
This comment has been minimized.
@lewisje might be better to use https://github.com/magento/magento2/commit/bc8d3d5d0ead9779cb22d19201cd731719a79b0c.patch (use patch level 5 when using https://github.com/vaimo/composer-patches);
|
This comment has been minimized.
This comment has been minimized.
Thank you for noticing, I´ve also changes the link |
Preconditions
Magento 2.2.6 (clean installation)
Steps to reproduce
Expected result
Actual result