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

haza’s picture

Status: Closed (duplicate) » Postponed (maintainer needs more info)

Do 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.

damien tournoud’s picture

Status: Active » Closed (duplicate)

We are going to get this fix in the new Rules version.

SandraVdv’s picture

Status: Postponed (maintainer needs more info) » Active

I 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?

damien tournoud’s picture

Status: Active » Closed (duplicate)

Both 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 :)

won’s picture

Was 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).