Problem/Motivation
With the PathAuto module enabled, I cannot reset a password. Instead, I get the error message:
"Either the path '/user/123' is invalid or you do not have access to it."
Steps to reproduce
I am using Drupal 9.0.7 and Pathauto 8x.-1.8 module (4/20). I have the Simple Password Reset module enabled which allows me to reset a password without being logged in. The Reset Password page has a URL like /user/reset/1/token_string. After attempting to update the password while still anonymous, I get the above error message. Disabling the PathAuto module makes the problem go away.
Note: This may or may not be related to issue #3107695. Although I cross-posted my issue in the comments there, I am creating this as a separate issue as the other one is marked as closed and the original post's error message is slightly different. I have already tried the solutions to the aforementioned issue, but it does not affect my problem. I am also not using any multilingual/translation features.
Comments
Comment #2
jasonluttrellComment #3
jasonluttrellComment #4
jasonluttrellIn case anyone else runs into this issue, a "quick fix" for me was to go to the Administration > Configuration > Search and metadata > URL aliases > Settings page (/admin/config/search/path/settings) and under "Enabled Entity Types" uncheck User.
Comment #5
jasonluttrellComment #6
chris matthews commentedI'm using Drupal 8.9.13; Pathauto 8.x-1.8 and Simple Password Reset 8.x-1.1 and I ran into this same issue. I've tried various patches in related issues, but the only thing that "fixed" this for me was the suggestion in #4. It stops the bleeding for now, but this seems like quite a major/critical bug.
Comment #7
jasonluttrellI'm glad the info could be useful to someone else, Chris. Hopefully, we can get a real fix.
Comment #8
alex.bukach commented@jasonluttrell @Chris Matthews I faced a similar issue, and it actually seems to be caused by a bug in the core Path module.
Please check whether my patch in https://www.drupal.org/project/drupal/issues/3101344#comment-14291337 resolves the problem for you as disabling pathauto for users might be not an ideal solution.
Comment #9
bbu23Thanks Alex, your patch works for me.
Comment #10
mably commentedComment #12
muratk commentedI am getting this exact problem on core: 11.3.3, Pathauto version: 1.14.0