Issue Bug Closed

#95997levelmedia not working with TYPO3 11.5.3 and disabled file relations

Simon Würstle 11/16/21, 12:46 updated 10/04/22, 14:13

Description

Since TYPO3 version 11.5.3 “levelmedia” is not working anymore if there are disabled file relations in pages.media.

Example code:

foo = FILES
foo.references.data = levelmedia:-1

Error message:

(1/1) #1317178794 TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException
No file reference (sys_file_reference) was found for given UID: "53"

If you delete the disabled file relations it works. It also works with following TS code:

references {
  table = pages
  fieldName = media
  uid.data = page:uid
}

Reviews 2