news icon indicating copy to clipboard operation
news copied to clipboard

PHP8.1 ICS-Generation failed

Open h3nn3s opened this issue 1 year ago • 2 comments

Bug Report

Current Behavior When clicking a link to download a generated ICS the following exception occurs:

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Undefined array key "domain" in /var/www/html/html/typo3conf/ext/news/Classes/Controller/NewsController.php line 670

Expected behavior/output ICS file should be generated :-)

Environment

  • TYPO3 version(s): 9.4
  • news version: 9.4
  • php version: 8.1
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes

Possible Solution Adding something like isset($typoScriptArray[$key]) ?: $typoScriptArray[$key] = ''; in line 666 :imp: bevor appling stdWrap could solve the issue.

h3nn3s avatar Jul 20 '22 07:07 h3nn3s

wanna do a PR?

georgringer avatar Jul 20 '22 09:07 georgringer

If this is the right solution, I would do for sure :-) Will do it asap.

h3nn3s avatar Jul 20 '22 09:07 h3nn3s

resolved, closing issue

georgringer avatar May 17 '24 06:05 georgringer