Skip to content

[BUGFIX] Catch exception for sites that do not include the typoscript setup - #8

Open
tillhoerner wants to merge 1 commit into
connecta-ag:masterfrom
tillhoerner:patch-1
Open

[BUGFIX] Catch exception for sites that do not include the typoscript setup#8
tillhoerner wants to merge 1 commit into
connecta-ag:masterfrom
tillhoerner:patch-1

Conversation

@tillhoerner

Copy link
Copy Markdown

We have a multi-site installation where not all sites include the TypoScript Setup of this extension as they don't use footnotes. For these sites plugin.tx_t3footnotes is not defined and this exception is thrown.

Argument 1 passed to TYPO3\CMS\Core\TypoScript\TypoScriptService::convertTypoScriptArrayToPlainArray() must be of the type array, null given, called in /var/www/html/private/typo3conf/ext/t3footnotes/Classes/Hooks/FootnotesHook.php on line 59

This PR catches that and also exits early in case the configuration is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant