Bug #87513

indexed_search error-message if I output an empty variable

Added by Anton Mayer about 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
Should have
Assignee:
Category:
Indexed Search
Target version:
-
Start date:
2019-01-21
Due date:
% Done:

100%

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

Description

Hello,

I use Typo3 9.5.3 and the core-extension indexed_search

If I use this typoscript, I get a error-massage in the Frontend if I open Page-ID 32
"Oops, an error occurred! No Content Object definition found at TypoScript object path "lib.search" "

@plugin.tx_indexedsearch.settings {
targetPid = 32
rootPidList = {$rootId}
}

plugin.tx_indexedsearch.settings.results.markupSW_summaryMax = 120

lib.search = RECORDS
lib.search {
tables = tt_content
source = 51
dontCheckPid = 1
}

[globalVar = TSFE:id=32]
lib.search >
[global]@

The Extension is working without an error if I delete:
[globalVar = TSFE:id=32]
lib.search >
[global]

The Typosript is working with Typo3 8LTS

#1

Updated by Erik Sokoll about 2 years ago

Hi Anton,

just a quick fix.
In TYPO3 Version 9 you cannot remove typoscriptObjectPath content by ">" like in "lib.search >" although this is standard practice for integrators since years.

Try to overwrite it with something empty:

lib.search >
lib.search = TEXT
lib.search.value =

#2

Updated by Stefan Froemken about 2 years ago

This issue was implemented through this patch: https://review.typo3.org/#/c/58686/
5 Core Developers have made that CodeReview. Would be interesting if that will be changed again...

#3

Updated by Anton Mayer about 2 years ago

  • % Done changed from 0 to 100

Thank you for your prompt reply. The solution works very well

Also available in: Atom PDF