Fatal error thrown for content blocks

Created on 8 September 2020, over 4 years ago
Updated 15 April 2024, 8 months ago

Problem/Motivation

The following fatal error is thrown when processing a content block (Drupal\block_content\Entity).

Error: Call to a member function getThirdPartySetting() on null in /app/web/modules/contrib/closeblock/closeblock.module on line 37

Steps to reproduce

Add a custom block at /block/add and place it on the page.

Proposed resolution

Check if the block instance has the getThirdPartySetting method before calling it.

Remaining tasks

Consider extending the module so that content blocks can be handled as well.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇱Poland blazey

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.71.5 2024