Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.I have developed a drupal 8 commerce website for a customer.
I have installed commerce reports alpha version.
And it was working well until certain situation where the module couldn't execute its batch progressing.
I though. "It's ok. I'll uninstall the module. Reinstall it. Maybe that will restore it to its defaults and fixes the problem."
Head to extend section and uninstalled the module. And here was the shock. The entire website stopped working providing me with the only famous message.
The website encountered an unexpected error. Please try again later.
Only the admin area stopped working, the front end was wroking well!
I headed to the log file to see this error record:
[22-Jul-2018 22:25:19 UTC] Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Route "commerce_reports.configuration" does not exist." at /home/kats/public_html/core/lib/Drupal/Core/Routing/RouteProvider.php line 202
Seems like Drupal broke in the middle of the uninstallation process.
and The only thing I could do is to restore a db backup (working in production environment).
Comments
Comment #2
maboresev commentedHello Wisamx,
I have thought about your problem and I think that it's not a Drupal Core bug. You use a contrib module (Commerce Reporting) which makes by default at least a content type. I don't know why, but module configuration could not be deleted completely when you uninstall this module (I checked that it has an schema's configuration file, but it could be not well defined). This is the reason why you have problems reinstalling the module.
Please, check it.
Comment #3
Wisamx commentedThanks @maboresev for your response.
What fears me is that me also don't know why module configuration could not be deleted completely, and Drupal couldn't handle the error by it self.
What I think is that Drupal (in such situation "Route "commerce_reports.configuration" does not exist.") should have its own way of ignoring such minor error. instead of broking the whole website.
as a Wordpress developer I love its way of preventing the site from being broken when a plugin make a fatal error or its directory removed.
Wordpress automatically disables (not uninstalls) the plugins in such cases.
Drupal 8 misses the Module Disabling feature.
Comment #8
catchMoving to commerce reports module.
Comment #9
avpadernoBasing on the link given in the issue summary, this report was supposed to be posted for the Commerce Reports project, now renamed Commerce Reporting.