Installing CAS and Pathauto, causes a PHP error

I am using
- drupal-5.5
- pathauto 5.x-2.0
- latest cas module

PHP error occurs after user login, I mean, the error does not affect the login process: you can go to drupal again and you are logged in.

This is the PHP error:

undefined function token_get_values() in /var/www/drupal-5.5/modules/pathauto/pathauto.inc on line 354
Call Stack
# Time Memory Function Location
1 0.0012 41480 {main}( ) ../index.php:0
2 0.0102 214432 drupal_bootstrap( ) ../index.php:13
3 0.0502 619264 _drupal_bootstrap( ) ../bootstrap.inc:823
4 0.0680 1050320 _drupal_bootstrap_full( ) ../bootstrap.inc:883
5 0.5839 15146344 module_invoke_all( ) ../common.inc:1860
6 0.5917 15257968 call_user_func_array ( ) ../module.inc:406
7 0.5917 15257968 cas_init( ) ../module.inc:0
8 0.6990 15487872 user_save( ) ../cas.module:141
9 0.7018 15488640 user_module_invoke( ) ../user.module:111
10 0.7025 15488864 pathauto_user( ) ../user.module:22
11 0.7026 15489976 pathauto_get_placeholders( ) ../pathauto.module:628

CommentFileSizeAuthor
#3 cas_menu.patch801 bytesmetzlerd

Comments

metzlerd’s picture

This is a known issue in related to drupal 5 and caching when the user_login hook is invoked. Try turning off caching. This will be a non-issue in drupal 6, so I've been reticent to patch around it.

Dave

josuealcalde’s picture

I don't have the cache enable, so it must be other thing.

I have done a fresh installation with drupal 5.7. The only non-core modules enabled where pathauto, token and CAS, and of course, cache was disabled. Disabled cache is not a workaround.

metzlerd’s picture

Status: Active » Needs review
StatusFileSize
new801 bytes

Here is a patch against the trunk rev that should solve the problem. Initial testing seems fine, so I'm going to commit this today, but here it is for those who might be interested in code review.

metzlerd’s picture

Would recommend anyone experiencing this problem examine the 5.x.3.0-beta release at

http://drupal.org/node/78967/release

metzlerd’s picture

Status: Needs review » Fixed

Committed this. Still waiting for feedback on the beta.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.