Make something amazing, for anyone, at DrupalCon. Standard prices end on August 26.
It seems that the text type is not set but the token is set. I am not sure why.
the line is
$type = $info['types'][$type]['name'];
the "text" type is not created
This is a bug in whatever module provides the 'text' token type or tokens then, likely Entity API?
Drupal is a registered trademark of Dries Buytaert.