Error after uninstalling Field Layout

Created on 2 October 2023, about 1 year ago
Updated 15 September 2024, 2 months ago

Problem/Motivation

After installing and uninstalling "Field Layout" I get an error.

The website encountered an unexpected error. Please try again later.
Error: Undefined constant "Drupal\node\Entity\DRUPAL_OPTIONAL" in Drupal\Core\Entity\EntityStorageBase->mapFromStorageRecords() (line 418 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Drupal\Core\Entity\EntityStorageBase->mapFromStorageRecords(Array) (Line: 186)
Drupal\Core\Config\Entity\ConfigEntityStorage->doLoadMultiple(NULL) (Line: 312)
Drupal\Core\Entity\EntityStorageBase->loadMultiple() (Line: 99)
Drupal\Core\Entity\EntityTypeBundleInfo->getAllBundleInfo() (Line: 80)
Drupal\Core\Entity\EntityTypeBundleInfo->getBundleInfo('block') (Line: 103)
Drupal\Core\Entity\Plugin\DataType\Deriver\EntityDeriver->getDerivativeDefinitions(Array) (Line: 101)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) (Line: 87)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 291)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 181)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 22)
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('field_item:boolean') (Line: 195)
Drupal\Core\TypedData\DataDefinition->getClass() (Line: 606)
Drupal\Core\Field\BaseFieldDefinition->getMainPropertyName() (Line: 106)
Drupal\Core\Entity\Query\Sql\Tables->addField('default_langcode', 'INNER', NULL) (Line: 58)
Drupal\Core\Entity\Query\Sql\Condition->compile(Object) (Line: 176)
Drupal\Core\Entity\Query\Sql\Query->compile() (Line: 81)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 606)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 93)
Drupal\basic_auth\Authentication\Provider\BasicAuth->authenticate(Object) (Line: 343)
Drupal\shield\ShieldMiddleware->basicAuthRequestAuthenticate(Object) (Line: 263)
Drupal\shield\ShieldMiddleware->bypass(Object, 1, 1) (Line: 226)
Drupal\shield\ShieldMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Install Field Layout
Then uninstall Field Layout
Directly afterwards, the error shows up.

A workaround to fix it:
Edit update.php
$settings['update_free_access'] = TRUE;
Process through the update.php
And then it works again.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: cannot reproduce

Version

11.0 πŸ”₯

Component
Field layoutΒ  β†’

Last updated 21 days ago

No maintainer
Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024