I am creating a media module with gallery media bundle. I decided to use Slick_media module to display the gallery items. Unfortunately my tests are failing with schema errors. I have shown the error I received below. You can see the files I have with the test here: https://github.com/isthegeek/media/commit/bee590aabc9faa2308227e3de58974...
Fail Completion GalleryBundleTest 55 Drupal\media\Tests\GalleryBundleTes
The test did not complete due to a fatal error.
Exception Uncaught e ConfigSchemaCheck 93 Drupal\Core\Config\Testing\ConfigSc
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for
core.entity_view_display.media.gallery.default with the following errors:
core.entity_view_display.media.gallery.default:content.field_slide.settings.box_caption
missing schema,
core.entity_view_display.media.gallery.default:content.field_slide.settings.box_caption_custom
missing schema in
Drupal\Core\Config\Testing\ConfigSchemaChecker->onConfigSave() (line 93
of
/home/travis/build/isthegeek/drupal-8/drupal/core/lib/Drupal/Core/Config/Testing/ConfigSchemaChecker.php).
Drupal\Core\Config\Testing\ConfigSchemaChecker->onConfigSave(Object,
'config.save', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('config.save',
Object) (Line: 227)
Drupal\Core\Config\Config->save(1) (Line: 280)
Drupal\Core\Config\Entity\ConfigEntityStorage->doSave('media.gallery.default',
Object) (Line: 392)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 259)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 358)
Drupal\Core\Entity\Entity->save() (Line: 637)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 321)
Drupal\Core\Config\ConfigInstaller->createConfiguration('',
Array) (Line: 125)
Drupal\Core\Config\ConfigInstaller->installDefaultConfig('module',
'media') (Line: 75)
Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig('module',
'media') (Line: 248)
Drupal\Core\Extension\ModuleInstaller->install(Array, 1) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, 1)
(Line: 897)
Drupal\simpletest\WebTestBase->installModulesFromClassProperty(Object)
(Line: 561)
Drupal\simpletest\WebTestBase->setUp() (Line: 37)
Drupal\media\Tests\GalleryBundleTest->setUp() (Line: 1046)
Drupal\simpletest\TestBase->run(Array) (Line: 723)
simpletest_script_run_one_test('1',
'Drupal\media\Tests\GalleryBundleTest') (Line: 59)
You can find the complete error log here: https://travis-ci.org/isthegeek/media/builds/138295338
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | blazy-schema-errors-2750823.patch | 954 bytes | gausarts |
Comments
Comment #2
gausarts commentedThank you for the report.
You may need to have the same versions (the same release dates) between Blazy and Slick.
The schema errors shows you are having different versions.
Either update both to the latest, or stick to Beta2 for both.
"box_caption_custom" was added post Beta2, and your current Slick module was Beta2.
Please try matching release dates, and clear cache, or re-save the Slick form accordingly as the last resort.
Normally it should resolve.
Please let me know if that is the case, otherwise you may have to provide more details to re-produce it.
Comment #3
gausarts commentedUnless an update is required, always clear cache if trouble with any module update as the first possible solution, especially during DEV releases.
Feedback provided. Feel free to re-open if still an issue.
Comment #4
royal121 commentedIn my module I added slick_media as a dependency. Slick media includes blazy and slick as dependency. To my knowledge, if the version aren't specified the most latest version is downloaded and installed. You can check the tests here: https://travis-ci.org/isthegeek/media/builds/138295338
Because of schema errors the test fails. Currently I am ignoring schema errors to make tests pass. I think that the schema needs to be fixed. Please tell me how else should I solve the problem.
Comment #5
gausarts commentedCould you please reply to my previous questions/solutions? Thanks.
Comment #6
gausarts commentedI think I found the culprit.
The "box_caption" should be string, but array is given at BlazyDefault::imageSettings().
Clearing cache, and re-saving the formatter, or views style, should then fix the issue as mentioned above.
Moved it to Blazy which produced the trouble line.
Comment #8
gausarts commentedFeel free to re-open if still an issue. Thank you.