VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: ndaumalle on August 01, 2017, 16:14:55 PM

Title: $tag = vmLanguage::$currLangTag line result in empty $tag variable
Post by: ndaumalle on August 01, 2017, 16:14:55 PM
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.
Title: Re: $tag = vmLanguage::$currLangTag line result in empty $tag variable
Post by: helder.perez@hpti.com.py on October 31, 2017, 13:53:48 PM
Back to version com_virtuemart.3.0.12_extract_first
Title: Re: $tag = vmLanguage::$currLangTag line result in empty $tag variable
Post by: Studio 42 on November 01, 2017, 02:57:41 AM
What Vm release , have you try the last ?