Project

General

Profile

Actions

Bug #19976

closed

Fatal error unknown function parse_charset

Added by Frans Saris almost 16 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-02-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions

Also available in: Atom PDF