Bug #19976
closedFatal error unknown function parse_charset
0%
Description
In class.t3lib_div.php::readLLPHPfile() and class.t3lib_div.php::readLLXMLfile() there is a call to $csConvObj->parse_charset() that results in a fatel error.
Im certain it is releated with the use of some extentions but nog sure which one.
I got the error after upgrading from 4.1.* to 4.2.4 and in 4.2.5 it's still there.
In both functions the is a if statement to get the $csConvObj from $GLOBALS['LANG'] or $GLOBALS['TSFE'] or else to create an new object.
In de 4.1.* core there was a check to see if $csConvObj is an object but that check is gone.
solution/fix for both functions (i'm not able to create a real patch);
change this:
} else {
$csConvObj = t3lib_div::makeInstance('t3lib_cs');
}
to:
}
if(!isset($csConfObj) || !is_object($csConfObj) {
$csConvObj = t3lib_div::makeInstance('t3lib_cs');
}
(issue imported from #M10367)