Upgraded all modules via "git pull" and immediately started getting tons of the following in my error logs:

PHP Fatal error: Class 'FacesExtendable' not found in /var/www/sites/all/modules/rules/includes/rules.core.inc on line 205"

I was finally able to run update.php by commenting out major portions of rules.core.inc.

While investigating the problem, I noticed that "faces.inc" appears to be copied from the faces module, so I also installed that module, and modified the rules module so that it prefers faces/faces.inc over rules/includes/faces.inc in rules_autoload().

I'm including this along with some other changes I had made in reaction to previous class loading problems and would appreciate a review.

CommentFileSizeAuthor
rules-class-loading.patch2.34 KBpillarsdotnet

Comments

fago’s picture

Status: Needs review » Postponed (maintainer needs more info)

The idea is that faces gets loaded from the faces module via the registry (if it is installed). So we should not have to change our class loader.

> PHP Fatal error: Class 'FacesExtendable' not found in /var/www/sites/all/modules/rules/includes/rules.core.inc on line 205"
Sounds like the rules.module was not loaded yet, but Rules is already triggered somewhere. If that happens, then this is the source of the problem. So we need to find out why/when this happens and avoid that.

rosemarymann’s picture

pillarsdotnet’s picture

Status: Closed (duplicate) » Postponed (maintainer needs more info)

So this issue is a duplicate of itself?

mitchell’s picture

Component: Rules Engine » Rules Core
Status: Postponed (maintainer needs more info) » Fixed

No response provided to #1, assuming fixed or no longer an issue.

Status: Fixed » Closed (fixed)

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