Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2012 at 06:17 UTC
Updated:
26 Aug 2016 at 11:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
PedroMiguel commentedTry this:
Comment #2
Letharion commentedThere is a similar issue against core #1414412: Skip #conjunction key in __clone() method of core/includes/database/query.inc, which may be interesting to read.
Comment #3
deepbluesolutions commentedthis patch worked for me when experiencing the same errors as above. good one PedroMiguel
Comment #4
rogical commentedThanks, issue solved
Comment #5
ParisLiakos commentedPHP 5.4 hits again
patch against latest dev
Comment #6
ParisLiakos commentedLets run the tests first, before RTBC
Comment #7
ParisLiakos commentedhmm rerolling
Comment #8
Georgique commentedComment #9
mva.name commentedany news?
Comment #10
Letharion commented@mva.name Please refrain from asking "any news?". This issue _is_ the news, and you can clearly derive from it what has and has not happened. Posts like yours only serves to waste time from the developers that now need to check the issue once extra.
Please test that patch instead, and _provide_ news, instead of asking for it.
Comment #11
mva.name commented@Letharion, okay, sorry for annoying.
I've just saw that it is no activity for two weeks, when last patch is worked. An think that all participiants of issue have forgetten about it. And that's why I asked metaquestion.
Also, as I said, last patch seems to works fine on 7.x-2.x-dev.
--
Best regards,
mva
Comment #12
Letharion commentedI very much doubt people have "forgotten" about the issue, however, there are a great many issues, and others take priority, when mostly voluntary the developers with their very limited time can contribute at all.
The patch has not passed tests yet. There are other failing tests currently blocking this one, so the test suite hasn't even executed yet. It should remain in "needs review" until it gets green light from the test bots.
If you want to move this issue forward, find or file an issue about the failing i18n tests, and help getting that working.
Comment #13
barrapontoGeorgique's patch is trivial and fixes the issue. Not checking whether an array offset exists is a almost a typo in PHP programming.
I hope the bot issue is fixed soon.
Comment #14
twistor commentedThe above patch misses what is really happening here.
QueryConditionInterface::conditions() returns an array that contains a string as well as the arrays that we are looking for. That's where the illegal offset is coming from.
Comment #15
shaiss commentedThanks! That patch worked for me. I accidentally updated to php 5.4 dev and got this error on my debian box. For now it works till I figure out how to go back to php 5.3
UPDATE** I restored a copy of my site before applying this patch and the issue appeared as expected. I copied my site to my dev host running php 5.3.1 and the issue went away. A similar issue is happening with the Entity module: http://drupal.org/node/1514764#comment-6070950
Comment #16
mitchell commentedComment #17
mitchell commentedAdded to RTBC list, since that was what klausi was reviewing. This is a better approach. Still, more confirmations would be helpful.
Comment #18
agileadamPatch from #14 works for me with Rules 7.x-2.1 on PHP 5.4
Comment #19
nathan.bolin commentedPatch from #14 works for me running PHP 5.4.3 and Rules 7.x-2.1
Comment #20
Cholly commentedWorks for me too running PHP 5.4 and Rules 7.x-2.1
Comment #21
rogical commentedworks too
Comment #22
BigCat111 commentedWorks for me too running PHP 5.4 and Rules 7.x-2.1
Comment #23
barrapontoeverybody says it works, yet no one changes the issue status :/
Comment #24
klausiCommitted patch from #14. Thanks!
Comment #26
alexander allen commentedUpdating to the 7.x-dev version after the commit immediately fixed the issue for me. Thank you!
Comment #27
rmalcome commentedComment #28
rmalcome commentedTested on 7-17-2012 with a fresh D7.14 install.
Comment #30
mitchell commentedThanks for testing, rmalcome. There's still lots more patches that need testing so that they can be fixed too! :)
Comment #31
waqarit commented#14 worked for me.