Project

General

Profile

Actions

Bug #60754

closed

No fileusage (sys_file_reference) found for given UID.

Added by Mario Colombo over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-08-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Error Message: No fileusage (sys_file_reference) found for given UID.

Error Description: http://wiki.typo3.org/Exception/CMS/1317178794

This happens to me upon adding a picture to a page using the 'create new relation' button in page properties on the 'resources' tab. I am sure that this is a bug in TYPO3 (I am on 6.2.4).

The error all of a sudden shows for all pages that have an image set in 'resources' after adding one additional image to the page via resources tab (files > media).

System: TYPO3 6.2.4


Files

ContentObjectRenderer.patch (828 Bytes) ContentObjectRenderer.patch Witali Rott, 2014-10-06 19:47

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #63353: Media Relation from translated page properties in a workspaceClosed2014-11-26

Actions
Actions #1

Updated by Mario Colombo over 9 years ago

I finally found the cause to this issue:

I am using typoscript to extract page information for Facebook OpenGraph (http://blog.typodrive.com/2014/07/22/opengraph-tags-in-typo3/) like this:


page.2 = LOAD_REGISTER
page.2.pageMedia.cObject = IMG_RESOURCE
page.2.pageMedia.cObject {
file {
import = uploads/media/
import.data = levelmedia:-1, slide
treatIdAsReference = 1
import.listNum = 0
import.override.field = media
}
}

Since FAL import.override.field does not work anymore and leads to the error in question. As described here (http://jweiland.net/typo3/typoscript/bild-aus-den-seiteneigenschaften-auslesen-ab-typo3-60.html) the right way to do is this:


page.2 = LOAD_REGISTER
page.2.pageMedia.cObject = IMG_RESOURCE
page.2.pageMedia.cObject {
file {
import.data = levelmedia:-1, slide
treatIdAsReference = 1
}
}

Actions #2

Updated by Witali Rott over 9 years ago

I think this is an Error in the FAL Extension.
Sometimes is the media Field in $GLOBALS['TSFE']->tmpl->rootLine only 1. And sometimes there is the right value like 1432.

    [1] => Array
        (
            [pid] => 1
            [uid] => 2
            [t3ver_oid] => 0
            [t3ver_wsid] => 0
            [t3ver_state] => 0
            [title] => Home
            [alias] => 
            [nav_title] => 
            [media] => 1
            [layout] => 0
            [hidden] => 0
            [starttime] => 0
            [endtime] => 0
            [fe_group] => 
            [extendToSubpages] => 0
            [doktype] => 1
            [TSconfig] => 
            [storage_pid] => 583
            [is_siteroot] => 0
            [mount_pid] => 0
            [mount_pid_ol] => 0
            [fe_login_mode] => 0
            [backend_layout_next_level] => 
            [tx_realurl_pathsegment] => 
            [tx_realurl_exclude] => 1
            [tx_realurl_pathoverride] => 0
            [tx_typo3blog_blogrolls] => 
        )

I don't know where the value be set.

Actions #3

Updated by Witali Rott over 9 years ago

I know this is don't a nice fix, but its work.
The Problem is the FE Cache. The field media in Pages often not resolved with sys_file_reference and returns a 1.
My Patch check if the field media is a 1 and get the right value from the table sys_file_reference.

Actions #4

Updated by Benni Mack about 9 years ago

  • Category set to File Abstraction Layer (FAL)
  • Status changed from New to Accepted
  • Assignee set to Benni Mack
  • Target version set to 7.2 (Frontend)

Question is, what to do with levelmedia since FAL.

Actions #5

Updated by Benni Mack almost 9 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Actions #6

Updated by Susanne Moog over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #7

Updated by Benni Mack over 8 years ago

  • Target version deleted (7.5)
Actions #8

Updated by Oliver Hader over 8 years ago

Witali Rott wrote:

I know this is don't a nice fix, but its work.
The Problem is the FE Cache. The field media in Pages often not resolved with sys_file_reference and returns a 1.
My Patch check if the field media is a 1 and get the right value from the table sys_file_reference.

Thanks for your patch. The intention is correct however unfortunately not the patch. The "1" in this regard is the reference count, telling that one image is being used in a particular field.
The proper place for resolving these rootline values can be cound in the class RootlineUtility.

Actions #9

Updated by Oliver Hader over 8 years ago

  • Status changed from Accepted to Closed

Quite sure that issue #63353 and the referenced patch there solves this issue.

Actions

Also available in: Atom PDF