Project

General

Profile

Actions

Bug #66135

closed

Computed properties are queried in workspace context

Added by Albrecht Köhnlein over 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2015-03-30
Due date:
% Done:

100%

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

Description

Hi everybody,

I have a project with an individual extension, where I'm extending tt_content with IRRE elements, including FAL relations.

  • tt_content
    • IRRE elements
      • FAL inside IRRE elements

In regular view, everything works find, but when I modify an existing IRRE element, using "workspaces", the frontend throws a "Fatal Error" exception:

#1: PHP Catchable Fatal Error: Argument 3 passed to TYPO3\CMS\Frontend\Page\PageRepository::getFileReferences() must be of the type array, boolean given

And there also is a SQL error

caller TYPO3\CMS\Core\Database\DatabaseConnection::exec_SELECTquery
ERROR Unknown column '_ORIG_pid' in 'field list'
lastBuiltQuery SELECT uid,pid,content,title,subtitle,image,link,text,tstamp,crdate,cruser_id,deleted,hidden,starttime,endtime,t3ver_oid,t3ver_id,t3ver_wsid,t3ver_label,t3ver_state,t3ver_stage,t3ver_count,t3ver_tstamp,t3ver_move_id,sorting,sys_language_uid,l10n_parent,l10n_diffsource,moduleimageslide,fieldname,_ORIG_pid,_ORIG_uid FROM tx_myextension_domain_model_modulecontent WHERE pid=-1 AND
t3ver_oid=530 AND
t3ver_wsid=5 AND tx_myextension_domain_model_modulecontent.deleted=0 LIMIT 1

Files

error-php.png (108 KB) error-php.png Albrecht Köhnlein, 2015-03-30 10:24
error-sql.png (338 KB) error-sql.png Albrecht Köhnlein, 2015-03-30 10:24

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #68643: Non-existing fields _ORIG_pid and _ORIG_uid in SQL statementClosed2015-07-30

Actions
Actions #1

Updated by Oliver Hader about 9 years ago

  • Status changed from New to Needs Feedback

Can you please provide the full stack-trace? It seems that something used the fields of an overlaid record row (which contains the computed property _orig_pid) and uses that as field value for a new SQL query.

Actions #2

Updated by Oliver Hader almost 9 years ago

  • Subject changed from Versioning of IRRE with FAL to Computed properties are queried in workspace context
Actions #3

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from Needs Feedback to Under Review

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45491

Actions #4

Updated by Gerrit Code Review almost 9 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45492

Actions #5

Updated by Gerrit Code Review almost 9 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45493

Actions #6

Updated by Oliver Hader almost 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF