Bug #19209
closed
Deprecated code into stdgraphic
Added by Vincent MARIANI over 16 years ago.
Updated over 14 years ago.
Description
the class stdgraphic don't use the function chosen in Install Tool (between recode, iconv or mbstring), thus Typo3 crashes if we haven't recode installed on our server.
Fatal error: Call to undefined function recode_string() in /.../t3lib/class.t3lib_stdgraphic.php on line 2014
Is it possible to make a switch case there ?
(issue imported from #M9152)
Files
Hey Vincent,
well, pretty simple: if you choose "recode", you gotta make sure that this php extension is installed on your system. It's not a matter of having the error, more of choosing the right configuration for your system available.
What do you think?
Benny, the function is hard-coded in the TYPO3 code.
Btw, the option is deprecated from TYPO3 3.6 but the fix is very simple...
Yes, recode was hard-coded and deprecated like you said. Since I'm not familiar with this fonction (recode). I didn't want to fix it by myself even it seems easy ;)
Your patch seems enough for the fix, doesn't it ?
Yes, the patch is enough. And it is now committed to 4.1, 4.2 and 4.3
Also available in: Atom
PDF