I use the CAS module and Pathauto. On login, the cas_init() function calls user_save(), which eventually calls token_get_values(). However, since the cas_init() call is happening before token_init(), which loads token.inc containing that function's definition, PHP dies with a fatal error.

If I add:

include_once(drupal_get_path('module', 'token') . '/token.inc');

to the top of token.module, my problem is resolved.

Comments

moshe weitzman@drupal.org’s picture

Status: Active » Closed (won't fix)

it is simply wrong to call user save that early in the request. modules are not loaded and can't react to the save.

jdleonard’s picture

Note that this is no longer an issue in 5.x-1.x-dev because token.inc has been merged into token.module.