Project

General

Profile

Actions

Bug #105713

open

Site sets setup.typoscript not loaded on Windows 10

Added by Steffen Mächtel 10 days ago. Updated 10 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2024-11-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
Windows, SiteSets
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Currently on Windows 10 operating system, the new Site Sets setup.typoscript is not loaded with TYPO3 13.4.1 Version.

class: TYPO3\CMS\Core\TypoScript\IncludeTree\SysTemplateTreeBuilder
method: handleSetInclude

private function handleSetInclude(IncludeInterface $parentNode, string $path, string $label): void
    {
        echo $path; // 'D:/vhosts/xxx/test-t13.local/vendor/typo3/cms-fluid-styled-content/Configuration/Sets\FluidStyledContent/'
        $path = GeneralUtility::getFileAbsFileName($path);
        echo $path; // ''

Quick Hotfix:

private function handleSetInclude(IncludeInterface $parentNode, string $path, string $label): void
    {
        echo $path; // 'D:/vhosts/xxx/test-t13.local/vendor/typo3/cms-fluid-styled-content/Configuration/Sets\FluidStyledContent/'

// Hotfix with fixWindowsFilePath
$path = GeneralUtility::fixWindowsFilePath($path);
        echo $path; // 'D:/vhosts/xxx/test-t13.local/vendor/typo3/cms-fluid-styled-content/Configuration/Sets/FluidStyledContent/' 

        $path = GeneralUtility::getFileAbsFileName($path);
        echo $path; // 'D:/vhosts/xxx/test-t13.local/vendor/typo3/cms-fluid-styled-content/Configuration/Sets/FluidStyledContent/'
Actions #1

Updated by Markus Klein 10 days ago

Wanna push your change to the review system?

Actions #2

Updated by Garvin Hicking 10 days ago

IMO we should check where that windows backslash is inserted and try to work with forward slashes instead. Probably some DIR_SEPARATOR is in there, or some normalization is missing...

(Don't have a windows system to test this myself)

Actions

Also available in: Atom PDF