Actions
Bug #84652
closedTranslated page called with L parameter throws exception
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
Updated by Riccardo De Contardi over 6 years ago
- Related to Feature #84581: Create a backend module to create site configurations added
Updated by Gerrit Code Review over 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
Updated by Simon Gilli over 6 years ago
- % Done changed from 0 to 100
- Complexity set to no-brainer
- Is Regression set to Yes
Updated by Simon Gilli over 6 years ago
- Status changed from Under Review to Resolved
Applied in changeset 5a12dc5ffa8daaadd4ee6af71e164d4e46de2fb2.
Actions