Bug #39512
No galleries selectable with TYPO3 4.7.2
| Status: | Closed | Start date: | 2012-08-03 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | YAG 2.0 | |||
| Votes: | 1 (View) |
Description
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
kind regards
Alex
History
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.
Workaround:
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.
Cheers Stefan
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:
https://github.com/michaelknoll/yag/tree/v2
If you want to test it, you also need
https://github.com/michaelknoll/pt_extbase/tree/develop
and
https://github.com/daniellienert/pt_extlist/tree/develop
Any feedback on teh new version is welcome!
We plan the release of the new version with sone really cool new features in october.
greetz
Daniel
Updated by Alexander Dick 10 months ago
Thanks, module.tx_yag.persistence.storagePid = 0 did the trick!
Updated by Daniel Lienert 10 months ago
- Status changed from New to Closed