Gallery 3.0.9, Debian x64.
I have a problem uploading to albums within albums. The structure is:
level1 (top)
>>level2
>>>>level3
>>>>>>level4
In admin mode, I created an album 'level4' under level3 and uploaded a
photo. I got an error "filename: cannot process this photo".
Uploading to levels1-3 works fine.
Checking the contents of /usr/share/gallery3/var/albums/level1/level2/level3
I see that the level4 directory is created with permissions 755 and
user:group www-data:www-data where www-data is the user/group that Apache runs. I expected that the directory would be created with the same permissions as its parent = 777. So this means the directory is not created writeable to other than user www-data.
The file is actually uploaded and is present in level4 but shows up in the
album with an empty thumbnail. The uploaded photo file has the same
permissions and user/group as level4.
The photo and the level4 album can be deleted within Gallery3 without error.
I'm wondering if there is some limitation on the sub-album levels that
Gallery3 will support?
Chris
Posts: 27300
No. I would suspect some other issue.
PHP should be the user www-data so it should be able to write to it. It creates the directory so I don't know why it can't write to it.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 6
I added user www-data/no password as a user to MySQL. That seems to have fixed the problem. I can see why it would since PHP writes to the DB, presumably as www-data. If that really is needed shouldn't it be a part of the install instructions do you think?
Chris
Posts: 27300
Sure I guess. Got some suggested wordiing and I can add it. To be honest you are the first one to report the issue that I know.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 1857
FYI: I have several galleries that are 4 levels deep: no issues. This may be some other issue with your setup?
Also, I'm a bit surprised that it is solved by adding a www-data user to MYSQL. And, if it's a permissions issue, I don't see why it would only affect the albums that are 4 levels deep. Why not the 2nd and 3rd levels? Or even the top level?
I'll think over that, but glad you got it working in the meantime. Not sure it should go in the docs, though--at least until someone has an idea of why it works and what the implications could be.