InvalidArgumentException: Field field_media_image is unknown (Paragraphs Gridstack Demo)

Created on 5 October 2023, about 1 year ago
Updated 12 October 2023, about 1 year ago

Problem/Motivation

In case when media types are missing Paragraphs Gridstack Demo module will cause an error during installation.

Take a look on paragraphs_gridstack_demo_install(), line 25.

Steps to reproduce

1) Remove default media types.
2) Enabled PG Demo module.

Proposed resolution

Check if the field exists using hasField() method. Log errors and create sample content without media.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇦Ukraine Panchuk Volyn, Lutsk

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024