We had an issue with translation of main menu bar on our site.
We realized that the problem was in /com_comunity/helpers/template.php in function getTemplateAsset($file, $assetType = ''); precisely in $asset->file = $this->getFile($file);
In getFile($file); there is a call to getSources($file); and the problem is in ('override' => $this->getOverrideTemplatePath($file)) element of the array.
So by continue with getOverrideTemplatePath($file, $templateName = '', $type = 'path');
There is if statement which verifies the presence of $templateName parameter, here it is:
getOverrideTemplatePath($file, $templateName = '', $type = 'path') {
$mainframe = JFactory::getApplication();
if (empty($templateName)) {
$templateName = $mainframe->getTemplate();
}
This parameter ($templateName) is empty by default so it always true.
Probably somewhere in getTemplate() (in factory.php or cms.php) an exception accures and the component brokes. We solved this problem by changing the default parameter in getOverrideTemplatePath($file, $templateName = 'string', $type = 'path'); so it doesn't step into 'if' condition. But it's only a quick solution.
Do you have any other idea how we can fix it??
Thx
This is the issue tracker for the Joomla Core.
com_community
is a 3rd party component (Community Builder I believe). You would have to ask there.