Hi all
for some reason i have on my frontpage
Fatal error: Class 'FacesExtendable' not found in ***sites/all/modules/rules/includes/rules.core.inc on line 231
Can't understand what means.
Waiting for instructions for debug or possible solutions
Best regards
ArchGalileu
www.gasparsantos.eu
www.quartetodouro.eu
www.cameratanovnorte.eu
| Comment | File | Size | Author |
|---|---|---|---|
| #61 | rules_faces_fix.patch | 2.09 KB | fago |
| #18 | 1257580-rules-email-classes.patch | 502 bytes | klausi |
Comments
Comment #1
rodrigoaguilerasub
Comment #2
cjarmstrong commentedsubscribe
Comment #3
hansrossel commentedI have the same problem. I'm using commerce and the modules needed for that.
There seems to be a lot of sites that have this, Google finds more than 1000 results
The error message is output after the
</html>tag, so is not in all browsers visible.Comment #4
hansrossel commentedchanging title, also error is on every page not only on frontpage
Comment #5
Refineo commentedsubscribe
Comment #6
andros commentedi get this not after
</html>,but in the error log on every page loaded by an not logged in user.Comment #7
yannisc commentedsub
Comment #8
codexico commentedsub
http://chillibeans.com.br
Comment #9
Refineo commentedHi,
I also got this error. Here are my test results. Did you have a simillar scenario ?
Issue
This error occured on a front page
when browsing as an anonymous user
after a new custom rule is created (disabled or enabled).
Cache pages for anonymous users turned on.
This error did not occur for an authorized user 1.
There was no error on following pages:
***/user
***/user/login
***/user/register
***/user/password
test 1
result: No error
test 2
result: No error
test 3
result: No error
Summary
The error disappeared after I turned off cache and then didn't occur after I turned on cache pages for anonymous users again.
You probably need to clear and turn off all cache mechanisms to solve this issue.
Environment
Comment #10
rodrigoaguileraJust tested that without cache the error is gone but renabling it again brings the error again
Comment #11
nelslynn commentedThis seems to be random. If I browse back and forth between two pages, the error shows up at the bottom of each page maybe 50% of the time?
Comment #12
Refineo commentedAs far as my site is concerned the error disappears after
Comment #13
rodrigoaguileranot for me
Comment #14
Refineo commentedMaybe this code can help you ?
http://drupal.org/project/registry_rebuild
Comment #15
rodrigoaguileraThanks for the help but already tried that with no luck
Comment #16
Tsuba commentedAlso if cache turn on server give 500 error for all pages, but site workin fine. And in log error Fatal error: Class 'FacesExtendable' not found in ***sites/all/modules/rules/includes/rules.core.inc on line 231
Comment #17
klausimarked #1110492: Fatal error: Class 'FacesExtendable' not found in /sites/all/modules/rules/includes/rules.core.inc on line 101 as duplicate.
Comment #18
klausiI could reproduce this issue using this comment: http://drupal.org/node/1110492#comment-4480228
After a long way of debugging, I found that the TestingMailSystem serializes messages to the variable table. On bootstrap the variables are loaded, unserialized and Drupal looks for the classes that correspond to the (nested) variables. But at this point module files are not included, so code that relies on module files will fail (the custom rules class loader for example).
So it is a problem that we include complex class variables in the email message data. The patch attached removes that.
Comment #20
klausiwtf testbot?
Comment #21
gagoo commentedHello,
I have the same issue, but only with Chrome.
No problem with firefox or safari... Strange !
Subscribe :)
Comment #22
benmalen commentedsub
Comment #23
fagothanks for tracking this down klausi.
tests are green for me -> committed.
Comment #24
Refineo commentedHi, will there be a new 7.x-2.x-dev for this patch on http://drupal.org/project/rules?
Comment #25
klausiyes, in 12 hours max.
Comment #26
gagoo commentedHi,
I updated to the 7.x-2.x-dev released on 2011-Sep-07 that should include the patch but it didn't solve the issue.
I see this error message only under Chrome, no problem with the others browsers.
Please help !
Thanks
Comment #27
benmalen commentedI am still getting this error with the latest dev release, even after clearing cache
7.x-2.x-dev tar.gz (147.31 KB) | zip (176.73 KB) 2011-Sep-08
Fatal error: Class 'FacesExtendable' not found in /sites/all/modules/rules/includes/rules.core.inc on line 231
Comment #28
klausiPlease describe the exact steps to reproduce this problem.
Comment #29
Tsuba commentedInstalled profile: Commerce Kickstart (commerce_kickstart-7.x-1.0-beta6)
This profile contain Rules and this error.
Comment #30
klausiI guess commerce_kickstart does not contain the latest Rules dev version, please update and test with the latest Rules dev package.
Comment #31
benmalen commentedThe error message seems to only appear for anonymous users, so maybe "cache pages for anonymous users" in performance options may be relevant. It appears as soon as the Rules module is enabled - no rules have to be created/activated. When logged out, bypass your browser cache (eg Firefox shift + click refresh or ctrl + F5) and you will see the message. (Browser cache may explain why some users are seeing the error in one browser and not in another.)
Comment #32
gagoo commentedI confirm that even if I clear the browswers cache on every page loading, the fatal error message appears only with Chrome.
Comment #33
hansrossel commentedI applied patch #18 and still have the error.
I actually don't see it visibly myself in any browser I have installed, but got clients with other browsers that could see it and I can see its present in the Google cache of the site). The message also becomes very visible when I import a newsletter page (a node on the site) into Mailchimp, then the message is at the bottom of every newsletter that is sent.
When Anonymous cache is turned off the error message is gone. As soon as cache is turned on again (also after clearing the cache) the error is back.
Comment #34
modoq commentedsub
Comment #35
fagoI cannot reproduce, regardless I turn anonymous caching or use chrome. There must be something else triggering this.
Comment #36
klausiI suspect that some users still have some serialized Rules objects in their variables table. They are initialized before modules are loaded, which can cause this error.
Could anyone provide a error backtrace from drush or xdebug so that we can see if it is still triggered in variables_initialize() ?
Comment #37
aspilicious commentedI have the same error for anonymous users. The only rule I have is that a mail gets send after someone adds a new node for a custom content type.
Comment #38
aspilicious commentedOk update:
I couldn't edit the rule so I suspected the rule to be broken. So I removed it and added a new one.
Error gone, me happy.
I remember something about "return array" as upgrade message. Don't remember if it was a rules upgrade message.
Comment #39
gagoo commentedOK, I have the same additional problem than aspilicious : I can't edit my rules. I have a 500 server error when I try to do that. These rules send an e-mail when a content from a custom type is saved.
I deleted these rules but the fatal error still be at the bottom on all my pages.
Comment #40
faridjame commentedThe latest dev version resolved the issue for me.
Comment #41
benmalen commentedWell I am still getting this error message. I completely removed the rules module and made sure no tables were left in the database then installed it again.
1. /admin/modules - Disabled Rules, Rules Scheduler, Rules UI
2. /admin/modules/uninstall - Uninstalled Disabled Rules, Rules Scheduler, Rules UI
3. Completely removed the rules module from /sites/all/modules
4. /admin/config/development/performance - Clear all caches
5. /admin/config/system/cron - Run cron
6. Upload Rules 7.x-2.x-dev 2011-Sep-08 to /sites/all/modules
7. /admin/modules - Enable Rules, Rules Scheduler, Rules UI
8. Log out, clear browser cache - Error message "Fatal error: Class 'FacesExtendable'"
9. Log back in, /admin/config/development/performance - Disable "Cache pages for anonymous users"
10. Log out, clear browser cache - No error message
Comment #42
JGO commentedHi,
I had the same error on the rc2 version, but fortunately the latest dev version fixed the problem for me as well!
Comment #43
mototribe commentedsub
Comment #44
Canadaka commentedsubscribe, having this issue on a couple random view XML outputs. breaks XML validation
Comment #45
fago>I deleted these rules but the fatal error still be at the bottom on all my pages.
Sounds like it is triggered by some Javascript that embeds something there, maybe drupal 7's poormanscron solution? Does disabling the "automatic crons" help? Or do you have something else embedded there?
Comment #46
buddaI've been building a site on a PHP 5.3 server for 5 months and never had any problems like this. I deployed the site on a PHP 5.2 server and instantly got the HTTP 500 error. Examining the log its just loads of this error.
PHP Fatal error: Class 'FacesExtendable' not found in /home/dinocrun/public_html/sites/all/modules/rules/includes/rules.core.inc on line 231Reading the two similar issues i don't have anything else to add apart from the PHP version difference in my case. Running Rules 7.x-2.0-rc1
Comment #47
viren.ratan commented+1
Comment #48
hansrossel commented#45, its not poormanscron, I'm not using it, also I think poormanscron does not bother if the anonymous cache is on or not and the error occurs only when anonymous cache is on.
Comment #49
benmalen commentedHmm, I am running PHP 5.2.17, so maybe this is a PHP bug?
Web server is running LiteSpeed.
Comment #50
gurvan commentedI've just updated webform, Taxonomy Views Integrator, tagadelic & site map, now I don't have any fatal error. Maybe it will help...
Comment #51
JGO commentedHmm the error is not gone. Sometimes it disappears for a while and then comes back. Probably something to do with caching
Comment #52
dangermonkey commentedSub.
Got the error this morning after updating to the rc2 release. Clearing the cache and rebuilding permissions works fine, but if I can avoid the problem entirely that would be awesome.
Also, didn't mean to change the issue details. I'm a noob at this whole posting thing!
Comment #53
cyberwolf commentedSuffered from this problem as well. Somehow a variable "drupal_test_email_collector" got set, containing a serialized instance of the RulesAction class. When loading variables it was trying to load the class as well, but somehow it couldn't as the registry wasn't initialized / completed yet. I removed the drupal_test_email_collector entry from the database and the fatal error disappeared.
Edit: apparently the TestingMailSystem MailSystemInterface implementation included in Drupal core uses the drupal_test_email_collector variable to capture all outgoing e-mail.
Comment #54
larowlanSeeing same issue on rules-7.x-2.x-dev as of today's date.
What I'm doing to cause the issue:
I have a private file field and a custom 403 page.
When an anonymous user (chrome browser) attempts to view the private file they should get the custom 403 page, instead I get a Fatal error - xdebug stack trace below.
I've removed the site_403 variable (ie back to the default) but that makes no difference.
The site has commerce and features installed if that makes a difference - the rules are mostly related to commerce.
Comment #55
yannisc commentedI keep getting the error even after clearing the cache and reloading permissions.
It appears randomly I think.
Comment #56
liliplanet commentedsubscribe thx, fatal error exists on Chrome and no other browser.
Have disabled all rules, error persists ..
Comment #57
fagoeveryone who still faces the issue, please make sure the "drupal_test_email_collector" is cleared - as described in #53.
@#54: That backtrace looks totally weird. If rules_exit() is called, rules.module is included and thus the faces autoloader must be registered.
Comment #58
gagoo commentedI don't have any "drupal_test_email_collector" in my variable table and still have this issue.
Comment #59
jviitamaki commentedSub
Comment #60
liliplanet commentedhmm, drupal_test_email_collector does not exist in my database, that's good i presume :)
Comment #61
fagook, seems like this issue persists. I've talked to klausi and we agreed upon moving to the registry for faces inclusion. This makes it impossible to install faces module besides Rules, but that doesn't matter much as I'm not going to further pursue faces. I've marked the faces module as abandoned.
I've attached the patch I've committed.
Update-notes: This makes Rules incompatible with the faces module. In case you have the faces module enabled, disable it before updating Rules!
Comment #62
larowlanThanks fago
Comment #63
JGO commentedWell I looks like that the last patch in #61 finally fixed the problem.
Comment #64
that0n3guy commentedThis fixed my issue as well...
Comment #65
juliakoelsch commentedI was having this issue, and the latest patch fixed it for me. Thanks!
Comment #66
codesmithUpdating to 7.x-2.0 today fixed this for me.
Comment #67
dangermonkey commentedSame here. So far, so good.
Comment #69
chriscalip commentederror sighted using 7.x-2.0
Comment #70
chriscalip commentedNevermind false alarm. Pardon me. was using 7.x-2.0 release candidate :)