Either the path 'x' is invalid or you do not have access to it.

Created on 15 January 2024, 10 months ago
Updated 1 August 2024, 4 months ago

Problem/Motivation

When Unpublished Node Permissions module is enabled no admin user can't create a new translation for a content type

Steps to reproduce

Have a node type with translations enabled. When a "non-admin" user tries to make a translation an error is shown in the "Url alias" field of the node. The error message is "Either the path '/node/xxx' is invalid or you do not have access to it."

If i revert to "Unpublished Node Permissions" version 1.2.0 the error message dissapears.

Seems to be related to the 1.3.0 release of this module ( https://www.drupal.org/project/unpublished_node_permissions/releases/8.x... β†’ ).

Steps:

  • Drupal standard profile (version 10.1.7)
  • Enabled Content Translation for "Page" content type
  • Enabled Pathauto with pattern for "Page" content type
  • Enabled Unpublished Node Permissions
  • Added a non admin user

When logged in with the non admin user the error message "Either the path '/node/xxx' is invalid or you do not have access to it." is shown when the non admin user tries to save a translation.

More info:
Is this related to https://www.drupal.org/project/drupal/issues/3101344 πŸ› hook_node_grants implementations lead to a 'URL Alias' validation error when saving translated nodes. Fixed ?

Seems that both proposed solution 1 and 2 will work here.

πŸ› Bug report
Status

Closed: outdated

Version

1.4

Component

Code

Created by

πŸ‡³πŸ‡΄Norway candalt

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024