- πΊπΈUnited States JeffC518
I looked at @daniel_j's comment first (#3) which was spot on, except for one minor thing:
you can search-and-replace on all your pathauto.pattern.*.yml, changing references to node_type to entity_bundle.node.
It should be
entity_bundle:node
Per example, in a pathauto.pattern.page_by_menu.yml, mine was:
pattern: '[node:menu-link:parent]/[node:title]' selection_criteria: 511dc248-86a2-425b-bb21-90da8d45e2d1: id: <strong>node_type</strong> bundles: contact_page: contact_page
but should be:
pattern: '[node:menu-link:parent]/[node:title]' selection_criteria: 511dc248-86a2-425b-bb21-90da8d45e2d1: id: <strong>entity_bundle:node</strong> bundles: contact_page: contact_page
.. assuming it's a node of course.
- πΊπΈUnited States loopy1492
Thank you so much @JeffC518!!!!
This cropped up during our Drupal 10 upgrade.
We run `blt install:drupal` during ci build on the server and when it tried importing these into a fresh database, it choked and died with the OP's error. Changing the slection_criteria id to entity_bundle:node solved it.
- πΈπ°Slovakia coaston
Hi,
Where exactly is has to be changes ? I dont see any pathauto.pattern.* yaml files with already mentioned code :
pattern: '[node:menu-link:parent]/[node:title]' selection_criteria: 511dc248-86a2-425b-bb21-90da8d45e2d1: id: node_type bundles: contact_page: contact_page
- πΈπ°Slovakia coaston
Edit . It works now. I had to change it in different module, Not here in pathauto.
Hi @coaston, which module did you change it in? I'm facing a similar thing
- πΈπ°Slovakia coaston
Hi gshreeGs
in my case it was triggered by different module View Mode Page and this fix resolved it : 3300706 π Context exception when trying to create url (Drupal 10 is broken!) RTBC
However it is connected somehow with CTools as described in #12 so the best way for you is to go to Admin > extend > Chaos Tools and see which of your contrib modules use it (Required by:) and I am sure that one of this modules have to be updated as they are not ready for D10.
- First commit to issue fork.
- πͺπΈSpain javitan
For some reason the after upgrading the core and module it didn't update my pattern files, so you will need to change them manually (pathauto.pattern.YOURNODE.yml).
So just change the id from this:
selection_criteria: xxxxxxxxxxxxxxx: id: node_type
Into this:
selection_criteria: xxxxxxxxxxxxxxx: id: 'entity_bundle:node'
- π«π·France othmen
Thanks @javitan.
#23 π¬ PluginNotFoundException: The "node_type" plugin does not exist Fixed resolved my problem.
- π¦πͺUnited Arab Emirates ThirstySix
after update, it works well.
config sync file: pathauto.pattern.workshop.yml
from
id: node_type
to
id: entity_bundle:node
run drush cim
solved! Thanks #23