The function conditional_fields_dependency_delete() is sometimes called without any dependees. This generate the following error.

Invalid argument supplied for foreach() conditional_fields.module:1164 [warning]
WD php: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual [error]
that corresponds to your MySQL server version for the right syntax to use near ')' at line 1: DELETE FROM {conditional_fields}
WHERE (); Array
(
)
in conditional_fields_dependency_delete() (line 1170 of
sites/all/modules/contrib/conditional_fields/conditional_fields.module).
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1: DELETE FROM {conditional_fields}
WHERE (); Array
(
)
i conditional_fields_dependency_delete() (rad 1170 av sites/all/modules/contrib/conditional_fields/conditional_fields.module).
Drush command terminated abnormally due to an unrecoverable error. [error]

CommentFileSizeAuthor
rebuilderror-1365036-1.patch655 bytesfrippuz

Comments

emattias’s picture

I got this after applying the features patch in #1275284: Features don't appear to be working. I've submitted a patch that fixes the unrecoverable error problem with rebuild, in that issue.

peterpoe’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.