Drupal\Core\Config\Schema\SchemaIncompleteException: Entity type 'Drupal\Core\Config\Entity\ConfigEntityType' is missing 'config_export' definition in its annotation in Drupal\Core\Config\Entity\ConfigEntityBase->toArray() (line 251 of core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php).
Drupal\Core\Config\Entity\ConfigEntityStorage->mapToStorageRecord(Object) (Line: 283)
Drupal\Core\Config\Entity\ConfigEntityStorage->doSave('case_study', Object) (Line: 452)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 263)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 339)
Drupal\Core\Entity\EntityBase->save() (Line: 591)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 297)
Drupal\menu_position\Form\MenuPositionRuleForm->save(Array, Object)
call_user_func_array(Array, Array) (Line: 113)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 592)
Drupal\Core\Form\FormBuilder->processForm('menu_position_rule_form', Array, Object) (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
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}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 705)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Looks like it's not currently covered by Upgrade Status: https://www.drupal.org/project/upgrade_status/issues/3131063

And may be related to this change record: https://www.drupal.org/node/2481909

CommentFileSizeAuthor
#2 drupal9_schemaexception-3146668-2.patch682 bytesjastraat

Comments

jastraat created an issue. See original summary.

jastraat’s picture

StatusFileSize
new682 bytes

This patch addresses the schema error, but there may deeper issue with this module's Drupal 9 compatibility because even with this patch, the rules do not save correctly.

timme77’s picture

#works for me.

proweb.ua’s picture

#2 works

bohus ulrych’s picture

Yes, patch #2 works - tested with 9.0.7

rajab natshah’s picture

Title: Adding a new rule on drupal 9 fails with SchemaIncompleteException » Adding a new rule on Drupal 9 fails with SchemaIncompleteException

Thank you, Jess.
The patch #2 is working

rajab natshah’s picture

Title: Adding a new rule on Drupal 9 fails with SchemaIncompleteException » Fix an error when adding a new rule on Drupal 9 fails with SchemaIncompleteException
rajab natshah’s picture

Priority: Normal » Critical
rajab natshah’s picture

Issue tags: +Drupal 9 compatibility
rajab natshah’s picture

Status: Active » Reviewed & tested by the community
douggreen’s picture

yes, RTBC, please commit this :)

rferguson’s picture

+1 ^

marc.groth’s picture

Amazing! Thanks everyone for the fix. I can confirm that this indeed works on the latest version. Simply apply the patch, clear the cache and you're able to add a new menu position rule again. Fantastic! It would be awesome to get this into the main release ASAP :)

dalemoore’s picture

Just wanted to add to the pile that this fixed the issue for me on 9.1.3. Rules are saving and no errors I can see.

vlad.dancer’s picture

I confirm too that this patch fixes an error on drupal 9.2.4.
Thanks @jastraat, +1 LGTM!

z3cka’s picture

Confirming that patch fixes this error in drupal 9.2.6 as well :-).

amanire’s picture

Another confirmation here on 9.2.9. Criminy, why hasn't this been merged and released? It looks like this module has been abandoned.

cedewey’s picture

I agree amanire, this is concerning. I've created a separate issue to determine the best path forward to improving maintenance of the project. I'll reach out to the current maintainers to see if any of them have capacity to give the project more attention and if not, help recruit new maintainers.

#3260627: Improve maintenance of the project

  • lbainbridge committed b65bf39 on 8.x-1.x authored by jastraat
    Issue #3146668 by jastraat: Fix an error when adding a new rule on...
lbainbridge’s picture

Version: 8.x-1.0-beta1 » 8.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks everyone for this one and apologies on the extremely delayed response but this is now on the main branch. I will do my best to go through the open issues today and address a few of them. Shout out to cedewey for extremely polite wake up call, I agree we may need some new maintainers, I will do my best to coordinate with the other maintainers here and chart a path forward.

cedewey’s picture

Thanks Luke! Much appreciated.

Status: Fixed » Closed (fixed)

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