Project

General

Profile

Actions

Bug #86390

closed

null != NullSite

Added by Alexander Opitz over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-09-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

While calling backend login (/typo3) I get following:

Return value of TYPO3\CMS\Core\ExpressionLanguage\RequestWrapper::getSite() must be an instance of TYPO3\CMS\Core\Site\Entity\Site or null, instance of TYPO3\CMS\Core\Site\Entity\NullSite returned

TYPO3: 9.4.0

TypoScript

// First foreign language:
[site("languageId") == 1]
    config {

        language = en
        locale_all = en_GB.utf8
        sys_language_uid = 1

    }
[global]

// Second foreign language:
[site("languageId") == 2]
    config {

        language = fr
        locale_all = fr_FR.utf8
        sys_language_uid = 2

    }
[global]

BTW: Using "sites" this TypoScript is a bit stupid ... and the correct condition is [siteLanguage("languageId") == 1]...[end]

Actions #1

Updated by Alexander Opitz over 5 years ago

  • Description updated (diff)
  • Is Regression set to Yes
Actions #2

Updated by Alexander Opitz over 5 years ago

  • Description updated (diff)
Actions #3

Updated by Gerrit Code Review over 5 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/58403

Actions #4

Updated by Georg Ringer over 5 years ago

  • Category changed from Backend API to Link Handling, Site Handling & Routing
Actions #5

Updated by Tymoteusz Motylewski over 5 years ago

The code in the patch looks valid, but I can't reproduce the issue on current master. any hints?

Actions #6

Updated by Georg Ringer over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF