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

Louis Bob’s picture

+1
exact same issue here

WriteCo’s picture

I have the same issue and the only way I have found to make the warning go away is to re-enable Profile2.

WriteCo’s picture

OK.

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

Taxoman’s picture

Marked #1353886: Profile2 uninstall has caused WSOD as a duplicate of this issue.

Taiger’s picture

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

markwk’s picture

I can confirm that the clearing cache trick worked for me from this issue #1353886: Profile2 uninstall has caused WSOD

vaipreta’s picture

RESOLVED!
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

fago’s picture

This is yet another issue caused by #996236: drupal_flush_all_caches() does not clear entity info cache - the patch over there should solve it.

fago’s picture

Status: Active » Postponed

Setting to postponed until this is fixed in core.

wojtha’s picture

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

drush sqlq "TRUNCATE TABLE cache"
drush registry-rebuild
Ashlar’s picture

@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?

wojtha’s picture

@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

denjell’s picture

thanks wojtha. brilliant.

Taxoman’s picture

Status: Postponed » Fixed

Status: Fixed » Closed (fixed)

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