Undefined index: #attributes in ParagraphsFeatures.php with Claro

Created on 21 July 2021, almost 3 years ago
Updated 29 December 2023, 6 months ago

Problem/Motivation

When adding the first paragraph, the attributes array of the placeholder add element has not attributes

Steps to reproduce

Install Claro and set it as backend theme. Open "Add Node Page" and add a paragraph. After switching between paragraph following error message appears in network tab:

<br />
<b>Notice</b>:  Undefined index: #attributes in <b>/app/thunder/docroot/modules/contrib/paragraphs_features/src/ParagraphsFeatures.php</b> on line <b>96</b><br />
<br />
<b>Notice</b>:  Trying to access array offset on value of type null in <b>/app/thunder/docroot/modules/contrib/paragraphs_features/src/ParagraphsFeatures.php</b> on line <b>96</b><br />

Proposed resolution

Check if attributes array exists and only add ScrollToElementCommand if the attributes array exists.

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Christian.wiedemann

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024