?
avatar ChArtem
ChArtem
1 Sep 2014

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

avatar ChArtem ChArtem - open - 1 Sep 2014
avatar Bakual
Bakual - comment - 1 Sep 2014

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.

avatar Bakual Bakual - change - 1 Sep 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-09-01 07:06:31
avatar Bakual Bakual - close - 1 Sep 2014
avatar Bakual Bakual - close - 1 Sep 2014
avatar zero-24 zero-24 - change - 1 Sep 2014
Status Closed New
avatar jissues-bot
jissues-bot - comment - 2 Sep 2014

Modified on behalf of @zero-24 by The JTracker Application

avatar jissues-bot jissues-bot - reopen - 2 Sep 2014
avatar zero-24 zero-24 - change - 2 Sep 2014
Status New Closed
avatar jissues-bot
jissues-bot - comment - 2 Sep 2014

Modified on behalf of @zero-24 by The JTracker Application

avatar jissues-bot jissues-bot - change - 2 Sep 2014
Closed_Date 2014-09-01 07:06:31 2014-09-02 15:52:13
avatar jissues-bot jissues-bot - close - 2 Sep 2014
avatar brianteeman brianteeman - change - 2 Sep 2014
Status Closed New
avatar brianteeman brianteeman - reopen - 2 Sep 2014
avatar brianteeman brianteeman - change - 2 Sep 2014
Status New Closed
avatar brianteeman brianteeman - change - 2 Sep 2014
Closed_Date 2014-09-02 15:52:13 2014-09-02 16:29:09
avatar brianteeman brianteeman - close - 2 Sep 2014
avatar zero-24 zero-24 - close - 2 Sep 2014
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment