Closed (won't fix)
Project:
Token
Version:
5.x-1.8
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2007 at 18:33 UTC
Updated:
31 Dec 2007 at 17:56 UTC
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
Comment #1
moshe weitzman@drupal.org commentedit is simply wrong to call user save that early in the request. modules are not loaded and can't react to the save.
Comment #2
jdleonardNote that this is no longer an issue in 5.x-1.x-dev because token.inc has been merged into token.module.