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)
Updated by Frans Saris almost 16 years ago
The change in class.t3lib_div.php is from the path belonging to http://bugs.typo3.org/view.php?id=2731
Has something to do with caching of the locallang. But when $GLOBALS['LANG'] or $GLOBALS['TSFE'] is present but not there csConvObj object you get the fatal error.
Updated by Rupert Germann about 15 years ago
how can I reproduce this?
Is this problem still present in current 4.2.8?
Updated by Alexander Opitz over 11 years ago
- Category deleted (
Communication) - Status changed from New to Closed
- Target version deleted (
0)
No response in over one year => closed.