Bug #97712
closed
PHP Warning: Undefined array key "t3ver_oid" in DataHandler.php line 7445
Added by B. Kausch over 2 years ago.
Updated about 2 years ago.
Category:
DataHandler aka TCEmain
I cannot reproduce it on TYPO3 v11.5.10 and PHP 8.1 (with installed workspaces extension and without). This is strange as the log call is surrounded by a condition which checks if a new version is available (which should be not the case if workspaces are disabled for the table).
Can you upload your TCA configuration and a full stack trace of the error?
Chris Müller wrote in #note-1:
I cannot reproduce it on TYPO3 v11.5.10 and PHP 8.1 (with installed workspaces extension and without). This is strange as the log call is surrounded by a condition which checks if a new version is available (which should be not the case if workspaces are disabled for the table).
Can you upload your TCA configuration and a full stack trace of the error?
I think you misunderstood. I meant a table which is translatable but has no workspace columns! It has nothing to do with the workspace extension. The log method will be called when I try to translate a record... but the missing workspace columns (which are not mandatory) will lead to this warning.
- Target version deleted (
next-patchlevel)
I have now tried to reproduce it with a minimal viable case. But didnt't get the error again. I have migrated a pretty old dataset from v7 to v11. Maybe something were off in my configs/data and is now fixed... Please close the issue.
This problem still exists and can be triggered with EXT:styleguide
Given:
- list view of page "inline usecombinationbox"
- copy record "Form engine - inline use combination box" (in my case with Unique ID 1) to clipboard
- paste the record on any page
Expected:
- the record gets copied - either on the same or a different page
Actual:
- the warning "PHP Warning: Undefined array key "t3ver_oid" in DataHandler.php line 7445" is triggered
Code flow:
Copy triggers coping of related irre records with
\TYPO3\CMS\Core\DataHandling\DataHandler::copyRecord_raw -> \TYPO3\CMS\Core\DataHandling\DataHandler::insertNewCopyVersion ignoring that the table doesn't support workspaces at all.
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF