$tag = vmLanguage::$currLangTag line result in empty $tag variable

Started by ndaumalle, August 01, 2017, 16:14:55 PM

Previous topic - Next topic

ndaumalle

Hello,
When we install our payment plugin from zip package, it doesn't work and shows a fatal error in our log files. We trace the error in the vmplugin.php file at line 69 "$this->loadJLangThis($filename); //TODO remove this is not allowed here, else systemplugins derived from vmPlugin throw errors on a multilanguage pages".

Is it possible that this function has not been removed by accident (as marked as TODO in the line's comment)?

We can trace further the error and see that the problem is in vmplugin.php in the function loadJLang($fname,$type,$name) at line 108 $tag = vmLanguage::$currLangTag;


//$jlang = JFactory::getLanguage();
//$tag = $jlang->getTag();
//if(empty($tag)) {
$tag = vmLanguage::$currLangTag;
//}

where $tag appears to be empty.

Can anybody help me with this problem, or tell me why $tag is empty? I would really appreciate any help.

helder.perez@hpti.com.py


Studio 42