Closed (fixed)
Project:
Model Entities
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2012 at 16:12 UTC
Updated:
4 Aug 2015 at 14:54 UTC
Jump to comment: Most recent
Comments
Comment #1
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 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 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 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 commentedExtra information is added regarding project rooms
Comment #5
anybodyComment #6
anybodyComment #7
anybody