plan2net / webp

Create a WebP copy for images (TYPO3 CMS)
GNU General Public License v3.0
60 stars 33 forks source link

PHP 8 Undefined array key #96

Closed fritzdacat closed 5 months ago

fritzdacat commented 5 months ago

In TYPO3 12 and PHP 8 (.2/.3), when using the webp extension, I consistently encounter this error in the logs:

Core: Error handler (FE): PHP Warning: Undefined array key "processor_stripColorProfileCommand" in /var/www/html/vendor/plan2net/webp/Classes/Converter/MagickConverter.php line 20

fritzdacat commented 5 months ago

Okay, I had "Use the system GFX 'processor_stripColorProfileCommand' setting for the MagickConverter converter" and didn't have "$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileCommand'" set. Is it possible that $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileCommand' is no longer set by default in TYPO3?

garbast commented 5 months ago

This still should not throw a warning and could easily be fixed with an ['processor_stripColorProfileCommand'] ?? false access.

wazum commented 5 months ago

Duplicate #92