![Announcement icon Announcement icon](https://www.drupal.org/files/styles/grid-2-2x-square/public/announcements/drupal-evergreen-logo-280X280px%20%281%29_0.jpg?itok=PHpn6rCb)
After upgrading to 7.x-2.0-rc1 (and then also the dev release from soon after) I get an internal server error when editing rules. This happens on 2 different sites on 2 different servers. One server gave the usual Internal Server Error, the other gives "No data received Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.".
Downgrading to the latest beta resolves this. Export of my rule is below, its incomplete because that's as far as I get creating the rule before I get the error.
{ "rules_rules_email_yahoo_group" : {
"LABEL" : "Email Yahoo group when new post is added to the front page",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules" ],
"ON" : [ "node_insert" ],
"IF" : [
{ "node_is_of_type" : { "node" : [ "node" ], "type" : { "value" : { "article" : "article" } } } }
],
"DO" : []
}
}
Comment | File | Size | Author |
---|---|---|---|
#32 | rules_500_fix.patch | 950 bytes | fago |
Comments
Comment #1
jared12 CreditAttribution: jared12 commentedI am having the same problem.
I got everything set up locally and it worked fine, but once it was online I got the 500 error when I tried to edit the rules.
The problem is inconsistent though. At first I was able to edit some of the rules, but not others. So I deleted a "bad" rule and remade it and then I could edit it. When I tried to change the order of the conditions, it broke again.
When I gave up last night I wasn't able to edit any of the rules. When I sat down this morning, I could edit all of them ... until I tried making changes.
I was still trying to ascertain if the problem was with my transfer to the web, my web host, the Rules module or some other update, so thanks for posting this temporary solution mstrelan. With the beta version in place everything seems rock solid again.
Comment #2
itserich CreditAttribution: itserich commentedI tried installing RC1 yesterday and was unable to do much.
Setting up a simple Rule with just an Event and a Condition, then trying to Edit it, would time out. No visible error message, simply a blank page.
Reverting to the last Beta 3 seems to work for me, thanks!
http://drupal.org/node/190124/release
Comment #3
minneapolisdan CreditAttribution: minneapolisdan commentedSame here, subscribe
Comment #4
cateye CreditAttribution: cateye commentedI confirm the same problem.
Comment #5
ciniko CreditAttribution: ciniko commentedsame issue here, any help will be much appreciated...
Comment #6
knalstaaf CreditAttribution: knalstaaf commentedSubscribing.
Comment #7
dodgecandle CreditAttribution: dodgecandle commentedsame here
Comment #8
BeaPower CreditAttribution: BeaPower commentedwill there be a release with a fix?
Comment #9
jibize CreditAttribution: jibize commentedSame problem here with a fresh install of Drupal 7.7 with Entity API 7.x-1.x-dev or 7.x-1.0-beta10, when trying to add a condition to a rule I get a
I'm on a Barracuda server. When downgrading to rules 7.x-2.0-beta3 evrything works fine.
Comment #10
Buckminster_Bond CreditAttribution: Buckminster_Bond commentedHaving the same issue. (But my server was give HTTP Error 500)
Downgrading as #9 also worked for me.
Nasty little knock on for me was the core.xxxxxx files were being created and store under public_html - these crippled the site.
(Something to watch out for if you are getting this problem...)
Two of the rules causing the problem...
and
Comment #11
owntheweb CreditAttribution: owntheweb commentedI'm having the same issue with 7.x-2.0-rc1. :(
If I save a new rule after saving a node or before saving a node: Everything is fine. If I add a condition of content is type, I get the internal server error message after saving.
If I update to the dev version with fresh dev files (no updates seem required when calling update.php either), same issue.
Thanks for the assist in advance. :)
Comment #12
meabbasi CreditAttribution: meabbasi commentedSubscribing
Comment #13
carsonwSubscribe
Comment #14
christelle41 CreditAttribution: christelle41 commentedThe same issue with the last 7.x-2.x-dev release. It only works with the last Beta 3...
Comment #15
ldweeks CreditAttribution: ldweeks commentedsub
Comment #16
bkno CreditAttribution: bkno commentedI'm getting this too, my server says "502 Bad Gateway" when trying to edit a rule. Sept 8th dev version.
Comment #17
narayanis CreditAttribution: narayanis commentedI reported this issue as a 502 error in the Barracuda queue, but it looks like it's not a BOA-specific thing at this point. sub.
Comment #18
cha0s CreditAttribution: cha0s commentedSame here, using 7.x-2.0-rc1. Only happens on the remote server. I haven't been able to get a look at the log (if any) yet to be able to provide more details. Will post it if/when I'm able to gt that extra information.
I'm also going to try my first git bisect, I'll post back if I can get anything meaningful out of that. The pain is, it only happens on the remote server...
Comment #19
sheila8stamp CreditAttribution: sheila8stamp commentedsubscribe
Comment #20
benmalen CreditAttribution: benmalen commentedsub
Comment #21
Argus CreditAttribution: Argus commentedSubcribe. 502 when trying to edit a rule.
Comment #22
leewoodman CreditAttribution: leewoodman commentedsubscribe
Comment #23
Argus CreditAttribution: Argus commentedSmall update, the 502-error was there initially, but disappeared a little later. And now it seems to work fine. Strange behavior.
Comment #24
narayanis CreditAttribution: narayanis commentedKeep an eye out. The next time you run drush cc all, it will likely come back; that's been my experience anyway.
Comment #25
leewoodman CreditAttribution: leewoodman commentedworked for me as well, is it something to do with only Logintabogan rules causing this error?
Comment #26
fagoadding tag
Comment #27
longwave#10 notes that core dumps were created, so this is probably the same as #1205834: Segmentation Fault
Presuming these reports are all segfaults, they may only occur in specific versions of PHP.
Comment #28
fagoI've tried to reproduce this with the rule-exports provided, but so far no luck! :(
So looks like the error depends on a certain environment. Could you please provide the PHP and Drupal version you are experiencing the issue with? Then, please test whether the error applies to a clean install only having entity+rules installed.
Also, what are exact steps to reproduce?
- Create new rule
- Add condition
- That's it?
Thanks!
Comment #29
fagoAlso, please report if you are using any PHP extensions (apc, xdebug, ..)
Comment #30
Buckminster_Bond CreditAttribution: Buckminster_Bond commentedSystem info for #10 - Cheers!
Apache version 2.2.17
PHP version 5.2.17
MySQL version 5.1.56
Architecture x86_64
Operating system linux
Shared IP Address 175.107.146.137
Path to sendmail /usr/sbin/sendmail
Path to Perl /usr/bin/perl
Perl version 5.8.8
Comment #31
mstrelan CreditAttribution: mstrelan commentedConfigure for the first server mentioned in the OP
Apache version unknown
PHP Version 5.2.17
MySQL version 5.1.56
Architecture x86_64
Drupal version 7.7
'./configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zend-multibyte' '--enable-zip' '--prefix=/usr' '--with-bz2' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mm=/opt/mm/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'
@fago - would it help if someone was able to PM you access to their server? Unfortunately I'm not able to for the sites that servers I have access to, but somebody else may be able to.
Comment #32
fagomh86 was able to reproduce it on his local development environment and helped to identify the source (thanks!)
It seems that a simple method_exists() check triggers a PHP bug, probably another incarnation of https://bugs.php.net/bug.php?id=51425
Please try whether removing the check fixes the problem (see patch attached).
Thanks, but looks like we found the source already :)
Comment #34
mstrelan CreditAttribution: mstrelan commented#32 fixes the problem for me. I guess an alternative would be to just wrap call_user_func in a try/catch statement, that way if method_exists() fails it fails silently.
Comment #35
ncameron CreditAttribution: ncameron commentedseconded, 32 worked for me
Comment #36
arsura2 CreditAttribution: arsura2 commentedI confirm, #32 worked for me.
Comment #37
jared12 CreditAttribution: jared12 commented#32 seems to have solved the problem for me, as well. Thanks!
Comment #38
fagook, I've added a comment to it and committed #32.
Comment #40
dafederIn case anyone thinks they are still having this error after the fix committed above, make sure to check an issue with Entity that is easily confusable with this one: #1518062: Latest DEV cause segmentation fault in drush.
Comment #41
mitchell CreditAttribution: mitchell commentedUpdated component.
Comment #42
pthornhi6 CreditAttribution: pthornhi6 commentedI had the same problem. Couldn't edit or clone and rule that had a redirect in it. I was using Rules 7.x-2.6. I went back to rules 7.x-2.0-beta3 and all is well.
Comment #43
mctwist CreditAttribution: mctwist commentedI was getting an Internal Server Error when trying to add a condition for an Ubercart action (customer completes checkout). I wanted to add a condition that the order included a specific product. I would get the error UNLESS I first included a "Entity Includes Field" condition.
Hope this helps someone.
Comment #45
mattbk CreditAttribution: mattbk commented@mctwist #43: Can you clarify what you entered for Entity and Field? I'm a little confused by the "Entity has Field" screen.
Thanks!
Comment #46
Emilio13 CreditAttribution: Emilio13 commentedI had the same problem. I was using Rules 7.x-2.6.
Comment #47
cshema CreditAttribution: cshema commentedWhen I am trying to edit the following rule , I get Segmentation Fault.
The configuration in which the problem is occurring is:
Drupal core : 7.31
Rules : 2.7
Php Version : 5.2.6
When the rules module is reverted to version rules-2.0-beta3, I am able to edit the rules.
Comment #48
cshema CreditAttribution: cshema commentedSeems a number of people are experiencing an issue here.
Comment #49
cshema CreditAttribution: cshema commentedAfter upgrading the rules module to 7.x-2.x-dev development version (PHP version 5.2.6, Drupal Core 7.31), I am able to edit the existing rules. I am also able to specify multiple OR conditions in a single rule and everything is working fine. So it looks like the current development version fixes this issue.
Comment #50
cshema CreditAttribution: cshema commentedComment #51
brad.bulger CreditAttribution: brad.bulger commentedi couldn't trace the exact problem, but i suspect that it may be something about PHP 5.2 vs later versions. Rules 2.7 works without problems on a system running PHP 5.3, but on the PHP 5.2 system, it dies trying to call the buildContent() method on a RulesAbstractPluginUI object.
installing 2.x-dev fixes the problem for me as well.
Comment #52
kossumov CreditAttribution: kossumov commenteddisabling Extendable Object Faces API module solved it for me