Closed (duplicate)
Project:
Model Entities
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2011 at 17:16 UTC
Updated:
15 Dec 2011 at 08:38 UTC
On a fairly clean 7.8 installation, when trying to disable this module I get a fatal error:
Fatal error: Class 'ModelTypeUIController' not found in .../sites/all/modules/entity/entity.module on line 893
After receiving this error, I tried disabling the entity api contrib module via drush, which worked. However when I then tried to uninstall the Model module, I get the following:
Fatal error: Call to undefined function entity_exportable_schema_fields() in .../sites/all/modules/model/model.install on line 107
Comments
Comment #1
webankit commentedhttp://drupal.org/node/1158084#comment-5155612
Apply this patch, when using Model+entity-dev
Comment #2
bkildow commentedThis doesn't seem to fix the issue. It looks it is making a call to load the entity_ui_controller and for some reason trying to pass in the model_type, even though it is in the process of being disabled. I wonder if it is somehow stuck in cache (it looks like the code uses the drupal static cache, which I'm not too familiar with yet). The test I did was install a clean drupal 7 site, install Model and all dependencies, then uncheck the module. Here is part of the backtrace when I uncheck:
Fatal error: Class 'ModelTypeUIController' not found in .../sites/all/modules/entity/entity.module on line 937Comment #3
bkildow commentedSorry, the patch did help with the:
Fatal error: Call to undefined function entity_exportable_schema_fields() in .../sites/all/modules/model/model.install on line 107However, I'm still getting the other error. There seems to be a similar error with the Profile2 module: http://drupal.org/node/1314780. Perhaps an issue with the entity_api?
Comment #4
webankit commentedhttp://drupal.org/node/1122812 (Read this issue)
The entity api has been updated and these modules have not updated.
Comment #5
nerdacus commentedI get the same 'UIController class not found' issue when *disabling* my modules. Afterwards, I can re-enable/uninstall/re-install without any noticeable hiccups.
It seems to be a little 'random' at times and that clearing the cache before disabling appears to guarantee that the error will not show.
Also, it happens on random modules (that I have built), not the same one over and over again.
I am using:
Drupal 7.8 (will be updating to 7.9 soon)
Entity API 7.x-1.0-beta11
and few other 'small projects': IMCE, WYSIWYG, etc.
I am not using this project (yet), just stumbled upon this issue via Google, so I believe it is more of an Entity API issue.
Edit: Also the entities are very basic, not exportable, not fieldable. I'm just using them as robust, glorified classes.
Hope this helps,
-Marcus
Comment #6
fagosee #1325126: uninstallation troubles due to outdated entity info
and #996236: drupal_flush_all_caches() does not clear entity info cache
Comment #7
dreed47 commentedI don't believe this issue should be closed. This module needs to have an uninstall hook to clear the static entity cache.
Comment #8
DrMiaow commentedThis could be a fluke, and I'm completely new to Entities, but I found that the following resolved my issues
Move all the UIController classes out of the .inc and into the .module