Callable "Drupal\layout_paragraphs\Access\LayoutParagraphsBuilderAccess::access" requires a value for the "$component_uuid"

Created on 21 January 2025, 2 months ago

Problem/Motivation

 php    Error      RuntimeException: Callable "Drupal\layout_paragraphs\Access\LayoutParagraphsBuilderAccess::access" requires a value for the "$paragraph_type" argument. in   
                                            Drupal\Component\Utility\ArgumentsResolver->handleUnresolvedArgument() (line 149 of                                                                          
                                            /web/core/lib/Drupal/Component/Utility/ArgumentsResolver.php). 

and

 php    Error      RuntimeException: Callable "Drupal\layout_paragraphs\Access\LayoutParagraphsBuilderAccess::access" requires a value for the "$component_uuid" argument. in   
                                            Drupal\Component\Utility\ArgumentsResolver->handleUnresolvedArgument() (line 149 of  /web/core/lib/Drupal/Component/Utility/ArgumentsResolver.php). 

Steps to reproduce

* PHP 8.4.1
* Drupal 11
* Install paragraphs, layout paragraphs
* Create a content type with paragraphs
* Create a node
* Attempt to edit the node with the paragraphs editor
* Attempt to edit the paragraph
* Expect an ajax error. No ability to edit the content

Proposed resolution

Set default values for the null parameters. The 'operation' parameter cannot be null in $paragraph->access

Remaining tasks

Testing.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇦🇺Australia interlated

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

Comments & Activities

Production build 0.71.5 2024