Today I enabled the taxonomy_image module and immediately got the following error in my watchdog file:

notice: Undefined index: page in taxonomy_image_link_alter() (line 41 of /home/toomreco/drupal-6.20/sites/all/modules/taxonomy_image/contributed/taxonomy_image_link_alter/taxonomy_image_link_alter.module).

I believe that the correct fix is to add an isset() on line 41 like as follows:

  if (!isset($type_enabled[$node->type]) || !$type_enabled[$node->type]) {

I have patched my local copy and now seem to working as expected. Cheers!!

Comments

danepowell’s picture

Version: 6.x-1.6 » 6.x-1.7
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.18 KB

Thanks, I was getting this notice too. Here's a patch.

danepowell’s picture

Title: Undefined variable in taxonomy_image_link_alter.module » Undefined index in taxonomy_image_link_alter.module
dgorton’s picture

StatusFileSize
new832 bytes

Thanks much - works great! Uploading a new patch without the whitespace changes from #1

nehajyoti’s picture

Status: Needs review » Closed (outdated)

Closing the issue as 6.x version is outdated.