When accessing the devel page for a node to display available tokens, i.e.

/node/NID/devel/token,
/user/UID/devel/token

in some circumstances a timeout occours, depending on php settings and the amount of tokens beeing gathered.

The result: Token informationen can't be observed.

Workaround:
("is"-situation in tokens.pages.inc):

/**
 * Menu callback; prints the available tokens and values for an object.
 */
function token_devel_token_object($entity_type, $entity, $token_type = NULL) {
  $header = array(
    t('Token'),
    t('Value'),
  );
  $rows = array();
  ...

Solution:

/**
 * Menu callback; prints the available tokens and values for an object.
 */
function token_devel_token_object($entity_type, $entity, $token_type = NULL) {
  set_time_limit(360);
  $header = array(
    t('Token'),
    t('Value'),
  );
  $rows = array();
  ...

Comments

philsward’s picture

Issue summary: View changes

Kind of an old issue, but ran into this tonight. Threw 1GB at PHP and it still choked... Had to increase the sql max_packet_size too just to get it to load anything to begin with.

Haven't tested the time limit, but I apparently have too many tokens on the site... Would this have anything to do with tokens+entity tokens? Never understood why there were two tokens for the exact same thing between both modules, yet tokens is required to use entity tokens...

*confused*