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.
| Comment | File | Size | Author |
|---|---|---|---|
| rules-class-loading.patch | 2.34 KB | pillarsdotnet |
Comments
Comment #1
fagoThe 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.
Comment #2
rosemarymann commentedDuplicate of #1248348: PHP Fatal error: Class 'FacesExtendable' not found in /var/www/sites/all/modules/rules/includes/rules.core.inc on line 205".
Comment #3
pillarsdotnet commentedSo this issue is a duplicate of itself?
Comment #4
mitchell commentedNo response provided to #1, assuming fixed or no longer an issue.