Skip to content
GitLab
Explore
Sign in
This is an archived project. Repository and other project resources are read-only.
Changes
Page history
Update Drupal Debug Hints
authored
Dec 26, 2024
by
Tom Wiesing
Show whitespace changes
Inline
Side-by-side
Drupal-Debug-Hints.md
View page @
76902ad9
...
@@ -101,22 +101,35 @@ composer require 'drupal/devel_entity_updates:^4.2'
...
@@ -101,22 +101,35 @@ composer require 'drupal/devel_entity_updates:^4.2'
NOTE: Version may have changed
NOTE: Version may have changed
2.
Enable it
2.
Enable it
```
drush install devel_entity_updates
```
bash
drush pm:install devel_entity_updates
```
```
3.
Run the entup command
3.
Run the entup command
```
```
bash
drush entup
drush entup
```
```
4.
Disable the module
```
bash
drush pm:uninstall devel_entity_updates
```
5.
Uninstall it again
```
bash
composer remove drupal/devel_entity_updates
```
## Fix Revision ID Field needs to be installed
## Fix Revision ID Field needs to be installed
```
php
```
php
drush
eval
"
\$
edum =
\\
Drupal::entityDefinitionUpdateManager();
\$
fs =
\\
Drupal::service('entity_field.manager')->getFieldStorageDefinitions('wisski_individual');
\$
edum->updateFieldableEntityType(
\\
Drupal::entityTypeManager()->getDefinition('wisski_individual'),
\$
fs);"
drush
eval
"
\$
edum =
\\
Drupal::entityDefinitionUpdateManager();
\$
fs =
\\
Drupal::service('entity_field.manager')->getFieldStorageDefinitions('wisski_individual');
\$
edum->updateFieldableEntityType(
\\
Drupal::entityTypeManager()->getDefinition('wisski_individual'),
\$
fs);"
```
```
# Fix Field $FIELD needs to be uninstalled
#
# Fix Field $FIELD needs to be uninstalled
```
php
```
php
drush
eval
"
\$
manager =
\\
Drupal::entityDefinitionUpdateManager();
drush
eval
"
\$
manager =
\\
Drupal::entityDefinitionUpdateManager();
\$
definition =
\$
manager->getFieldStorageDefinition('some_field', 'corresponding_bundle');
\$
definition =
\$
manager->getFieldStorageDefinition('some_field', 'corresponding_bundle');
...
...