Error after updating to 4.1.9: Plugin Instagram Does Not Exist

Created on 2 December 2020, about 4 years ago
Updated 14 July 2023, over 1 year ago

Problem/Motivation

After updating Lightning to 4.1.9 and updating BLT to 11.6.0, database updates for Lightning Media fail.

Steps to reproduce

Update Lightning and BLT via Composer to above-referenced versions, and run drush updb. I don't think the BLT update is related, but including it here for context. Database updates then fail as follows:

vagrant@local:/var/www/mysite$ drush updb
 [warning] Invalid json in modules/contrib/migrate_devel/composer.json
 ------------- -------------------- --------------- ---------------------------
  Module        Update ID            Type            Description
 ------------- -------------------- --------------- ---------------------------
  lightning_m   8002                 hook_update_n   Creates the media_library
  edia_docume                                        form display for
  nt                                                 documents.
  lightning_m   8007                 hook_update_n   Creates the media_library
  edia_image                                         form display for images.
  lightning_m   8003                 hook_update_n   Creates the media_library
  edia_twitte                                        form display for tweets.
  r
  lightning_m   8004                 hook_update_n   Creates the media_library
  edia_video                                         form display for videos.
  media_entit   change_source_name   post-update     Rename source from
  y_instagram                                        "instagram" to
                                                     "oembed:instagram".
 ------------- -------------------- --------------- ---------------------------


 Do you wish to run the specified pending updates? (yes/no) [yes]:
 > y

>  [warning] Invalid json in modules/contrib/migrate_devel/composer.json
>  [notice] Update started: lightning_media_document_update_8002
>  [error]  The "instagram" plugin does not exist. Valid plugin IDs for Drupal\media\MediaSourceManager are: file, audio_file, video_file, oembed:video, image, oembed:instagram, twitter, video_embed_field
>  [error]  Update failed: lightning_media_document_update_8002
>  [notice] Update started: lightning_media_image_update_8007
>  [error]  The "instagram" plugin does not exist. Valid plugin IDs for Drupal\media\MediaSourceManager are: file, audio_file, video_file, oembed:video, image, oembed:instagram, twitter, video_embed_field
>  [error]  Update failed: lightning_media_image_update_8007
>  [notice] Update started: lightning_media_twitter_update_8003
>  [error]  The "instagram" plugin does not exist. Valid plugin IDs for Drupal\media\MediaSourceManager are: file, audio_file, video_file, oembed:video, image, oembed:instagram, twitter, video_embed_field
>  [error]  Update failed: lightning_media_twitter_update_8003
>  [notice] Update started: lightning_media_video_update_8004
>  [error]  The "instagram" plugin does not exist. Valid plugin IDs for Drupal\media\MediaSourceManager are: file, audio_file, video_file, oembed:video, image, oembed:instagram, twitter, video_embed_field
>  [error]  Update failed: lightning_media_video_update_8004
>  [warning] Invalid json in modules/contrib/migrate_devel/composer.json
>  [warning] Invalid json in modules/contrib/migrate_devel/composer.json
>  [warning] Invalid json in modules/contrib/migrate_devel/composer.json
 [error]  Update aborted by: lightning_media_document_update_8002, lightning_media_image_update_8007, lightning_media_twitter_update_8003, lightning_media_video_update_8004
 [error]  Finished performing updates.

The result of these updates failing, specifically 8004, is a fatal error that leaves the site in an un-usable state:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "instagram" plugin does not exist. Valid plugin IDs for Drupal\media\MediaSourceManager are: file, audio_file, video_file, oembed:video, image, oembed:instagram, twitter, video_embed_field in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

I'm entering this with a priority of Major as it leaves the site in an un-usable state following the update failure.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs work

Version

4.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dbrownmt Boston, MA

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