Project

General

Profile

Actions

Bug #21812

closed

Catchable fatal error in indexed_search

Added by Dmitry Dulepov over 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-12-07
Due date:
% Done:

0%

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

Description

When navigating to Web>Info>Indexed search, a catchable fatal error may happen. Here is exact error message:

Catchable fatal error: Argument 2 passed to t3lib_div::implodeArrayForUrl() must be an array, boolean given, called in /var/www/typo3/sysext/indexed_search/modfunc1/class.tx_indexedsearch_modfunc1.php on line 452 and defined in /var/www/t3lib/class.t3lib_div.php on line 1748

The cause is that the file unserializes the value, than checks if it is an array in one place but misses this check in another.

The attached patch solves the problem by creating an array with a "Error!" for cHash if it cannot be unserialized.

(issue imported from #M12958)


Files

12958.diff (1.31 KB) 12958.diff Administrator Admin, 2009-12-07 10:30
12958-v2.diff (1.33 KB) 12958-v2.diff Administrator Admin, 2010-02-22 14:39

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #21813: cHashParams in index_phash is too smallClosedAndreas Otto †2009-12-07

Actions

No data to display

Actions

Also available in: Atom PDF