This is an attempt to reopen issue #1689326 for drupal 7 again. It appears the issue was fixed for 8, but the fix was never backported. I'm running into the issue on an open atrium install, and so far it seems like my best option may be to reinstall open atrium to get the issue resolved. The code for `entity_get_controller` is identical on the latest open atrium version and the latest drupal 7 core.

Steps to reproduce:

install open atrium
`drush en oa_workbench`

It appears that this causes drupal to believe there should be a WorkbenchModerationProfileController, that doesn't exist. which causes the following error:

PHP Fatal error:  Class 'WorkbenchModerationProfileController' not found in /path/to/drupal/includes/common.inc on line 8038
Drush command terminated abnormally due to an unrecoverable error.                                           [error]
Error: Class 'WorkbenchModerationProfileController' not found in
/path/to/drupal/includes/common.inc, line 8038

trying to get a controller that doesn't exist seems to pretty much break drupal. I caused it by trying to install a module and now can't disable the module or anything. I don't know how to fix it beyond starting again from scratch, and large segments of the admin interface no longer show up. I think this probably qualifies for the Critical priority.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ultrabob created an issue. See original summary.

ultrabob’s picture

Just in case it helps someone else, running `drush rr`, cleaned out the issues I was having so I could disable oa_workbench without having to reinstall. I'm not really sure what happened. When I reenabled the module again I didn't run into the same issues again.

cilefen’s picture

Title: entity_get_controller and null $class problem » [D7] entity_get_controller and null $class problem
Priority: Critical » Major
Related issues: +#1786026: PHP Fatal error: Class 'EntityCacheNodeController' not found in includes/common.inc

#45111 isn't an issue number. Can you update it? Since there is a workaround, this is not critical.

cilefen’s picture

ultrabob’s picture

Issue summary: View changes
ultrabob’s picture

Thanks for finding the original parent issue, I'm not sure what number I had copied there. I don't understand enough about what is going on here to know, but since the related issue you added is closed as a duplicate of #2441965, is this issue also a duplicate?

ethomas08’s picture

Created a patch that works for drupal core 7.91 from what others have suggested in the drupal 8 issue. This works for our drupal 7 instance.

poker10’s picture

Status: Active » Closed (duplicate)

Thanks for the patch, but this seems to be a duplicate of #1982810: Core entity_get_controller gets a NULL controller class. In this issue is a broader discussion on how is the best way to fix this (also from D7 maintainer).