1. Install module model
2. Check that model db table is created
3. Go to admin/modules#other
4. deselect model
5. press save configuration
6. You will receive `Fatal error: Class 'ModelUIController' not found in D:\Drupal\d7\sites\all\modules\entity\entity.module on line 937`
7. after that drupal goes crazy. See screenshot.
The name ModelUIController seems to reside in Drupal's cache table.
I have the same problem with uninstalling project/rooms. I guess you are the same person who wrote project rooms.
I am a drupal newbie starting to learn entities with this project so I am not much of a help yet. For the moment I can only report it :-)
Comment | File | Size | Author |
---|---|---|---|
drupal-model-uinstall.jpg | 227.42 KB | liad |
Comments
Comment #1
rogical CreditAttribution: rogical commentedcompletely the same issue:
"PHP Fatal error: Class 'ModelUIController' not found in /opt/development/test/sites/all/modules/entity/entity.module on line 937"
Comment #2
stevesmename CreditAttribution: stevesmename commentedI noticed this issue was posted recently but also noticed that your using version "7.x-1.x-dev" - Have you tried the latest stable version? "7.x-1.0-alpha2", currently listed on the project page.
I tried the Model project as-is with no alternations to the code and the uninstall functionality had worked fine.
If your attempting to build a custom module, using model project as a base starter - you may want to zip and post your module as an attachment for someone to fully review what is happening with your custom alterations.
Comment #3
wojtha CreditAttribution: wojtha commentedThis is a core bug #996236: drupal_flush_all_caches() does not clear entity info cache which should be fixed in the latest stable. Read the discussion in the Entity module issue queue here: #1352422: Uninstall breaks site.
Comment #4
aangel CreditAttribution: aangel commentedI just came across a related issue after attempting an uninstall.
When the uninstall failed, I manually changed the status of the module in the system table to 0. Then I manually deleted the tables.
However, the site still produced an error ("entity type model_type not found") and I narrowed it down to the $entity_info = module_invoke_all('entity_info'); in common.inc, line 7321.
I tried clearing the cache ("drush cc all"), then the registry ("drush rr") then the entity cache ("drush ev entity_inf0_cache_clear"), to no avail.
Turns out Drupal was still firing the model.module's entity_info(), even though the module was disabled. I had to remove the module from the directory entirely to clear the error.
It seems that this is known behavior and is being examined in this issue:
Ensure that disabled modules maintain data integrity
Comment #4.0
aangel CreditAttribution: aangel commentedExtra information is added regarding project rooms
Comment #5
AnybodyComment #6
AnybodyComment #7
Anybody