Warnings with PHP 8.1
Closed this issue · 6 comments
When opening an content element in a fresh TYPO3 11 setup with PHP 8.1 i get the following warnings (using extension version 2.3.1)
PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "header" in /var/www/html/src/private/typo3conf/ext/content_animations/Classes/Form/Elements/AnimationPreviewField.php line 135
PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key 0 in /var/www/html/src/private/typo3conf/ext/content_animations/Classes/Form/Elements/AnimationPreviewField.php line 193
Hey @akiessling
thx for your hint with the php 8.1 issues.
I fixed them in the actual master branch. Maybe you can test it by using the dev-master branch in your composer and give me some feedback if the problem is gone. Then i'll release a new version with php 8.1 support.
greetings
Hi @baschte
i still get an exception here
Should this become
$html[] = '<div class="ce-preview" data-aos="' . ($parameterArray['itemFormElValue']['0'] ?? '') . '">';
?
$parameterArray['itemFormElValue']
is an empty array if there is no animation selected
hi @akiessling,
does your fix solves the error Message in your project? Cant check it out right now.
hey @akiessling,
please test the actual master in your project and give me some feedback please.
The problem should be solved now. My projects are working fine now with php 8.1 :-)
greetings
Looks good to me now @baschte
Thanks for taking care!
@akiessling
you're welcome!
New version 2.3.2 is out!
https://github.com/baschte/content-animations/releases/tag/2.3.2
Have fun