This only happens when "Relation Entity Collector block" is enabled. When you access the "List Terms" link of a taxonomy term through the drupal UI "using the seven UI theme" the page loads the listing/form in a node like view page with abnormal styling even if you are not using the admin overlay.

For example when I load my taxonomy page (/admin/structure/taxonomy) everything looks normal. But when I access a "List Terms" link of one of the taxonomy items, the list loads in my default template in the "content" area and the styling is abnormal. This is also the same for the form that modifies/adds taxonomy terms to a list. It only happens here. I don't see similar admin interface anomalies in the menu or CTD forms.

As stated before this only happens when the "Relation Entity Collector block" component is enabled and it doesn't matter if the block is actually set to show in a specific region of the default template or hidden all together.

CommentFileSizeAuthor
taxonomy_term_list.jpg75.19 KBkholloway

Comments

kholloway’s picture

I'm narrowing down the problem. The issue seems to be coming from line 46 of relation_entity_collector.module:
drupal_theme_initialize();

When I comment that line out the behavior of the taxomony UI returns to normal. But the entity block itself never loads so this isn't the solution. I'm guessing the if (!isset($enabled)) case (line 41) needs to be modified to check for other things as well. A short term solution is to maybe check for the block's presence on the page and restrict the block from showing up on the taxonomy page though that doesn't help for admin overlay situations.

Still troubleshooting...

kholloway’s picture

More Progress:
The method is loading a list of blocks that have been enabled. To do that it's using drupal_theme_initialize() to force the theme to initialize/load followed by _block_load_blocks to get the array of blocks loaded. It then iterates through the array of loaded blocks to locate the "relation_entity_collector_block" block and setting it as enabled for later operations.

I think the problem is here and is that we need to figure out a different way of checking if the block is enabled without forcing thing theme to initialize which doesn't play well with the taxonomy Core admin UI. I'm trying other block hooks/methods but help is appreciated (:

kholloway’s picture

Priority: Normal » Major
Status: Active » Needs work

BTW, this issue also affects "Domain Access". It causes any page displayed with a different theme than the default to be displayed with the default site theme instead. So this issue more than just affects the Taxonomy page.

Is anyone maintaining this part of the module still or should I find a solution myself? Just wondering because I haven't received any response to this problem.

naught101’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Priority: Major » Normal
Status: Needs work » Active

Needs work is for patches. Sorry for the lack of response, probably no-one maintaining the module has come across this yet. If you have a solution, we can include it.

mikran’s picture

Status: Active » Postponed (maintainer needs more info)

I'm unable to reproduce

naught101’s picture

Component: Entity_collector » API
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closed as no new info for 18 months.