Issue Bug Rejected

#98173`storeSession=false` in v10 f:widget.autocomplete provokes errors

David Bruchmann 08/19/22, 05:36 updated 08/22/22, 20:42

Description

The problem is that I am getting the following error message when typing anything in my search field:

http://www.local-website.com/?id=2&type=7076&action=autocomplete&term=teststring – 500 (Internal Server Error).. After examining the exact response of that page request, here’s the specific error:

“No widget context was found for the Ajax Widget Identifier “”. This only happens if AJAX URIs are called without including the widget on a page”

This happens if the new parameter storeSession=“false” is used. In TYPO3 v9 this parameter didn’t exist.
Using the widget like this should work like intended:

<f:widget.autocomplete for="search-items" objects="{allItems}" searchProperty="title"/>

Usually the parameteres look like this:

?id=1&type=7076&fluid-widget-id=9c31f0bb1b5f5f953e84f6b57af102b4&action=autocomplete&term=Ma

When the parameter storeSession=false is used it looks like this:

?id=1&type=7076&action=autocomplete&term=Ma

That means that the widget doesn’t transfer the correct link to the AJAX script.

See https://stackoverflow.com/questions/67021493/how-to-get-the-fluid-autocomplete-widget-to-work-in-typo3-v10/73412070

Reviews 0

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