- π¨π¦Canada smulvih2 Canada π
Changing the
source
value in the media.type.instagra config worked for me:drush cset media.type.instagram source oembed:instagram
After updating Lightning to 4.1.9 and updating BLT to 11.6.0, database updates for Lightning Media fail.
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.
Needs work
4.1
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Changing the source
value in the media.type.instagra config worked for me:
drush cset media.type.instagram source oembed:instagram