Actions
Bug #98173
closed`storeSession=false` in v10 f:widget.autocomplete provokes errors
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2022-08-19
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
widget autocomplete session storeSession
Complexity:
Is Regression:
Sprint Focus:
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.
Actions