Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
This is a problem with both the 1.1 version and the dev version.. I have tried both on fresh standard installed Drupal 7.9..
Test:
Install fresh D7.9
Enable Profile2 (accept to enable all dependencies)
Browse admin/structure page
Back to modules page
Disable Profile2 and save.
Server generates 500 error
Back to modules page works
admin/structure page causes 500 error
Errors in the apache error log..
PHP Fatal error: Class 'Profile2TypeUIController' not found in /var/aegir/platforms/drupal-7.9-dev4/sites/all/modules/contrib/entity/entity.module on line 937
PHP Fatal error: Call to undefined function profile2_type_access() in /var/aegir/platforms/drupal-7.9-dev4/sites/all/modules/contrib/entity/entity.module on line 427
Comments
Comment #1
Louis Bob CreditAttribution: Louis Bob commented+1
exact same issue here
Comment #2
WriteCo CreditAttribution: WriteCo commentedI have the same issue and the only way I have found to make the warning go away is to re-enable Profile2.
Comment #3
WriteCo CreditAttribution: WriteCo commentedOK.
I disabled and uninstalled Profile2 as I have tried before and got the issue. I tried to go back and re-enable it again as I have done before, but the error would not let me do that this time.
I went through phpAdmin and searched for references to Profile2. There were a few, but there was one in the generic cache table. I truncated cache and the site is back. If the error occurs again, I will go back through the other references to Profile2 in the db, rather than re-enabling this module again.
-Lauren
Comment #4
Taxoman CreditAttribution: Taxoman commentedMarked #1353886: Profile2 uninstall has caused WSOD as a duplicate of this issue.
Comment #5
Taiger CreditAttribution: Taiger commentedThis is what happens when I try clear the cache after disabling this module:
PHP Fatal error: Class 'Profile2TypeUIController' not found in /var/www/drupal/sites/all/modules/entity/entity.module on line 937
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Class 'Profile2TypeUIController' not found in
/var/www/drupal/sites/all/modules/entity/entity.module, line 937
Clearing the cache table with PhpMyAdmin sounds like the solution from the other thread.
Comment #6
markwk CreditAttribution: markwk commentedI can confirm that the clearing cache trick worked for me from this issue #1353886: Profile2 uninstall has caused WSOD
Comment #7
vaipreta CreditAttribution: vaipreta commentedRESOLVED!
You just need to truncate the cache tables: drupal_cache_form and drupal_cache
I suggest to the dev team to add the "cache cleanup" functionality in the uninstall method
Comment #8
fagoThis is yet another issue caused by #996236: drupal_flush_all_caches() does not clear entity info cache - the patch over there should solve it.
Comment #9
fagoSetting to postponed until this is fixed in core.
Comment #10
wojtha CreditAttribution: wojtha commentedThe core should be fixed. However we ran in this problem today, since we haven't upgrade the core yet.
The following magic spell combination helped me to survive this:
Comment #11
Ashlar CreditAttribution: Ashlar commented@wojtha What version of core are you running in comment #10? The most current version available on March 3, 2012 is 7.12.
Has anyone confirmed if this is corrected in the Core?
Comment #12
wojtha CreditAttribution: wojtha commented@Ashlar we are on 7.9 currently :-|
The fix was commited 2012/1/31 as you can see here: #996236-97: drupal_flush_all_caches() does not clear entity info cache
Comment #13
denjell CreditAttribution: denjell commentedthanks wojtha. brilliant.
Comment #14
Taxoman CreditAttribution: Taxoman commented