Project

General

Profile

Actions

Bug #14983

closed

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

Added by Florian Schaeffer about 19 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2005-09-21
Due date:
% Done:

0%

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

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

class.external_parser.php.diff (716 Bytes) class.external_parser.php.diff Administrator Admin, 2005-12-15 12:09
Actions #1

Updated by Michael Stucki about 19 years ago

I agree there should be a check for this.

Actions #2

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.

Actions #3

Updated by Andreas Otto † about 17 years ago

Fixed in SVN: trunk and 4.1.

Actions

Also available in: Atom PDF