Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
jelhan CreditAttribution: jelhan commentedThrown 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).
Comment #3
jelhan CreditAttribution: jelhan commentedData selector is not only broken on conditions but also on actions.
Comment #4
bachbach CreditAttribution: bachbach commentedsadly i have the exact same issue
as i don't know tokens, rules is not usable for me so far
Comment #5
TR CreditAttribution: TR commentedYou 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.