flux icon indicating copy to clipboard operation
flux copied to clipboard

php 8

Open martin-git-kristensen opened this issue 3 years ago • 2 comments

Is there a possibility to upgrade flux to run under php 8?

martin-git-kristensen avatar Apr 29 '22 13:04 martin-git-kristensen

Hi,

Are you talking about the PHP “Undefined array key” error (https://www.php.net/manual/fr/migration80.incompatible.php) ?

I can run LTS 11.5 with flux 9.6.1 development and PHP 8.0.8 only in production mode (no TYPO3 debug activated). With debug activated, TYPO3 throws an exception in flux/Classes/Provider/PageProvider.php line 386.

itekne avatar Jun 09 '22 21:06 itekne

Also in Class: ContentTypeBuilder PHP 8.1

PHP Warning: Undefined array key "class" in /var/www/html/xxx/public/typo3conf/ext/flux/Classes/Integration/ContentTypeBuilder.php line 194

grischpel avatar Aug 02 '22 09:08 grischpel

Work is underway to add the necessary checks/null-coalesce statements when array keys may or may not be present. Even so, I would strongly recommend setting the TYPO3 configuration option exceptionalErrors to a value that excludes any E_NOTICE levels, e.g. 4096. Not even the TYPO3 core itself is safe from E_NOTICE issues, even in version 11.5.

NamelessCoder avatar Oct 21 '22 15:10 NamelessCoder