-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17837b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying this on an existing site, with islandora/islandora (dev-8.x-1.x cb52ddd) and islandora/islandora_defaults (dev-8.x-1.x 34accdd).
drush config:import sync --source=/var/www/html/drupal/web/modules/contrib/islandora_defaults/config/install --partial --diff
Am I missing a core patch? Does this depend on Drupal 9?
17837b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you happen to clear your cache before trying the import? it appears not to be discovering the new classes
17837b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elizoller Yes, I cleared cache. I tried the patch from https://www.drupal.org/project/drupal/issues/3056714#comment-13289619 but it doesn't apply to Drupal 8.9.13. So these changes seem to require Drupal 9.
17837b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well that would be a problem. That patch says anyway that its written for 8.8.x. Let me spin up D8 site and give it a whirl.
17837b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started back up an old-ish d8 vm i had (december 2020 build) and pulled in the latest islandora and islandora_defaults code. then I ran
and got the same error you did about about
Unable to determine class for field type media_track
then i ran
drush cr
and the same command again
and it succeeded and then i ran
drush updatedb
and updated crayfish-commons (unrelated to captions but related to no-gemini stuff) went to the UI and was able to create an item with an attached video media with a captions file.17837b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elizoller Thanks for checking it out. Unfortunately, I still get the
Unexpected error during import with operation create for field.storage.media.field_track: Unable to determine class for field type 'media_track' found in the 'field.storage.0' configuration
error.Where exactly did you get a
media_track
from? A patch?I don't see it in my codebase other than the references in
web/modules/contrib/islandora_defaults/config/install/
.17837b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elizoller fyi, I was able to apply the patch from https://www.drupal.org/files/issues/2019-10-07/3056714-16.patch in a separate VM, so it looks like I have a local issue with composer. But if that patch is a prerequisite for captions then these docs need to specify the details of the core patch...
17837b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No you do not need the core patch, this is a replacement for the core patch.
17837b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elizoller Aha, I hadn't seen the latest commit. I see media_track arrives via https://github.com/Islandora/islandora_defaults/pull/48/files#diff-fac75faa98b4ecbbf46f6944c29fba9d8f73e69ee9e639e5fb968d6ef19a0a1dR15