Project

General

Profile

Actions

Bug #84652

closed

Translated page called with L parameter throws exception

Added by Riccardo De Contardi about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
Start date:
2018-04-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Site handling, localization, frontend
Complexity:
no-brainer
Is Regression:
Yes
Sprint Focus:

Description

Since the application of https://review.typo3.org/#/c/56505 I experience this behavior:

When I access a translated page with &L=1 parameter (the number does not matter) TYPO3 9.2-dev (latest master) throws an exception (I report here only the first lines):

Argument 1 passed to TYPO3\CMS\Core\Site\Entity\Site::getLanguageById() must be of the type integer, string given, called in /TYPO3-dists/typo3_master/typo3/sysext/frontend/Classes/Middleware/SiteResolver.php on line 60 

TypeError thrown in file
/TYPO3-dists/typo3_master/typo3/sysext/core/Classes/Site/Entity/Site.php in line 159.

TYPO3\CMS\Core\Site\Entity\Site::getLanguageById("1")

Credits to Markus Klein for finding what causes the error - see his comment on https://review.typo3.org/#/c/56505/56/typo3/sysext/frontend/Classes/Middleware/SiteResolver.php


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #84581: Create a backend module to create site configurationsClosedBenni Mack2018-04-03

Actions
Actions #1

Updated by Riccardo De Contardi about 6 years ago

  • Related to Feature #84581: Create a backend module to create site configurations added
Actions #2

Updated by Gerrit Code Review about 6 years ago

  • Status changed from New to Under Review

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/56599

Actions #3

Updated by Simon Gilli about 6 years ago

  • % Done changed from 0 to 100
  • Complexity set to no-brainer
  • Is Regression set to Yes
Actions #4

Updated by Simon Gilli about 6 years ago

  • Status changed from Under Review to Resolved
Actions #5

Updated by Simon Gilli about 6 years ago

  • Target version set to 9.2
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF