tokenauth_init is creating problem for cache_page

kamleshpatidar - October 4, 2008 - 12:33
Project:Token authentication
Version:5.x-1.2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

hi,

i updated my site from drupal 5.6 to drupal 5.10 . everything is working. My 2 pages https://xxx.com/intro & https://xxx.com/user/login is cache_page. when i logged in & then log out, it redirect to https://xxx.com/intro page, but that couldn't fetch from database table (cache_page).

My cache setting
Cache page : caching Mode is normal

Caching Life time : none

Aggregate and compress CSS files: Enable

when i use caching Mode in normal condition, then it call a function in bootstrap.inc

function _drupal_cache_init($phase) {

  require_once variable_get('cache_inc', './includes/cache.inc');

  if ($phase == DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE && variable_get('page_cache_fastpath', 0)) {
    if (page_cache_fastpath()) {
     
      exit();
    }
  }
  elseif ($phase == DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE) {
    if ($cache = page_get_cache()) {
    
      if (variable_get('cache', CACHE_DISABLED) == CACHE_AGGRESSIVE) {
        drupal_page_cache_header($cache);
       
        exit();
      }
      elseif (variable_get('cache', CACHE_DISABLED) == CACHE_NORMAL) {
     
        require_once './includes/module.inc';
      <b>  bootstrap_invoke_all('init'); </b>
      
        drupal_page_cache_header($cache);
        bootstrap_invoke_all('exit');
        exit();
      }
    }
    require_once './includes/module.inc';
  }
}

when function call bootstrap_invoke_all('init') it automatically called tokenauth_init() function &
error generated Notice: Undefined index: token in D:\my root \sites\all\modules\tokenauth\tokenauth.module on line 210

on that line there is condition branch
if (!$user->uid && $_REQUEST['token'] && tokenauth_allowed_pages($_GET['q']) && function_exists('drupal_set_content')) {

i think it's creating problem , so please if anyone has solution please share with me.

ThanKs

Kamlesh Patidar

 
 

Drupal is a registered trademark of Dries Buytaert.