No galleries selectable with TYPO3 4.7.2
|Priority:||Must have||Due date:|
|Target version:||YAG 2.0|
When inserting the content element / frontend plugin, an extbase error shows up and no galleries are selectable.
PHP Warning: Invalid argument supplied for foreach() in /html/typo3/typo3_src-4.7.2/typo3/sysext/extbase/Classes/MVC/Request.php line 319
There is an existing gallery (created via the Gallery module) and the static template is included on that page.
See the attached screenshot.
TYPO3 version 4.7.2, therefore Extbase version 4.7.2 and Fluid version 4.7.2
YAG version 1.5.0
Updated by Stefan Klug 11 months ago
- The foreach error isn't really the problem. It should still get fixed though.
- The main problem is, that YAG doesn't correctly handle PIDs and all items are stored with pid=0. When the current extbase (4.7.2) tries to fetch records it searches for a default storagePid. In my case this results in the pid of the root page which was 1.
I don't know the best/correct solution to the problem. There is some yag TS setup in yag/Configuration/TypoScript/BaseConfig.ts which seems to try to set the storagePid of tx_extbase to 0. But Typo3 ignores this in my case.
Add the following line to the TypoScript Setup of the root page:
module.tx_yag.persistence.storagePid = 0
It is important to add this to the root page, and not your gallery page.
Updated by Daniel Lienert 11 months ago
- Target version set to YAG 2.0
Hey Stefan, hey Alexander,
Thx for your investigations and the hotfix. We tackled this problem within the version 2.0 which is ready for a release - but we currently not have any time at all for writing a manual and a converter from the version 1.5.0.
V2 uses the PID structure correctly and you will be able to use as many sysfolders you want to store the YAG recods.
The code is available on github:
If you want to test it, you also need
Any feedback on teh new version is welcome!
We plan the release of the new version with sone really cool new features in october.
Updated by Alexander Dick 10 months ago
Thanks, module.tx_yag.persistence.storagePid = 0 did the trick!