Drupal core 8.9.1, taxonomy_menu 3.4 and 3.x-dev.

When i add a new taxonomy memu(/admin/structure/taxonomy_menu/add), This problem will also occur.

The browser returned the following content:

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).

file_upload_options_form_alter(Array, Object, 'taxonomy_menu_add_form') (Line: 539)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'taxonomy_menu_add_form') (Line: 838)
Drupal\Core\Form\FormBuilder->prepareForm('taxonomy_menu_add_form', Array, Object) (Line: 279)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, Object) (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
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: 50)
Drupal\ban\BanMiddleware->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: 49)
Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jameszhang023 created an issue. See original summary.

baldebinos’s picture

My temporary solution



Edit:
<your_site_path>/modules/contrib/taxonomy_menu/src/Entity/TaxonomyMenu.php

At line 36 add a comma to the end of line.

Between line 36 and line 37 add:

 *   config_export = {
 *     "id",
 *     "label",
 *     "description",
 *     "conf"
 *   }

Note: Not tested in production.

S_Bhandari’s picture

Assigned: Unassigned » S_Bhandari
karthik.arumugam’s picture

FileSize
566 bytes

Hi,

I have created a patch for the fix. Please review.

S_Bhandari’s picture

Please don't work on the issue which is already assigned for someone, I am already working on it.

S_Bhandari’s picture

S_Bhandari’s picture

Assigned: S_Bhandari » Unassigned
mojo4444’s picture

This needs to be different, we need to export different variables.
Will make the config export/import work and edit of the tax menu.

Attached patch.

mojo4444’s picture

Assigned: Unassigned » mojo4444
mojo4444’s picture

Assigned: mojo4444 » Unassigned
Status: Active » Needs review
mojo4444’s picture

Forgot one of the variables, my bad, new patch.

rwanth’s picture

+1 for RTBC.

The necessity for this change is in this CR: https://www.drupal.org/node/2949023

  • dstol committed 21c6c89 on 8.x-3.x authored by mojo4444
    Issue #3157600 by mojo4444, S_Bhandari, karthik.arumugam, jameszhang023...
dstol’s picture

Status: Needs review » Fixed

Thanks for your contribution!

Status: Fixed » Closed (fixed)

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