teaminmedias-pluswerk / ke_search

Search Extension for TYPO3 Content Management System, including faceting search functions.
https://extensions.typo3.org/extension/ke_search/
GNU General Public License v3.0
35 stars 62 forks source link

Exception in FE when file is missing in Workspace #434

Closed medarob closed 2 years ago

medarob commented 3 years ago

I hope that I identified the error correctly and it's an issue with workspaces.

Problem:

The following error appeard in the FE after the search:

grafik

From the Log: (1/2) #1509741911 TYPO3Fluid\Fluid\Core\ViewHelper\Exception No file reference (sys_file_reference) was found for given UID: "9377"

Looking at the table sys_file_reference with the uid=9377 shows that this file seems to be associated with a news record in Worspaces. grafik grafik What I don't know right now why there is a "1" in the "relatedVideo" column: grafik

The news record in question (with the id 7530) has in the workspace two images with the ids "9378 - NEW Element" and "9379". There is no image with an id 9377.

Deleting the workspace news record with the id 7531 did not solve the problem. Updating the reference index did not help either.

When I delete the image from the news record inside the workspaces module, then the error in the FE is gone. grafik

grafik

So, my conslusion would be that file changes in workspace could cause the exception with ke_search, if someone searches for a searchphrase which is, for example used in a news record, which uses the file. The file change was not published in the live mode and deleting the file from the workspace module list solved the issue and ke_search worked again.

But I guess it could happen again with other files?

Tested with ke_search 3.8.1 and TYPO3 10.4.17.

christianbltr commented 2 years ago

Thanks, this has been fixed and will be in the next version.

Please note that the fix is in the new repository https://github.com/tpwd/ke_search