#111276Records module: "Expand table" of page translations fails with UndefinedSchemaException "pages_translated"
Description
Problem
In the Records module, expanding the “Page Translation” section of a page (single table view, table=pages_translated) results in an exception:
#1661540376 TYPO3\CMS\Core\Schema\Exception\UndefinedSchemaException No TCA schema exists for the name "pages_translated".
Steps to reproduce
- Have a site with enough languages that a page has more translations than fit into the multi table view (e.g. 20+ page translations), so the “Expand table” button is shown below the “Page Translation” section
- Open the Records module on that page
- Click “Expand table” below “Page Translation” (URL contains
table=pages_translated)
Expected
The single table view of the page translations is shown, so editors can check and toggle the visibility of all language versions of the page.
Actual
Exception (see above). Stack trace (shortened):
TYPO3\CMS\Core\Schema\TcaSchemaFactory->get() in typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php (isEditable()) TYPO3\CMS\Backend\RecordList\DatabaseRecordList->createActionButtonNewRecord() in typo3/sysext/backend/Classes/Controller/RecordListController.php (getDocHeaderButtons())
Cause
DatabaseRecordList::start() resolves the pseudo table name pages_translated to pages (and sets showOnlyTranslatedRecords). RecordListController however keeps the raw request value in $this->table and passes it on in getDocHeaderButtons():
} elseif (($createNewRecordButton = $dbList->createActionButtonNewRecord($this->table)) !== null) {
createActionButtonNewRecord() → isEditable() → $this->tcaSchemaFactory->get('pages_translated') throws.
The same code is still present in the 14.3 branch and in main.
Possible fix
Resolve pages_translated to pages in the controller as well (or let createActionButtonNewRecord() / isEditable() handle the pseudo table name). As a workaround we XCLASS DatabaseRecordList and map the name in createActionButtonNewRecord():
public function createActionButtonNewRecord(string $table): ?ButtonInterface
{
if ($table === 'pages_translated') {
$table = 'pages';
}
return parent::createActionButtonNewRecord($table);
}
With this, the expanded page translation list renders correctly.
Environment
- TYPO3 14.3.10 (composer mode)
- PHP 8.4
Reviews 2
History 14
-
Gerrit Code Review pushed patch set 1 for main to change 97219 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-29T19:51:34+00:00" > 10/29/26, 19:51 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97219 <span data-processor="relativetime" data-value="2026-10-29T21:56:44+00:00" > 10/29/26, 21:56 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97245 <span data-processor="relativetime" data-value="2026-10-30T21:57:39+00:00" > 10/30/26, 21:57 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-30T22:10:12+00:00" > 10/30/26, 22:10 </span>
Applied in changeset commit:8d801d2c90e05ea8873899951d969c8e90c2c5cb.