Issue Bug Closed

#66882Workspace 'file_reference'

Entwickler PHP 05/11/15, 12:53 updated 10/02/18, 11:44

Description

Hi

in Workspace it tries to make a MySQL SELECT query to the table ‘sys_file’ with the fields: ‘uid,pid,t3ver_wsid,t3ver_state,t3ver_oid’

But in ‘sys_file’ table those columns do NOT exist: ‘t3ver_wsid,t3ver_state,t3ver_oid’. That’s why it throws an exception at (line: 172):

typo3/sysext/version/Classes/Dependency/ElementEntityProcessor.php

This occurs when ‘file_reference’ (in TCA or flexform) is used in a custom extension.

Adding those columns to ‘sys_file’ will solve the problem.

#
# Image/File (file_reference) element workspace fix
#
CREATE TABLE sys_file (
  `t3ver_wsid` int(11) NOT NULL DEFAULT '0',
  `t3ver_state` tinyint(4) NOT NULL DEFAULT '0',
  `t3ver_oid` int(11) NOT NULL DEFAULT '0',
);

I hope this case will be considered with the release of next TYPO3 version.

The TYPO3 version is 6.2.12

Sincerely,
Ramazan Gezer

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.