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

jasonluttrell created an issue. See original summary.

jasonluttrell’s picture

Issue summary: View changes
jasonluttrell’s picture

Priority: Normal » Major
jasonluttrell’s picture

In 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.

jasonluttrell’s picture

Priority: Major » Normal
chris matthews’s picture

I'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.

jasonluttrell’s picture

I'm glad the info could be useful to someone else, Chris. Hopefully, we can get a real fix.

alex.bukach’s picture

Status: Active » Postponed

@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.

bbu23’s picture

Thanks Alex, your patch works for me.

mably’s picture

Status: Postponed » Closed (works as designed)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

muratk’s picture

I am getting this exact problem on core: 11.3.3, Pathauto version: 1.14.0