I'm using taxonomy panels to theme some taxonomy terms. After installing media gallery I see that my taxonomy panel is disabled.

When I tried to enable it, I've got next message:
Page manager module is unable to enable taxonomy/term/%taxonomy_term because some other module already has overridden with media_gallery_list_galleries.

Does anybody know how to solve it?

Comments

prodigeek’s picture

I have the same issue. Please recommend a fix.

leovw’s picture

Does anybody have a solution for this?

alfiesmith’s picture

StatusFileSize
new51 KB

I'm sorry but I have this issue as well and would really appreciate a fix!!!

Many Many thanks. I have attached an image of the issue.

jferrervalls’s picture

Version:7.x-1.0-beta6» 7.x-1.0-beta7

Got the same issue,
Impossible to unable Page Manager "Taxonomy term template".

sonar_un’s picture

Same problem here, any ideas?

Nigeria’s picture

Me too!

Vidarls’s picture

Not sure if this is a bug or just an unwanted feature.
Media_Gallery overrides the term listing pages, and panels can not override pats that are already overridden.
The quick fix:
Manually edit Media_gallery.module and comment out the override

Original

<?php
/**
 * Implements hook_menu_alter().
 */
function media_gallery_menu_alter(&$items) {
 
// Take over taxonomy term list pages by substituting our own callback.
  // TODO: Use hook_entity_info_alter() to change the entity uri callback for
  // gallery collections only.
 
$items['taxonomy/term/%taxonomy_term']['page callback'] = 'media_gallery_list_galleries';
 
$items['taxonomy/term/%taxonomy_term']['file'] = 'media_gallery.pages.inc';
 
$items['taxonomy/term/%taxonomy_term']['module'] = 'media_gallery';

 
// If you're viewing a media item in context somewhere (which we do inside
  // media gallery nodes), that means it's being used on your site, which means
  // you won't be allowed to delete it anyway. Therefore, do not show
  // contextual links there.
  // @todo Perhaps this should be changed in the media module itself?
 
$items['media/%file/delete']['context'] = MENU_CONTEXT_PAGE;
}
?>

After change:

<?php
/**
 * Implements hook_menu_alter().
 */
function media_gallery_menu_alter(&$items) {
 
// Take over taxonomy term list pages by substituting our own callback.
  // TODO: Use hook_entity_info_alter() to change the entity uri callback for
  // gallery collections only.
 
  //Removed override of term list pages to enable panels overrides
  //$items['taxonomy/term/%taxonomy_term']['page callback'] = 'media_gallery_list_galleries';
  //$items['taxonomy/term/%taxonomy_term']['file'] = 'media_gallery.pages.inc';
  //$items['taxonomy/term/%taxonomy_term']['module'] = 'media_gallery';

  // If you're viewing a media item in context somewhere (which we do inside
  // media gallery nodes), that means it's being used on your site, which means
  // you won't be allowed to delete it anyway. Therefore, do not show
  // contextual links there.
  // @todo Perhaps this should be changed in the media module itself?
 
$items['media/%file/delete']['context'] = MENU_CONTEXT_PAGE;
}
?>

The long term fix would be to introduce a new settings for enabling / disabling the override, and then conditionally override the term listing page.

-Vidar

agerard’s picture

I just came across this problem...has anyone tried the fix yet, and if so, noticed any impact on the media gallery functions?

Nigeria’s picture

Worked for me.

guillaumev’s picture

StatusFileSize
new1.09 KB

Just providing a patch so it can be integrated more easily. In my case, it worked, however it changed a bit the view of the galleries. Note however that, by adding a variant to your panel with a view of the "gallery" content type, you can easily customize your galleries view...

lsolesen’s picture

Status:Active» Needs review
guillaumev’s picture

Status:Needs review» Closed (duplicate)

This issue is a duplicate of http://drupal.org/node/1333674 and the patch proposed here does not work properly...