Alias aren't created anymore

Created on 9 December 2022, about 2 years ago
Updated 7 December 2023, about 1 year ago

Hello

I have an issue on a D9.4.8 ( PHP 8.1.6) website that doesn't create alias.
Pattern exist and is active on a defined content type but no effect, when I try to create them by bulk action systeme say it does but no effect.
Here is an example :https://www.provence-formation.fr/fr/node/7789
This is my config, perhaps there is incompatibility between them ?

Core            Path (path)                                      Enabled    9.4.8
Core            Path alias (path_alias)                          Enabled    9.4.8
Migration       NPPE Migrate Redirect (path_redirect_import)     Enabled    2.0.5
Other           Pathauto (pathauto)                              Enabled    8.x-1.11
Input filters   Pathologic (pathologic)                          Enabled    8.x-1.0-alpha3

Thanks for help

πŸ’¬ Support request
Status

Active

Version

1.11

Component

Code

Created by

πŸ‡«πŸ‡·France aiphes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡«πŸ‡·France aiphes

    After switching to Claro theme, the check box disappear...so I can't force the url rewriting for each node. And as the global setting doesn't work. Do you have an idea to fix this ?
    The only warning I get is this:

    Message Warning : foreach() argument must be of type array|object, null given dans Drupal\Core\Field\FormatterPluginManager->getOptions() (/home/XXX/www/xxx/sited9/web/core/lib/Drupal/Core/Field/FormatterPluginManager.php ligne 176)

  • πŸ‡«πŸ‡·France aiphes

    Still there.
    On anothers websites, I get the checkbox unchecked by default...So I need to check it to get my url rewriting to work back..
    Annoying.

  • πŸ‡«πŸ‡·France aiphes

    The issue seem to come from the pattern beahaviour.
    I need to recreate them to get back my checkbox onto the edit form. Perhaps it is the result of a bad config import ?

  • πŸ‡ΊπŸ‡ΈUnited States niner94949

    I'm also seeing this issue with Pathauto 8.x-1.11. None of the aliases get created when saving a new node.

    I'm on Drupal core 9.4.10

  • πŸ‡ΊπŸ‡ΈUnited States amh5514

    Also, remember to place the custom patterns at the top of the list. I ran into this problem and the default [node:title] was being used before it could reach my custom patterns.

  • πŸ‡«πŸ‡·France aiphes

    @amh5514 on how page are you talking about ?

  • πŸ‡ΊπŸ‡ΈUnited States amh5514

    On the Pattern's Page (/admin/config/search/path/patterns).

    After a migration, the alias wouldn't work for my custom content types. I tried all the options with Bulk Generate, but the path only included the title "[node:title]." In my case, the issue was that the default content pattern was used before Pathauto could detect my other custom patterns B & C.

    Content - Custom A - aliasA/[node:title]

    Content - Custom B - aliasB/[node:title]
    Content - Custom C - aliasC/[node:title]
    Content - Default - [node:title]

  • Same experience with me. This is on a fresh Drupal 10 installation.

  • πŸ‡¨πŸ‡ΊCuba dariemlazaro Havana

    Same experience in Drupal 9.5.9. When I try to regenerate all URL aliases whether taxonomies, contents or users, nothing changes. Only the new contents get the patterns. Also the user aliases only get one language. So if I create the user in Spanish it only takes the alias in Spanish but never generates the alias in English and vice versa.

  • πŸ‡¦πŸ‡ΊAustralia cb Sydney

    Me also.

    It works fine on my local lando instance with PHP 8.1.18 but does not work on the Acquia env using PHP 8.1.20. Both use Drupal 9.5.9.

    I tried to change the order of the patterns but no love.

    Happy to provide more info or to test anything.

  • πŸ‡§πŸ‡ΎBelarus aylis

    Faced a problem with alias creation, that is similar to described in this issue: some time after migration to D10 from D9 I noticed that aliases was not generated for certain content type neither on update nor on create operation. Problem was repeatable on live env only, on my local lando setup aliases remain to generate correctly.
    Found no entries in Drupal's dbog or hosting logs that can be related to this issue.

    Reordering alias patterns at /admin/config/search/path/patterns and putting the bugged one to the top (solution first described in #7 πŸ’¬ Alias aren't created anymore Active ) helped me.

    Live site is hosted on Pantheon, uses php 8.1.24, drupal core 10.1.5 and pathauto 8.x-1.12.
    Local env has same core and pathauto versions, but php 8.1.18.

  • πŸ‡ΊπŸ‡ΈUnited States keiserjb

    I had this problem on a site upgraded from D7 to D10. On the page with all of my patterns I happened to click on "Show row weights." They were all 0. I went back to "Hide row weights." I reordered some of them. Then I went back to "Show row weights" and they all had weights. I saved the list. Then the bulk alias generation worked.

  • πŸ‡¨πŸ‡¦Canada gwvoigt London, ON πŸ‡¨πŸ‡¦

    Same issue as #12, the bulk generate works if I use whatever/[node:menu-link:title] but it fails if I use [node:menu-link:parents:join-path]/[node:menu-link:title]. I've updated pathauto and token module to the latest version but still having the same issues.

Production build 0.71.5 2024