On installing you get

Fatal error: Cannot redeclare taxonomy_image_display() (previously declared in /www/htdocs/w00b40cd/com/at/sites/all/modules/taxonomy_context/taxonomy_context.module:66) in /www/htdocs/w00b40cd/com/at/sites/all/modules/taxonomy_image/taxonomy_image.module on line 111

Comments

Summit’s picture

Category: support » bug

Hi having the same, while without this my installation is not working..please advice what to do!
EDIT: made also bugreport on taxonomy image: http://drupal.org/node/1026122http://drupal.org
/node/1026122

EDIT 2: It is a mistake in taxonomy context, this is the right code on line 66:

// Helper function for when taxonomy_image module is not installed.
  if (!module_exists(taxonomy_image)) {
    function taxonomy_image_display($tid, $tags = NULL, $profile = NULL, $overrides = array()) {
      return NULL;
    }

greetings, Martijn

NancyDru’s picture

Status: Active » Postponed (maintainer needs more info)

Module_exists() without quotes should be generating an error about an undefined constant, but perhaps you don't show those errors on your site.

I cannot reproduce this error. Do you, perhaps, have one or the other module weighted?

Summit’s picture

This line of code with quotes gives redeclare error:

// Helper function for when taxonomy_image module is not installed.
  if (!module_exists('taxonomy_image')) {
    function taxonomy_image_display($tid, $tags = NULL, $profile = NULL, $overrides = array()) {
      return NULL;
    }

Without like stated in #1 is working!
greetings,
Martijn

NancyDru’s picture

For me, with quotes does not generate that error. Which php? Do you know in which order you enabled the modules?