hello, i have submitted Ticket #1034
i have upgraded zp to v1.2.3 r3427 and the problem is still occured.
i uncheck "Publish albums by default" because my zenphoto is not for public, only publish album when need.
my album structure:
gallery (root)
--- album-a
------- sub-album-a1 (photos inside)
----------- sub-sub-album-i (photos inside)
----------- sub-sub-album-j (photos inside)
----------- sub-sub-album-k (photos inside)
------- sub-album-a2 (photos inside)
----------- sub-sub-album-x (photos inside)
----------- sub-sub-album-y (photos inside)
----------- sub-sub-album-z (photos inside)
------- sub-album-a3 (photos inside)
--- album-b (empty)
case 1, all the albums are not published
----------------------------------------
i can enter to gallery (root), i can enter album-b, i cannot enter album-a and got error message.
case 2, publish only one child album (example: sub-album-a1 or sub-sub-album-i)
---------------------------------------------------
i can enter to gallery (root), i can enter album-b, i can enter album-a, i can enter
sub-album-a1 and all sub-sub-albums below. but still cannot enter sub-album-a2 and got error message.
case 3, publish only one child album (example: sub-album-a2 or sub-sub-album-x)
---------------------------------------------------
i can enter to gallery (root), i can enter album-b, i can enter album-a, i can enter
sub-album-a2 and all sub-sub-albums below. but still cannot enter sub-album-a1 and got error message.
error message is:
MySQL Query ( SELECT COUNT(*) AS row_count FROM `zp_images`, `zp_albums` WHERE `zp_albums`.folder!="" AND `zp_images`.albumid = `zp_albums`.id AND `zp_albums`.id in) ) failed. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Backtrace:
in query (functions-db.php [101])
in query_single_row (template-functions.php [3325])
in getRandomImagesAlbum (album.php [149])
in include (index.php [118])