TypeError when adding book page

Created on 2 October 2023, about 1 year ago

When trying to add a book page to a book as a low privilege user the following TypeError occurs:

TypeError: Drupal\Component\Utility\NestedArray::getValue(): Argument #2 ($parents) must be of type array, null given, called in /app/drupal10/core/lib/Drupal/Core/Field/WidgetBase.php on line 412 in Drupal\Component\Utility\NestedArray::getValue() (line 69 of /app/drupal10/core/lib/Drupal/Component/Utility/NestedArray.php).

Steps to reproduce:
- Standard install of Drupal 10.1.4
- Install book module
- Install workflow module and content moderation module
- Edit the standard workflow and apply it to all content types
- Create a content editor user with the 'content editor' role
- Give the content editor role permission to 'create new drafts' as well as all book related permissions
- Log in as admin and create a new basic page, go to the book tab and select 'create new book' and save and publish it
- Log in as content editor and create a new basic page and save it (as 'draft')
- Log in as admin and publish the new basic page that was created by the content editor
- Log in as content editor and view the newly created page
- Click on the 'Outline' tab at the top of the page and add the new page to the book that was created earlier
- The TypeError above is thrown when you save the page

πŸ› Bug report
Status

Closed: duplicate

Version

10.1 ✨

Component
FieldΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¬πŸ‡§United Kingdom duttonma

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

Comments & Activities

Production build 0.71.5 2024