Bug #34349

sys_file_reference not allowed on "this" page

Added by Susanne Moog about 1 year ago. Updated about 1 year ago.

Status:Resolved Start date:2012-02-27
Priority:Must have Due date:
Assignee:- % Done:

0%

Category:-
Target version:6.0 beta1
Votes: 0

Description

  • Add an image to a content element
  • Try to save
  • Error: 1: Attempt to insert record on page 'About TYPO3' (51) where this table, sys_file_reference, is not allowed

fal2.png (30.5 kB) Susanne Moog, 2012-02-27 20:49

History

Updated by Benjamin Mack about 1 year ago

  • Status changed from New to Accepted
  • Target version set to 6.0 beta1

Solution should be to always add sys_file_reference records to PID=0 - could you change that in the TCA?

Updated by Susanne Moog about 1 year ago

TCAdefaults {
    sys_file_reference {
        pid = 0
    }
}

seems to be the only "already in the core" possibility to get this done. We should have a look whether we can develop a new feature like "setStorage" or "storeOnRoot" or something...

Updated by Susanne Moog about 1 year ago

Why do we want to put all those on pid 0? After thinking about it this brings a lot of problems without an obvious benefit. Is there a real reason for that?

Updated by Benjamin Mack about 1 year ago

I fixed it now by adding this

t3lib_extMgm::allowTableOnStandardPages('sys_file_reference');

. However, what happens if a Image tt_content element gets moved? then the references should follow, right?

Updated by Benjamin Mack about 1 year ago

  • Status changed from Accepted to Resolved

Also available in: Atom PDF