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 @
e6aa1651
...
@@ -90,7 +90,28 @@ drush php-eval "\Drupal::keyValue('system.schema')->delete('update_test_0');"
...
@@ -90,7 +90,28 @@ drush php-eval "\Drupal::keyValue('system.schema')->delete('update_test_0');"
Alternatively, you can also install the module again, deactivate and uninstall it, and then remove the files.
Alternatively, you can also install the module again, deactivate and uninstall it, and then remove the files.
# Fix Revision ID Field needs to be installed
# Fix Mismatched entity and/or field definitions
1.
Install https://www.drupal.org/project/devel_entity_updates:
```
bash
composer require
'drupal/devel_entity_updates:^4.2'
```
NOTE: Version may have changed
2.
Enable it
```
drush install devel_entity_updates
```
3.
Run the entup command
```
drush entup
```
## 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);"
```
```
...
...