Error: Class 'RulesEventHandlerEntityBundle' not found in /sites/all/modules/contrib/rules/modules/node.rules.inc,
line 135

Here is the history of my Rules installation:

Upgraded from Drupal 6 to 7. I am currently using Drupal Commerce and Field Collections. I have a couple of rules that creates a product from a node with data attached it via a Field Collection, in addition to the standard Drupal Commerce Rules.

I received this error

Error: Class 'RulesEventHandlerEntityBundle' not found in /sites/all/modules/contrib/rules/modules/node.rules.inc,
line 135

as soon as I copied the Development Release to my Modules directory... (Didn't have the option to even update the data base because the entire site would display this error. I have since removed the Development Version and have restored the latest stable release.

Comments

klokie’s picture

Status: Active » Closed (duplicate)

I'm also seeing this; looks like a duplicate of #2048003: Fatal error: Class 'RulesEventHandlerEntityBundle' not found.

csmcreative’s picture

Check out this article and scroll down until you see the bash script. When you start messing with modules, updating, etc your permissions get messed up. Run this and I guarantee it will settle your issues. https://drupal.org/node/244924
If you don't have access to the root on your server, I'm sure there is another way. For me, permissions and Drupal can be a real headache. Check it out though. I use this daily.
-Chris

brad.bulger’s picture

how would file permissions be relevant to this error at all?

rbrownell’s picture

I unfortunately don't have root access. I read elsewhere (#1962020: Integrity constraint violation: 1062 Duplicate entry 'rules_empty_sets' for key 'PRIMARY') that one should run update.php and clear the cache... Little help that is considering how I can't! I will try to disable the module. Copy the files and then run update.php and clear the cache and then enable the module and see what happens.

BOGUƎ’s picture

Just ran into the same problem here, running update.php did the trick for me.

You shouldn't need root access to the filesystem for that: just go to http://[your_site]/.update.php . If you can't log in, try temporarily disabling access control by setting $update_free_access to TRUE in /sites/default/settings.php (don't forget to set it back to FALSE when you're done!).

sjhuskey’s picture

Agreeing with #5. Running update.php fixed the issue.

rbrownell’s picture

Status: Closed (duplicate) » Closed (fixed)
mikebrooks’s picture

Not able to log in as user1 in order to run update.php, I was able to resolve the problem by running the drush updatedb command via an SSH session.

camerongreen’s picture

See here for fix that worked for me:

https://drupal.org/node/2090511

krutibhakta’s picture

The following should solve any troubles using drush:

drush dl rules
drush updatedb
caiosba’s picture

#10 worked for me too.

spideep’s picture

#5 solved my problem

fonski’s picture

Issue summary: View changes

#10 did the work. Thanks

grincon’s picture

+1 for #10