I'm working on the (Omega) theme section and added the following to the template.php file:

function aii_preprocess_html(&$variables) {
  
  // Add conditional stylesheets for IE
  drupal_add_css(path_to_theme() . 'css/ie-lte-8.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'preprocess' => FALSE));
  drupal_add_css(path_to_theme() . 'css/ie-lte-7.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'preprocess' => FALSE));
  drupal_add_css(path_to_theme() . 'css/ie-6.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'IE 6', '!IE' => FALSE), 'preprocess' => FALSE));
}

Now I receive several errors:

Notice: Undefined index: types in token_get_token_problems() (line 292 of /mypath/sites/all/modules/token/token.install).
Warning: Invalid argument supplied for foreach() in token_get_token_problems() (line 292 of /mypath/sites/all/modules/token/token.install).
Notice: Undefined index: tokens in token_get_token_problems() (line 307 of /mypath/sites/all/modules/token/token.install).
Warning: Invalid argument supplied for foreach() in token_get_token_problems() (line 307 of /mypath/sites/all/modules/token/token.install).
Notice: Undefined index: name in _system_rebuild_theme_data() (line 2583 of /mypath/modules/system/system.module).
Notice: Undefined index: name in _system_rebuild_theme_data() (line 2583 of /mypath/modules/system/system.module).
Notice: Undefined index: name in system_list() (line 194 of /mypath/includes/module.inc).
Notice: Undefined index: name in system_list() (line 194 of /mypath/includes/module.inc).

I reverted my changes back to the original file content, but still receive the errors. Emptied cache.

Comments

finedesign’s picture

I'm realizing now the title of every page is also broken. I see the following pattern for every page:
[site:name] | [site:slogan]

finedesign’s picture

In case anyone has this same problem, I found that I had accidentally added a few characters at the beginning of the .info file and it removed the variable "name" from the form. All is better now.

hkirsman’s picture

In my case I had this code in my Perfecto module:

define('PERFECTO_WARNING_NO_COMPOSITIONS',
t('You have not uploaded any web compositions to Perfecto. !click_here to add some or !disable_this_module.',
array(
'!click_here' => '' . t('Click here') . '',
'!disable_this_module' => ' array('token' => drupal_get_token('perfecto_disable_module')))) . '>' . t('disable this module') . '',
)
)
);

When I moved this code to a function, token started to work.