Opening content element in backend produces error
If I want to edit a content element of the type plugin with Generic Gallery, I get only the following error message:
Oops, an error occurred! Argument 1 passed to TYPO3\CMS\Extbase\Service\TypoScriptService::convertTypoScriptArrayToPlainArray() must be of the type array, null given, called in /.../typo3conf/ext/generic_gallery/Classes/Service/SettingsService.php on line 173
with the log:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Argument 1 passed to TYPO3\CMS\Extbase\Service\TypoScriptService::convertTypoScriptArrayToPlainArray() must be of the type array, null given, called in /.../typo3conf/ext/generic_gallery/Classes/Service/SettingsService.php on line 173 | TypeError thrown in file /.../Typo3/typo3_src-7.6.11/typo3/sysext/extbase/Classes/Service/TypoScriptService.php in line 32. Requested URL: https://.../typo3/index.php?route=%2Frecord%2Fedit&token=10835b1e2ca15341311ad2c46c7d6f8afa450117&edit[tt_content]=edit&returnUrl=%2Ftypo3%2Findex.php%3FM%3Dweb_list%26moduleToken%3Deed11351859999e31421b8f2fc9df9040480e2a1%26id%3D622 Typo3 v7.6.11 PHP 7.10 Generic Gallery 2.0.0
#4 Updated by Λάθε βιώσας over 2 years ago
I tried it to include the static templates in the root template, but the same failure when I open a generic gallery content element in the backend. After I was calling the page with the element in the frontend I found this error message in the log:
"[tx_generic_gallery] Error: Template for settings.gallery. not found!"
PS: Sorry if sometimes the answers need much time, but I am not primarly a web designer
#5 Updated by Felix Nagel over 2 years ago
That sounds much better. You need to add some gallery configuration.
Please take a look in the documentation:
#9 Updated by Michael Sollmann about 2 years ago
I can confirm this behaviour if I integrate the static template in another page than the root. The TS object browser shows the correct TS but I can not edit the CE because of this error.
Same with my own gallery templates if I integrate them directly on the page instead via root page: They are shown in the object browser but not in the type selector in the CE.
#10 Updated by Felix Nagel almost 2 years ago
- Status changed from On Hold to Needs Feedback
Finally found time to dig into this. Switched back to how TS was generated before the `SettingsService`. Seems to work probably now, regardless where the TS is included (root template, additional template, root page, ...).
Would you mind to test the latest master (https://github.com/fnagel/generic-gallery) and give some feedback?