Loading...
 
Skip to main content

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
(0)
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


and the correct behavior


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 else

seems to work with 6.3

Importance
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3183
Created
Sunday 16 May, 2010 10:14:34 UTC
by bubi
LastModif
Tuesday 10 May, 2011 16:11:50 UTC


Show PHP error messages