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 :-)

CommentFileSizeAuthor
drupal-model-uinstall.jpg227.42 KBliad
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rogical’s picture

Priority: Normal » Major

completely the same issue:

"PHP Fatal error: Class 'ModelUIController' not found in /opt/development/test/sites/all/modules/entity/entity.module on line 937"

stevesmename’s picture

Category: bug » support
Status: Active » Reviewed & tested by the community

I 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.

wojtha’s picture

This 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.

aangel’s picture

I 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

aangel’s picture

Issue summary: View changes

Extra information is added regarding project rooms

Anybody’s picture

Anybody’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.