Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I installed logintoboggan on Drupal 8 and I cannot access the permission page.
Then I tried to uninstall and I get this error:
The website encountered an unexpected error. Please try again later.
If I delete the module files on ftp I still have the error, how to do ? Need to clean the database ?
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#2 | logintoboggan-fix_config_uninstall-2644306-2.patch | 444 bytes | myLies |
Comments
Comment #2
myLies CreditAttribution: myLies as a volunteer commentedI hope this patch solved this problem
I change in hook_uninstall method to get config
when used Drupal::config() - we gets data for only reading
should use \Drupal::configFactory()->getEditable() to change\remove config
Comment #3
myLies CreditAttribution: myLies as a volunteer commentedComment #4
p4trizio CreditAttribution: p4trizio commentedI can confirm the patch solves the problem, thank you
Comment #5
IgnacioAlonso CreditAttribution: IgnacioAlonso as a volunteer commentedComment #6
ajayg CreditAttribution: ajayg as a volunteer commentedThis has been RTBC for a while. What is preventing the commit?
Comment #7
TokiPatch works for me as well (could not create any new user anymore with LoginToboggan 8-dev installed).
Error message with Login Toboggan installed :
Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "user" entity type did not specify a "register" form class. in Drupal\Core\Entity\EntityTypeManager->getFormObject() (line 184 of /home/mywebsite/public_html/core/lib/Drupal/Core/Entity/EntityTypeManager.php).
Comment #8
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedWithout the patch I get the error:
Drupal\Core\Config\ImmutableConfigException: Can not delete immutable configuration [error]
logintoboggan.settings. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to
retrieve a mutable configuration object in
drupal-8.5.3/html/core/lib/Drupal/Core/Config/ImmutableConfig.php:51
Comment #9
TR CreditAttribution: TR commentedConfigurations do NOT need to be explicitly uninstalled. The whole hook_uninstall() for this module should be removed, as there is nothing that needs to be done here in Drupal 8.
Note that the configuration .yml file is in the wrong place and lacks a schema, so if it's not automatically uninstalled that's the reason.
Comment #10
stevecowie CreditAttribution: stevecowie commentedTR is correct. There is no need to explicitly delete the config. The permission page problem was caused by an obsolete method for calling config. That's already fixed. For this one I'm moving the uninstall, and removing the config delete.