I have installed pathauto and dependencies and added a new pathauto pattern in 'admin/config/search/path/patterns'.
The path is not generated when adding a new node, and the checkbox to set automatic path is missing 'node/{id}/edit'.
I have this error message/exception in the error log:
Drupal\Component\Plugin\Exception\ContextException: Required contexts without a value: taxonomy_term. in Drupal\Core\Plugin\Context\ContextHandler->applyContextMapping() (line 112 of /var/www/my-site/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php
Settings:
I have tried a few combination of the path pattern and none of them work including:
a. '/article/[node:field_category]/[node:author:account-name]/[node:title]'
b. '[node:field_category]/[node:author:account-name]/[node:title]'
c. '[node:title]'
Pattern type = content
My custom content type = checked
Bulk generating says successful but no nodes have been updated.
Any help appreciated. Thank You
Rick
Comments
Comment #2
Rick Bergmann CreditAttribution: Rick Bergmann commentedUpdate:
Pathauto works on my local set up, but not on my live set up. This could be a server config issue that's causing the problem. I will enable more PHP extensions on my live server and post back here if/when I find the problem.
Comment #3
Rick Bergmann CreditAttribution: Rick Bergmann commentedI have now got this working on my live site. The problem was when I first created the pattern I created a 'taxonomy term' condition by mistake, then tried to change it to 'content type' condition. Instead of the 'taxonomy term' condition being removed, the 'content type' condition was added, so it was looking for both conditions.
When I discovered it had 2 conditions I was unable to remove the 'taxonomy term' condition, so I ended up deleting the pattern and creating a new pattern.
Comment #4
BerdirThat sounds like a bug, maybe not high prio, but still a bug. Keeping it open.
Comment #5
Berdir