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.
Issue fork paragraphs_gridstack-3392010
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bobi-mel commentedComment #3
shreya_th commentedComment #5
shreya_th commentedHi @Panchuk,
I have solved this issue i.e. InvalidArgumentException: Field field_media_image is unknown in paragraphs_gridstack_demo.install() file and also created MR for this . Kindly review the changes.
Comment #6
panchukComment #7
shreya_th commentedComment #8
panchukAdded a few improvements for paragraphs_gridstack_demo.install file. Refactored code and fixed coding standards issues.
Comment #10
panchukThanks for your contribution, merged fixes into dev branch after tests on local env.