I keep getting the following errors after I clear the token Cache.

The following token types are not defined but have tokens:

$info['types']['commerce-product']
$info['types']['node']
$info['types']['user']

I have tried several things to fix this. One of them being -
function my_mod_token_info(){
$info['types']['user'] = array(
'name' => t('User Tokens'),
'description' => t('All user related tokens'),
);

$info['types']['commerce-product'] = array(
'name' => t('Commerce Product Tokens'),
'description' => t('All tokens related to Commerce Products'),
);

$info['types']['node'] = array(
'name' => t('Node Tokens'),
'description' => t('All tokens related to Node'),

);

return $info;
}

None of it worked.

Comments

vishy_singhal’s picture

Priority: Normal » Major
noslokire’s picture

vishy_singhal’s picture

Did not work