Project

General

Profile

Actions

Bug #79692

closed

Error when "Edit the whole template record"

Added by Timo Hund almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Start date:
2017-02-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When i click on "Edit the whole Template Record" in the backend, i currently get the following error:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: strtoupper() expects parameter 1 to be string, integer given | TypeError thrown in file /app/htdocs/typo3_src/typo3/sysext/backend/Classes/Form/FormDataProvider/EvaluateDisplayConditions.php in line 205. Requested URL

I guess that this happens because of the strict type check:

declare(strict_types=1);

...

$logicalOperator = strtoupper($logicalOperator);
if (($logicalOperator !== 'AND' && $logicalOperator !== 'OR') || !is_array($groupedDisplayConditions)) {
throw new \RuntimeException(
'Multiple conditions must have boolean operator "OR" or "AND", "' . $logicalOperator . '" given.',
1481380393
);
}
...

I think the value should be casted to string before passing it to strtoupper.

Actions

Also available in: Atom PDF