Closed (duplicate)
Project:
Commerce Kickstart
Version:
7.x-1.8
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2012 at 10:19 UTC
Updated:
26 Jul 2012 at 12:14 UTC
When I download the Commerce Kickstart v 7.x-1.8 and run the installation profile for Commerce Kickstart I get the following warnings after installation of the modules:
Warning: Illegal string offset 'field' in RulesEntityController->buildQuery() (line 202 ....\profiles\commerce_kickstart\modules\rules\includes\rules.core.inc).
Warning: Illegal string offset 'field' in RulesEntityController->buildQuery() (line 207 of ....\profiles\commerce_kickstart\modules\rules\includes\rules.core.inc).Anyone experienced this before?
Comments
Comment #1
hazaDo you use PHP 5.4 ? According to this issue #1463678: Illegal string offset 'field' in RulesEntityController->buildQuery() on php 5.4, this happen on PHP 5.4.
And since we use rules 2.1 on kickstart 1.x (see http://drupalcode.org/project/commerce_kickstart.git/blob/refs/heads/7.x...), you won't get this patch.
So, if you use php 5.4, please upgrade rules to the lastest -dev version. (make a backup before)
If that works, please confirm that here.
Comment #2
damien tournoud commentedWe are going to get this fix in the new Rules version.
Comment #3
SandraVdv commentedI can't use drush to update rules.. it gives errors containing the entity api module..
How do you guys suggest I update the rules module? It is not desirable to overwrite the rules folder in the profiles directory I think? Isn't that like hacking core?
Comment #4
damien tournoud commentedBoth Entity and Rules trigger warnings or notices on PHP 5.4 (so does Entity Reference). For now, just use PHP 5.3 or wait for the modules to update :)
Comment #5
won commentedWas seeing something similar happen after updating media and video modules.
Updated to the dev version of rules (rules-7.x-2.x-dev) as per suggestion and it no longer presents the error message (using PHP 5.4.4).