Issue Bug Closed

#14983Using Index Search on images without having exif enabled results in a fatal error

Florian Schaeffer 09/21/05, 11:44 updated 06/27/08, 10:53

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.