Please help me,

After I update from rules 2.4 to 2.5 I received the follow error messages, and the system doesn't work again. Please somebody has any idea who to solve this issue.

I'll appreciate.

Recoverable fatal error: Argument 2 passed to SelectQuery::fields() must be an array, null given, called in /home4/lemdeals/public_html/empleos/includes/entity.inc on line 279 and defined en SelectQuery->fields() (línea 1300 de /home4/lemdeals/public_html/empleos/includes/database/select.inc).

Luis

Comments

fago’s picture

Title:Recoverable fatal error» Recoverable fatal error: Argument 2 passed to SelectQuery::fields() must be an array, null given,
Priority:Critical» Major

Strange. Which php version are you running? Does no one else experience this?

jayhawkfan75’s picture

I received a similar error when trying to create a simple "send email after saving comment" rule with 7.x-2.5:

Recoverable fatal error: Argument 1 passed to RulesEventHandlerEntityBundle::extractFormValues() must be an array, null given, called in \mysite\sites\all\modules\rules\ui\ui.forms.inc on line 485 and defined in RulesEventHandlerEntityBundle->extractFormValues() (line 362 of \mysite\sites\all\modules\rules\includes\rules.event.inc).

I've flushed the caches, ran CRON and ran update.php, but the error still appears. I guess I might try to revert back to a previous version as a temporary fix. I haven't messed with Rules in awhile, which is probably why I just saw this.

Update:
Reverting to 7.x-2.3 made the error go away.

abrlam’s picture

Issue summary:View changes

I think this is a duplicate issue. I filed a similar one (same error as jayhawfan75) a while back.

Drupal 7.22
PHP Version 5.5.9-1ubuntu4.5
Rules 7.x-2.3+20-dev

There's 2 ways to get around this issue:
1. As jayhawfan75 suggested, revert back to 7.x-2.3
2. Make a clone of an existing rule and work from there