Bug #14983
closedUsing Index Search on images without having exif enabled results in a fatal error
0%
Description
When using Indexed Search on images there is a call on line 513 which tries to read exif data via php function exif_read_data.
This function is only available if PHP is compiled with exif-support.
If this module is not loaded or enabled the page only shows a white screen and a fatal error:
Fatal error: Call to undefined function: exif_read_data() in /export/web/intranet/typo3_src-3.8.0/typo3/sysext/indexed_search/class.external_parser.php on line 513.
So one need to make sure before calling this function, that the exif module is available.
Used versions:
Typo 3.8.0
Indexed Search : 2.1.3
PHP: 4.3.11
OS: SuSe Linux 9.1
PHP.net says:
Requirements
Your PHP must be compiled in with --enable-exif. PHP does not require any additional library for the exif module. Windows users must also have the mbstring extension enabled.
Installation
To enable exif-support configure PHP with --enable-exif
Windows users must enable both the php_mbstring.dll and php_exif.dll DLL's in php.ini. The php_mbstring.dll DLL must be loaded before the php_exif.dll DLL so adjust your php.ini accordingly.
(issue imported from #M1471)
Files
Updated by Michael Stucki about 19 years ago
I agree there should be a check for this.
Updated by Peter Beernink almost 19 years ago
I agree on this problem.
I have added a quick fix for this problem. But perhaps this should be defined in localconf.php wheter or not to use the exif_read_data function.