Site breaks with the error

InvalidArgumentException: Cannot set a list with a non-array value. in Drupal\Core\TypedData\Plugin\DataType\ItemList->setValue() (line 59 of .../Drupal/Core/TypedData/Plugin/DataType/ItemList.php).

when switching to data selector on a new condition when creating a new rules at /add/rules_condition

core is 8.1.7 php is 5.5.24

Comments

thomasmurphy created an issue. See original summary.

jelhan’s picture

Thrown exception changed in latest dev (bff3e8d26603def181aaae1cbf059db629b7ed25) compared to alpha1 but it's still not usable.

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.rules_reaction_rule.edit_form.autocomplete" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 187 of core/lib/Drupal/Core/Routing/RouteProvider.php).

jelhan’s picture

Data selector is not only broken on conditions but also on actions.

bachbach’s picture

sadly i have the exact same issue
as i don't know tokens, rules is not usable for me so far

TR’s picture

Status: Active » Closed (outdated)

You don't say what conditions or actions you're using, or what you're trying to set it to. Regardless, if you still have this problem in the latest -dev version and can give instructions for reproducing the issue, feel free to reopen this with additional details.

#2 is an entirely separate problem, and since there's no reference to that route anywhere in the code base I would have to say this isn't an issue any more.