Warning - Token - Identified problems
The following wildcard or placeholder types are not defined as arrays:
$info['tokens']['basic_cart_order']['products']
The following token types are not defined but have placeholders:
$info['types']['basic_cart_order']
Comments
Comment #1
MRJWO commentedI get this same thing.
Comment #2
Hetta commentedIt's possible that this is the php 5.4+ array bug. If so, it's easy to fix:
http://drupal.stackexchange.com/questions/68551/array-to-string-conversi...
"So, fix is to replace array_diff_assoc (not recursive) with drupal_array_diff_assoc_recursive (recursive, as it comes from its name)"
Comment #3
alex dicianu commentedPatch applied on 7.x-3.x branch.
Comment #4
thamasHalf of the solution (and the patch applied to dev version) can be found in #2194715: Incorrect hook_token_info implementation in basic_cart_order module.
But even the actual dev version of the module is still missing the token type definition. The full correct implementation should look something like this.
(See the example module: http://cgit.drupalcode.org/examples/tree/token_example/token_example.tok...)
Comment #5
drupal_lib commentedI am trying to use this module (Version: 7.x-3.0) for a short-term project and am also getting the status page warning. Is there a fix for this? Thanks so much.
Comment #6
drupal_lib commentedI am experiencing this same issue - has anyone found a fix? The module is working as expected but I have the "Tokens or token types not defined as arrays $info['tokens']['basic_cart_order']['products']" error on the Status Report page (Drupal version 7.78).
Comment #7
avpadernoComment #8
norman.lol7.x-* unsupported