Fatal error, cannot uninstall module

Created on 26 January 2024, 11 months ago

1. Disable module through Modules page or drush
2. Go to admin/modules/uninstall/ and try to uninstall Total Control
You get Fatal error The website encountered an unexpected error. Please try again later.

Dblog: Error: Call to undefined function views_get_all_views() in total_control_uninstall() (line 104 of/sites/all/modules/total_control/total_control.install).

Try to uninstall via drush:

drush pmu total_control
The following modules will be uninstalled: total_control
Do you really want to continue? (y/n): y
WD php: Error: Call to undefined function views_get_all_views() in total_control_uninstall() (line 104 of                                                       [error]
/htdocs/sites/all/modules/total_control/total_control.install).
Error: Call to undefined function views_get_all_views() in total_control_uninstall() (line 104 of /htdocs/sites/all/modules/total_control/total_control.install).
Drush command terminated abnormally due to an unrecoverable error.            

Update: OK in the middle of writing this post I realized the top errors are caused with Views disabled.

But you still can't uninstall with Views enabled. Errors with Views enabled:

dblog: Error: Call to undefined function ctools_object_cache_clear() in total_control_uninstall() (line 116 of htdocs/sites/all/modules/total_control/total_control.install).

drush:

/htdocs # drush dis total_control -y
The following extensions will be disabled: total_control
Do you really want to continue? (y/n): y
total_control was disabled successfully.                                                                                                                        [ok]
/htdocs # drush pmu total_control -y
The following modules will be uninstalled: total_control
Do you really want to continue? (y/n): y
WD php: Error: Call to undefined function ctools_object_cache_clear() in total_control_uninstall() (line 116 of                                                 [error]
/htdocs/sites/all/modules/total_control/total_control.install).
Error: Call to undefined function ctools_object_cache_clear() in total_control_uninstall() (line 116 of /htdocs/sites/all/modules/total_control/total_control.install).
Drush command terminated abnormally due to an unrecoverable error.
🐛 Bug report
Status

Closed: duplicate

Version

2.4

Component

Code

Created by

🇱🇹Lithuania vibrasphere

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024