Project

General

Profile

Actions

Bug #102343

closed

Empty $GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLocale'] leads to Internal Server Error

Added by Xavier Perseguers about 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Start date:
2023-11-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

After uploading a PDF file in File > Filelist with TYPO3 v12, I could not show the directory anymore, it always fails with "500 - Internal Server Error".

Nothing in logs, nor in php.log, Development environment, ...

I tracked the problem down to \TYPO3\CMS\Core\Utility\CommandUtility::escapeShellArguments():447 where the call

setlocale(LC_CTYPE, $GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLocale']);

is the culprit.

It turns out systemLocale is empty on that development environment.

That calls is done when $GLOBALS['TYPO3_CONF_VARS']['SYS']['UTF8filesystem'] is true.

After setting systemLocale to en_US.UTF-8, the call doesn't fail anymore and everything's fine.

=> this kind of misconfiguration should not cause a very hard to debug Internal Server Error.

=> maybe the resolution may be backported.


Related issues 1 (0 open1 closed)

Precedes TYPO3 Core - Bug #102405: Followup: Empty $GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLocale'] leads to Internal Server ErrorClosed2023-11-082023-11-08

Actions
Actions

Also available in: Atom PDF