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
Oct 19, 2023
by
Tom Wiesing
Show whitespace changes
Inline
Side-by-side
Drupal-Debug-Hints.md
View page @
a549ebe2
...
@@ -72,6 +72,24 @@ You might also have to delete some config files the module comes with if you wan
...
@@ -72,6 +72,24 @@ You might also have to delete some config files the module comes with if you wan
drush config-delete module_name.settings_name
drush config-delete module_name.settings_name
```
```
# Remove Module Config
Sometimes
`update.php`
says:
```
Module my_already_removed_module has a schema in the key_value store, but is missing from your site.
Module update_test_0 has a schema in the key_value store, but is not installed.
```
As per
[
Drupal Doc
](
https://www.drupal.org/node/3137656
)
, to fix this without reinstalling, you can run:
```
drush php-eval "\Drupal::keyValue('system.schema')->delete('my_already_removed_module');"
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.
# 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);"
...
...