Just installed Drupal 8 and messed with it for a while. It looks great but I'm having a hard time with modules. My first issue is I have a SUPER-SIMPLE module that simply tries to inject CSS and JavaScript files. I have succeeded with that module --- however, I don't see it in my uninstall list as able to be uninstalled. In the module list, the enable checkbox is grayed out too. My module wrote no tables and has no dependencies, it seems to be unable now to be removed via the front-end.
The second, and bigger issue: Installed Administration Menu for D8 and it broke down my D8. Then I removed the module files and cleared cache but now I'm getting the following red errors:
Notice: Undefined index: admin_devel in Drupal\Core\DrupalKernel->discoverServiceProviders() (line 232 of core/lib/Drupal/Core/DrupalKernel.php).
Notice: Undefined index: admin_menu in Drupal\Core\DrupalKernel->discoverServiceProviders() (line 232 of core/lib/Drupal/Core/DrupalKernel.php).
I see outdated instructions here of how to manually remove modules --- but no info that works in current/latest 8.x-dev that I downloaded a few days ago:
http://drupal.stackexchange.com/questions/72927/manually-disable-module-...
However, in comparing D8 and D7 (using the system table, etc.), it was so much easier to force-disable or remove a module. In D8, I unloaded and searched the entire database and D8 file structure for "admin_menu" and "admin_devel" that you see in the errors above but to no avail.
Any suggestions or fixes would be greatly appreciated!
Comments
Comment #1
krisp1 commentedI have been greeted with a similar error message- Notice: Undefined index: backup_migrate in Drupal\Core\DrupalKernel->discoverServiceProviders() (line 232 of core/lib/Drupal/Core/DrupalKernel.php) after uninstalling D8 backup_migrate module using drush pm-uninstall, clearing all caches, database, ad infinitum. Perhaps some module setting remnants remain in DrupalKernal somewhere? Either way it looks like some more investigation into Symfony services is in order, and it may be time to take my pre-emptive headache medication.
Comment #2
tim.plunkettThis is not a core bug, you're installing contrib modules that are probably broken.
I have no problem installing/uninstalling working modules.
Comment #3
tr commentedIs this still an issue with the current version of Drupal 8.0.x-dev?
Uninstallation of modules which errored during install was fixed recently in #2474363: Stuck in failed module install process.
I don't think there's a problem here any more.
Comment #4
Joan_Carles commentedI've got this same error. I'm sorry but I'm not any dev so I don't know how to use git neither drush. So, could you bring some help and let me know how can I revert this module installation? Perhaps manually?
I'm completely stuck with this "fatal error" [Call to undefined function user_access() in /usr/home/www/modules/admin_menu/admin_menu.module on line 149]
This is very frustrating...
Thanks in advance.
Comment #10
tr commentedNo further information provided, so I assume the OP has resolved the issue. If this is still a problem and you can provide additional information, including steps to reproduce the issue, then feel free to reopen this issue.