Issue Bug Closed

#79108Indexed Search cHash calculation error when indexing a single record

Matthias Toscanelli 12/29/16, 13:25 updated 03/05/20, 08:37

Description

When TYPO3 is configured to index single record (eg: news) and cHash parameter is checked, we get this error:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1467983513: ID parameter needs to be passed for the cHash calculation! 
As a temporary not recommended workaround, you can set $GLOBALS['TYPO3_CONF_VARS']['FE']['cHashIncludePageId'] to false to avoid 
this error. | RuntimeException thrown in file xxxxxx/typo3_src-8.5.0/typo3/sysext/frontend/Classes/Page/CacheHashCalculator.php 
in line 136.

The reason is that parameter “id” is not sent to CacheHashCalculator when Indexer generate the cHash.
I am not sure where to fixe this, in Indexer (line 372) or in CrawlerHook (line 676)

A temporary workaround is to add the “id=xx” to GETparameter in configuration.

Reviews 0

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