Warning: Illegal string offset 'field' in RulesEntityController->buildQuery() (line 202 of /opt/development/test/sites/all/modules/rules/includes/rules.core.inc).
Warning: Illegal string offset 'field' in RulesEntityController->buildQuery() (line 207 of /opt/development/test/sites/all/modules/rules/includes/rules.core.inc).
Warning: Illegal string offset 'field' in RulesEntityController->buildQuery() (line 202 of /opt/development/test/sites/all/modules/rules/includes/rules.core.inc).
Warning: Illegal string offset 'field' in RulesEntityController->buildQuery() (line 207 of /opt/development/test/sites/all/modules/rules/includes/rules.core.inc).
Comment | File | Size | Author |
---|---|---|---|
#14 | rules-illegal-offset-field-1463678-14.patch | 1.49 KB | twistor |
#8 | rules.patch | 953 bytes | Georgique |
#7 | 1463678-php54_warning_for_field_key-7.patch | 1.37 KB | ParisLiakos |
#5 | 1463678-php4_warning_for_field_key-5.patch | 1.37 KB | ParisLiakos |
Comments
Comment #1
PedroMiguel CreditAttribution: PedroMiguel commentedTry this:
Comment #2
Letharion CreditAttribution: 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 CreditAttribution: deepbluesolutions commentedthis patch worked for me when experiencing the same errors as above. good one PedroMiguel
Comment #4
rogical CreditAttribution: rogical commentedThanks, issue solved
Comment #5
ParisLiakos CreditAttribution: ParisLiakos commentedPHP 5.4 hits again
patch against latest dev
Comment #6
ParisLiakos CreditAttribution: ParisLiakos commentedLets run the tests first, before RTBC
Comment #7
ParisLiakos CreditAttribution: ParisLiakos commentedhmm rerolling
Comment #8
Georgique CreditAttribution: Georgique commentedComment #9
mva.name CreditAttribution: mva.name commentedany news?
Comment #10
Letharion CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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
barraponto CreditAttribution: barraponto commentedGeorgique'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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: mitchell commentedComment #17
mitchell CreditAttribution: 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 CreditAttribution: nathan.bolin commentedPatch from #14 works for me running PHP 5.4.3 and Rules 7.x-2.1
Comment #20
Cholly CreditAttribution: Cholly commentedWorks for me too running PHP 5.4 and Rules 7.x-2.1
Comment #21
rogical CreditAttribution: rogical commentedworks too
Comment #22
BigCat111 CreditAttribution: BigCat111 commentedWorks for me too running PHP 5.4 and Rules 7.x-2.1
Comment #23
barraponto CreditAttribution: barraponto commentedeverybody says it works, yet no one changes the issue status :/
Comment #24
klausiCommitted patch from #14. Thanks!
Comment #26
Alexander Allen CreditAttribution: Alexander Allen commentedUpdating to the 7.x-dev version after the commit immediately fixed the issue for me. Thank you!
Comment #27
rmalcome CreditAttribution: rmalcome commentedComment #28
rmalcome CreditAttribution: rmalcome commentedTested on 7-17-2012 with a fresh D7.14 install.
Comment #30
mitchell CreditAttribution: mitchell commentedThanks for testing, rmalcome. There's still lots more patches that need testing so that they can be fixed too! :)
Comment #31
waqarit CreditAttribution: waqarit commented#14 worked for me.