Project

General

Profile

Actions

Bug #98173

closed

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

Added by David Bruchmann over 2 years ago. Updated over 2 years ago.

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.

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

Actions #1

Updated by Torben Hansen over 2 years ago

Sidenote: All Fluid widget functionality has been deprecated in TYPO3 v10 and removed in TYPO3 v11 (https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Breaking-92529-AllFluidWidgetFunctionalityRemoved.html). If you update a v9 project to v10 currently and if project budget fits, I would highly recommend to replace all Fluid widget functionality during the update.

Actions #2

Updated by David Bruchmann over 2 years ago

Thanks, that's known, I mentioned it on SO too and wrote that therefore it's unlikely that the bug will be fixed.

Actions #3

Updated by Oliver Hader over 2 years ago

  • Category set to Fluid
Actions #4

Updated by Georg Ringer over 2 years ago

  • Status changed from New to Rejected

thanks for creating the issue. as already explained it won't get fixed. therefore I am closing the issue

Actions

Also available in: Atom PDF