-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] PHP Warning: Undefined array key "multipleSource". #1298
Comments
Not sure if this is the same error source but I'm getting a lot of similar
This is after (hard-)reloading a document page. Environment:
|
It is the same error which is visible for PHP 8.x. PHP 7.x is not displaying this warning. The two fixes can be found here #1322 and here #1324. The main cause for the problems is missing configuration from FlexForms. During the upgrade to TYPO3 11.x the FlexForms were also updated and since that time they are not read anymore. Some of the settings are read from TS config, but not all of them are configured there so those are missing. Fixes mentioned above are helping by adding the default values but are not fixing the root cause. |
Description
The usage of array in newly inserted code is throwing errors in PHP 8:
Wed, 14 Aug 2024 15:01:20 +0000 [CRITICAL] request="774b121ecf4f4" component="TYPO3.CMS.Core.Error.DebugExceptionHandler": Core: Exception handler (WEB: FE): TYPO3\CMS\Core\Error\Exception, code #1476107295, file /var/www/html/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php, line 137: PHP Warning: Undefined array key "multipleSource" in /var/www/extensions/kitodo-presentation/Classes/Controller/AbstractController.php line 512- Exception: PHP Warning: Undefined array key "multipleSource" in /var/www/extensions/kitodo-presentation/Classes/Controller/AbstractController.php line 512, in file /var/www/html/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php:137 - {"mode":"WEB","application_mode":"FE","exception_class":"TYPO3\\CMS\\Core\\Error\\Exception","exception_code":1476107295,"file":"/var/www/html/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php","line":137,"message":"PHP Warning: Undefined array key \"multipleSource\" in /var/www/extensions/kitodo-presentation/Classes/Controller/AbstractController.php line 512","request_url":"https://sachsendigital.ddev.site/werkansicht?tx_dlf%5Bid%5D=https://digital.slub-dresden.de/data/kitodo/TheDarea_416971482-19060203/TheDarea_416971482-19060203_mets.xml","exception":"TYPO3\\CMS\\Core\\Error\\Exception: PHP Warning: Undefined array key \"multipleSource\" in /var/www/extensions/kitodo-presentation/Classes/Controller/AbstractController.php line 512 in /var/www/html/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php:137\nStack trace:\n#0 /var/www/extensions/kitodo-presentation/Classes/Controller/AbstractController.php(512)
Reproduction
Steps to reproduce the behaviour:
Expected Behavior
This kind of errors should not happen as Kitodo.Presentation provides support up to PHP 8.3. The handling of nonexistent array keys should be made appropriately.
Screenshots and Examples
Environment
The text was updated successfully, but these errors were encountered: