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

Rick Bergmann created an issue. See original summary.

Rick Bergmann’s picture

Update:

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.

Rick Bergmann’s picture

Status: Active » Fixed

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

Berdir’s picture

Category: Support request » Bug report
Status: Fixed » Active

That sounds like a bug, maybe not high prio, but still a bug. Keeping it open.

Berdir’s picture

Title: Exception in error log. » Bundle condition is not removed when switching the type.
Version: 8.x-1.0-rc1 » 8.x-1.x-dev