Here are the messages I get when trying to add the block:

The website encountered an unexpected error. Please try again later.

Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for block.block.languagedropdownswitcher with the following errors: block.block.languagedropdownswitcher:settings.showall missing schema, block.block.languagedropdownswitcher:settings.tohome missing schema, block.block.languagedropdownswitcher:settings.width missing schema, block.block.languagedropdownswitcher:settings.display missing schema, block.block.languagedropdownswitcher:settings.widget missing schema, block.block.languagedropdownswitcher:settings.msdropdown missing schema, block.block.languagedropdownswitcher:settings.chosen missing schema, block.block.languagedropdownswitcher:settings.ddslick missing schema, block.block.languagedropdownswitcher:settings.languageicons missing schema, block.block.languagedropdownswitcher:settings.hidden_languages missing schema in Drupal\Core\Config\Development\ConfigSchemaChecker->onConfigSave() (line 94 of core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php).

Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('config.save', Object) (Line: 227)
Drupal\Core\Config\Config->save() (Line: 280)
Drupal\Core\Config\Entity\ConfigEntityStorage->doSave('languagedropdownswitcher', Object) (Line: 392)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 259)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 364)
Drupal\Core\Entity\Entity->save() (Line: 637)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 358)
Drupal\block\BlockForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 585)
Drupal\Core\Form\FormBuilder->processForm('block_form', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm(Object) (Line: 27)
Drupal\block\Controller\BlockAddController->blockAddConfigureForm('language_dropdown_block:language_interface', 'progboot2')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 656)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DuneBL created an issue. See original summary.

myLies’s picture

Hi DuneBL
I can't reproduce that on clear Drupal 8.2.4
Could you describe your environment and Drupal version?

DuneBL’s picture

I just discover that this is maybe due to a migration process D6>D8
As you said, this is working well on a clean install
I think this is due to the migration process, because I have other schema errors like this one (for other modules) on my migrated site, but none in a clean fresh site (8.3)
When I will have few time, I will collect all those bug reports to link them to the migrate module.

kala4ek’s picture

Status: Active » Postponed
kala4ek’s picture

Status: Postponed » Closed (outdated)
andypost’s picture

Title: Errors messages when trying to ad the block » Fix missing configuration schema
Status: Closed (outdated) » Needs work
YurkinPark’s picture

Status: Needs work » Needs review
FileSize
2.29 KB

Status: Needs review » Needs work

The last submitted patch, 7: 2831217.patch, failed testing. View results

andypost’s picture

Status: Needs work » Needs review
+++ b/config/schema/lang_dropdown.schema.yml
@@ -0,0 +1,80 @@
+    hidden_languages:
+      type: sequence
+      sequence:
+        type: sequence
+        label: Role

How role related to languages

YurkinPark’s picture

module allows to hide languages for different roles

andypost’s picture

Then it needs label to explain that Language is element of sequence

andypost’s picture

Added fix for mapping

And here's a basic UI test which same time does config testing

The last submitted patch, 12: 2831217-12-test-only.patch, failed testing. View results

  • kala4ek committed a2fb5e9 on 8.x-2.x authored by andypost
    Issue #2831217 by andypost, YurkinPark, DuneBL, kala4ek, myLies: Fix...
kala4ek’s picture

Status: Needs review » Fixed

Committed to latest dev.
Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.