Project

General

Profile

Actions

Feature #86012

closed

Indexing of meta-tags not possible when *_INT-objects are on the page

Added by Robert Vock over 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2018-08-28
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Meta-Tags are not indexed, when there are USER_INT or COA_INT objects on a page.

Sample TypoScript:

config.index_enable = 1
config.index_metatags = 1
page.20 = USER_INT
// no function definition needed. It's enough to have a USER_INT object

This happens because Meta-Tags are not available in the HTML when the indexing hook is run, because their placeholders have not yet been replaced. See my other Bugreport for details:
https://forge.typo3.org/issues/63776

To reproduce, add the above TypoScript and add a Debug-Statement with the content here:
https://github.com/TYPO3/TYPO3.CMS/blob/9f0af539cbef43da46d1270b3c27770732287ddb/typo3/sysext/indexed_search/Classes/Indexer.php#L642

\TYPO3\CMS\Core\Utility\DebugUtility::debug($headPart);

You will get the following HTML:

<!DOCTYPE html>
<html lang="de">
<head>

<meta charset="utf-8">
<!-- 
    This website is powered by TYPO3 - inspiring people to share!
    TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
    TYPO3 is copyright 1998-2018 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
    Information and contribution at https://typo3.org/
-->

<!-- ###TITLE1045adfa441ac3948037d4863c3200b1### -->
<!-- ###META1045adfa441ac3948037d4863c3200b1### -->

<!-- ###CSS_LIBS1045adfa441ac3948037d4863c3200b1### -->
<!-- ###CSS_INCLUDE1045adfa441ac3948037d4863c3200b1### -->
<!-- ###CSS_INLINE1045adfa441ac3948037d4863c3200b1### -->

<!-- ###JS_LIBS1045adfa441ac3948037d4863c3200b1### -->
<!-- ###JS_INCLUDE1045adfa441ac3948037d4863c3200b1### -->
<!-- ###JS_INLINE1045adfa441ac3948037d4863c3200b1### -->

<!-- ###HEADERDATA1045adfa441ac3948037d4863c3200b1### -->
</head>

When no USER_INT object is available on the page, those placeholders are already replaced and indexing works fine.

This bug also appears in TYPO3 8.7, 7.6 and 6.2.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #63776: PageRenderer Hooks are called to late with uncached objectsClosed2014-12-11

Actions
Related to TYPO3 Core - Bug #86234: Missing Meta Tags on Pages with *_INT objectsClosedRichard Haeser2018-09-12

Actions
Actions

Also available in: Atom PDF