Closed (duplicate)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Rules Core
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 May 2014 at 21:01 UTC
Updated:
10 Sep 2018 at 03:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
strawman commentedyup. Whole site fully down now... :(
Not even using Drush. Just the regular install.
Any solution?
Comment #2
strawman commentedCould really use a hand on this as I'm needing the awesomeness of Rules...
I have the domain module installed which was my only thought as to why it might have some issues but am unsure. I've looked around and have spotted some other folk in the same situation though not necessarily on a clean install.
Currently running:
Drupal 7.28
ctools 1.4
date 2.7
domain access 3.11
service links 2.2
views 3.8
jquery update 2.4
ckeditor 1.14
and a few smaller modules that I feel would be outside of the issue considering what they do and what I've looked at within their code.
I currently have Rules 2.7 installed on a Drupal 7.26 site, so I'm not sure if there is a conflict between 7.28 and 7.26 with Rules.
The error I'm receiving is the same as dunecat lists in the main description.
Any other info needed?
Comment #3
strawman commentedSo Dunecat,
I came accross a patch that will atleast get the module installed. Its from another issue but seemed to work at least. The patch is located here. : https://drupal.org/files/1541888-rules-RulesEventSet-10.patch
The line numbers are different since its for an older version but apparently it works well. At least Rules is installed and working well so far.
so apply the patch to line 336 instead of the line 224 mentioned in the patch.
Hope this helps :)
Comment #4
kappaluppa commentedDid you ever figure out what is happening here? I am getting this error everytime I run update.php, and same thing- site goes down. I just have to reload the page and and the site comes back.
This happened with Drupal 7.27 & now 7.28. I'm also using Rules 7.x-2.7.
Comment #5
strawman commentedI basically followed this thread here:
https://www.drupal.org/node/1541888#comment-8864473
And applied the patch mentioned in comment 15
All is backup and running apparently even with my recent update to D 7.28 :)
Hope this helps.
Comment #6
dunecat commented@strawman
sorry, I kind of fell out of the loop lately. Thanks a lot for your suggestion.
I didn't try the patch yet, as I figured that I didn't have to use rules for what I needed finally. I will let you know as soon as I try to apply it.
@kappaluppa
I think this issue/thread might be relevant for the explanation of what's going on and why everything crashes
https://www.drupal.org/node/2090511
I have an impression that with 2.7 version something similar going on.
Comment #7
bigbozz commentedSame problem here.
(well-known) solution that make the site work again after WSOD. Delete the module on ftp.
[sitename]/sites/all/modules/rules.
@Strawman: no conflict between 7.26 en 7.28. I have 7.28 and the same problem.
But when i try to apply the patch, i get serval other errors... Do i something wrong?
EDIT: sorry, the patch and the module works fine now. I had forgotten a '}' in the code. Forget what I said please.
Comment #8
fyberoptik commentedSame issue, I deleted the module from the directory and refreshed the site.
Managed to comment out the lines 334 to 337 in rules.module, this let me re-enabled the rules module successfully.
I then undid the changes to lines 334-337 and the module is working fine now.
Bit of a hack and not ideal, but got the job done.
Comment #9
Martin. commentedI created the patch for this version using the patch given in comment #5. It allows to install the project correctly.
Comment #10
begun commentedThe patch in #9 solved this issue on my system.
Comment #11
dave kopecekI was able to fix my WSOD with REGISTRY REBUILD:
https://www.drupal.org/project/registry_rebuild
This doesn't fix the cause of the underlying issue, but once the registry was rebuilt everything seemed to click back into place.
Comment #12
burningdog commentedI had the same issue - couldn't even enable Rules on a site because of this error. Patch at #9 fixed it.
I don't see any downsides of wrapping
RulesEventSet::rebuildEventCache();in aif (class_exists('RulesEventSet')) {statement.Comment #14
druderman commentedThis work-around seems to work for our server environment here which was exhibiting the problem. I think it has to do with APC and opcode caching and race conditions. It actually installs just fine in my LAMP stack and elsewhere.
Site Fix
Getting Rules to Work
$ drush --select dl rules
$ drush en rules
$ drush dl rules
$ drush updatedb
This issue is probably related.
https://www.drupal.org/node/2090511
Comment #15
rlmumfordThis is definitely critical. The idea that a module as important as rules can't be installed on any sites is insane!
Comment #16
theroyal commentedDruderman,
Thanks, your #14 solution seems to fix my problem,
I was not able to enable rules 2.7 on drupal 7.34 , it gives me WSOD,
but after deleting rules module from my module directory,
then downloaded v 2.3 and enabeling it, it didnt crash,
then deleted the rules directory
then downloading rules 2.7
then run update.php
it fixed 4 changes, i think one of them or more was my problem.
and now rules is working
but i need to test it deeply.
Thanks man you made my day :) after 4 hard days and nights. :)
Comment #17
btopro commentedconfirming this issue. wasn't even able to undo via registry_rebuild (a new 1st for me!) and had to disable via database system table THEN run registry rebuild
Comment #18
btopro commentedre-roll of this patch, fixes issue for me and on to OTHER issues similar :)
Comment #20
markchitty commented+1 on the fix in #14.
Comment #21
fagoRules 2.8 received some improvements which make it not run when drupal is not boostrapped. Please, verify the issue is there with 2.8 or later as well.
Comment #22
Leeteq commentedComment #23
satoj commentedI applied # 9 "Rules-RulesEventSet-2275963.patch" on this page and the error was resolved. Thank you very much!
In addition to this error, an error occurred in the flag module, so it was patched together.
Comment #24
alexanderpas commentedJust got it on Pantheon after clearing caches trough the dashboard, with Rules 2.9
For reference: Before clearing caches trough the dashboard, I was having the Unable to allocate memory for pool. warning from this article:
https://pantheon.io/docs/articles/sites/what-is-apc-and-what-is-it-used-...
After about 15 minutes, the error went away, but it is reproducable.
Comment #25
magicmyth commentedI've just run into this issue myself but not on a new install of Rules but a site that has recently upgraded to Rules 2.9. It does not appear to trigger on all pages but certainly does on dblog and the maintenance page. The issue did not show itself right away but a couple days later. The patch from 18 allowed the site to function again but that seems to be more of a workaround than a real solution. I have a near identical site that has yet to hit this issue so I'm not sure what the criteria for causing it is.
I was wondering if anyone here is using Elysia Cron running frequently via a crontab triggered drush command? I am seeing a lot of:
and every once in a while
in my logs. Anyone else see similar when they get this issue? PHP has 256mb of memory available to it so I'm surprised to see an unable to allocate memory error.
I've modified the patch slightly so that it logs when the RulesEventSet class cannot be found so I can better keep an eye on the issue and hopefully find a clue to report.
Comment #26
chrisnovak commentedWanted to let people know on this thread that I saw this error on a production site where the client said they had not changed anything. After running registry rebuild which fixed the issue, we realized that there were PHP out of memory issues being logged. Looks like out of memory issues can cause the registry to be corrupt?
Comment #27
vacilando commenteddrush rrsolves this indeed.Comment #28
oleksii.tsulun commentedHi!
I've uploaded the patch for Rules 7.x-2.7.
Comment #29
tormiPatch against 7.x-2.x-dev.
Comment #30
tr commentedComment #31
tr commentedDuplicate of #1541888: PHP warnings when calling method RulesEventSet::rebuildEventCache()