Undefined variable $iFrameGroup in StaticFileGenerationService.php line 852
During using the cli command vendor/bin/typo3 sg_cookie_optin:generate_static_files 1
I get this error:
Error!
Warning: Undefined variable $iFrameGroup in /.../private/typo3conf/ext/sg_cookie_optin/Classes/Service/StaticFileGenerationService.php line 852
The reason is that this variable is not defined if the condition in line 682 (boolean) $translatedData['iframe_enabled']
is not met.
Maybe changing line 852 to this whould help:
'iFrameGroup' => $iFrameGroup ?? [],