This seems related to #1158462: errors when trying to add actions to clear caches, but switching to the dev version did not solve the problem.
When using the "clear the cache for views displays" action, I'm getting this series of errors:
Warning: strpos() expects parameter 1 to be string, array given in token_rules_input_evaluator_prepare() (line 36 of /var/www/sites/all/modules/token/token.rules.inc).
Warning: strpos() expects parameter 1 to be string, array given in token_rules_input_evaluator_prepare() (line 36 of /var/www/sites/all/modules/token/token.rules.inc).
Warning: strpos() expects parameter 1 to be string, array given in token_rules_input_evaluator_prepare() (line 36 of /var/www/sites/all/modules/token/token.rules.inc).
Warning: strpos() expects parameter 1 to be string, array given in rules_input_evaluator_php_prepare() (line 38 of /var/www/sites/all/modules/rules/rules/modules/php.rules.inc).
Warning: strpos() expects parameter 1 to be string, array given in rules_input_evaluator_php_prepare() (line 41 of /var/www/sites/all/modules/rules/rules/modules/php.rules.inc).
Warning: strpos() expects parameter 1 to be string, array given in rules_input_evaluator_php_prepare() (line 41 of /var/www/sites/all/modules/rules/rules/modules/php.rules.inc).
Warning: strpos() expects parameter 1 to be string, array given in rules_input_evaluator_php_prepare() (line 41 of /var/www/sites/all/modules/rules/rules/modules/php.rules.inc).
For each content type on the site, I have three rules set up to use this action: one each for uploading, editing and deleting that content type. For each content type, all 3 copies of the action are configured the same, but the action for "After updating existing content" always displays the errors on line 36 and 41 five times instead of three.
When working with the content of the site, the actions work on some - but not all - of the displays listed. Each time the rule is fired it misses the same displays, but there's no consistency from one rule to the next. Posting a new blog entry, for example, would clear the cache for all the displays specified (and will do so every time) but then deleting that entry will leave some display caches uncleared (and will always leave those one uncleared) despite the delete action being a clone of the working post action, with just the event changed. Other content types have none of their rules behaving properly, some have delete working okay, but not upload, etc.
For now I've switched to clearing specific views instead of the displays. I'm trying to reproduce the error on a clean drupal install, but so far I haven't had any success on that front. Maybe someone else has this issue and we can compare notes?
Comments
Comment #1
cyborg_572 commentedJust looking at the issue queues (not the code) the fix in #1231394: No input box to enter CID to clear a specific cache cid seems to be (at least partially) reverting the fix in #1158462: errors when trying to add actions to clear caches, so maybe it's a possibility that's why these errors are popping up again? (although there's more in this issue)
I'm just guessing wildly at this point though.