Project

General

Profile

Actions

Bug #86734

closed

not possible to edit pages with sys_language_uid > 9 with SiteHandling

Added by Sven Juergens about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2018-10-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

hi,

I have a system with 10 languages ​​and several RootPages. Each RootPage has the default language and a translation.
The languages ​​are assigned via sitehandling.
If I assign a Rootpage the language 10 I can not edit these over the module "Pages" and get the following error message

(1/1) #1522960188 InvalidArgumentException
Language 1 does not exist on site xx.

I would like to edit the language with the UID 10, but get the error message the language with the Uid 1 is not available.
The Error is in \TYPO3\CMS\Backend\Form\Element\InputSlugElement::class (InputSlugElement.php) on line 67:

66 - $languageField = $GLOBALS['TCA'][$table]['ctrl']['languageField'];
67 - $languageId = (int)($row[$languageField][0] ?? 0);
68 - $baseUrl = $this->getPrefix($this->data['site'], $languageId);

$languageField is for table pages 'sys_language_uid' and $row has

$row[
  ...
   'sys_language_uid' = 10
 ...
]; 

so with line 67 we get only the '1' instead of '10'

so line 67 sould changed to:

67 - $languageId = (int)($row[$languageField] ?? 0);


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #86754: OverrideVals are not always set for editing pages ClosedDaniel Goerz2018-10-26

Actions
Has duplicate TYPO3 Core - Bug #86554: Field value does not get converted to array if using overrideValsClosedAndreas Wolf2018-10-03

Actions
Actions

Also available in: Atom PDF