Unfortunately, the release of Joomla 3.6 introduced an unexpected issue with Joomla tags in HWDMediaShare.

HWDMediaShare integrates with the native Joomla tagging system in Joomla, meaning that you can add tags to media content, and that media content will then display with other tagged items in the main Joomla tag page. However, since Joomla 3.6, the HWDMediaShare content will not display on the Joomla tag page. 

The cause of this problem is the addition of one line of new code in the Joomla 3.6 release.

->join('INNER', '#__categories AS tc ON tc.id = c.core_catid AND tc.published = 1')

You can review this commit in the Joomla core on the official Joomla repository.

View code on GitHub

The objective of this code is to the prevent the display of tagged items that are in unpublished categories, which is understandable. However, it also has the undesirable affect of preventing the display of items that are not assigned to a category, or items from components that allow multiple categories (such as HWDMediaShare).

The new code has assumed firstly, that all tagged items will be from components that support categories and secondly, that all tagged items will be assigned to only a single category.  

After much consideration and discussion, we've concluded that it isn't currently possible to overcome the impact of this new core Joomla code through changes in our component only. 

 

Solution #1: Remove

Remove the new code from the Joomla tag helper class.

You should understand that modifying the core Joomla files should be an absolute last resort. Only consider this if you reply heavily on tagged items in HWDMediaShare and need to restore the functionality. Removing the code will mean that content items in unpublished categories will displayed again, like in versions prior to Joomla 3.6. You will also need to check this modification still exists after applying future Joomla updates.

Edit this file:

libraries/cms/helper/tags.php

Remove lines 572 and 573:

// Join over categoris for get only published 
->join('INNER', '#__categories AS tc ON tc.id = c.core_catid AND tc.published = 1')

 

Solution #2: Improve

Improve the new code from the Joomla tag helper class.

You should understand that modifying the core Joomla files should be an absolute last resort. Only consider this if you reply heavily on tagged items in HWDMediaShare and need to restore the functionality. Removing the code will mean that content items in unpublished categories will displayed again, like in versions prior to Joomla 3.6. You will also need to check this modification still exists after applying future Joomla updates.

Edit this file:

libraries/cms/helper/tags.php

Replace lines 572 and 573: 

// Join over categoris for get only published 
->join('INNER', '#__categories AS tc ON tc.id = c.core_catid AND tc.published = 1')

With this updated code:

// Join over categories to only get items in published categories, or items in no category  
->join('LEFT', '#__categories AS tc ON tc.id = c.core_catid')->where('(tc.published = 1 OR tc.published IS NULL)')