Tree View of File Gallery only shows the 1st Level of Galleries
- Status
- Closed
- Subject
- Tree View of File Gallery only shows the 1st Level of Galleries
- Version
- 4.x
5.x - Category
- Error
- Feature
- File Gallery (elFinder or standard UI)
- Submitted by
- bubi
- Lastmod by
- bubi
- Rating
- Description
On some PHP-Versions (e.g. PHP Version 5.2.0-8+etch16 - not on PHP Version 5.3.1) the file gallery tree view only shows the 1st level of galleries.
See the incorrect
Plugin ImageThe "id" parameter is not allowed unless "file_galleries_redirect_from_image_gallery" preference is enabled.
and the correct behaviorPlugin ImageThe "id" parameter is not allowed unless "file_galleries_redirect_from_image_gallery" preference is enabled.
the parent selection box at the edit form of galleries only shows these 1st level galleries too.galleries of a deeper level are not shown. Thus you can not create file galleries with level 3 or deeper.
- Solution
this comes from an invalid "&" character at the parameter "allIds" in the parameter list of the function _getGalleryChildrenIdsList() in line 860 of file filegals/filegallib.php.
for the first of the recursive calls of this function "allIds" have the correct list of Ids. for the second recursive call "allIds" has no values.
this is only reproducible on specific PHP-Versions (see above). on other versions the behavior seems to be correct.the same error may be true for the function _getGalleryChildrenIdsTree() a view lines below.
--------------
Sorry. I do not think this is a good fix:
in tiki4, tiki5 with php5 everything works fine.
Perhaps it is a problem with your php
allIds are not changed in the functions so the problem is somewhere elseseems to work with 6.3
- Importance
- 8
- Priority
- 40
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3183
- Created
- Sunday 16 May, 2010 10:14:34 UTC
by bubi - LastModif
- Tuesday 10 May, 2011 16:11:50 UTC