Loading...
 
Architecture / Installation

Architecture / Installation


File Galleries

posts: 4 United States

I'm having some problems with my file galleries and hope someone can help.

http://sportmachines.com/wiki/tiki-list_file_gallery.php

I believe the problem started after an upgrade. On my site, the files hosted in the file gallery live in an "uploads" directory. In the admin area, the path to the directory appears to be correct. Also, I have checked to make certain that directory does exist.

I am not able to upload any files and any files that are there are now dead links.

What else should I check?

Thanks,

Rick

posts: 1817 Catalan Countries

Dear Rick:

Which version of Tiki are you using?
And do you have files stored in folders on disk or in mysql tables?


I confirm that I discovered this serious issue in a production site of myself using tiki 10.x (svn ). This site of mine was upgraded in early january from tiki 9.x svn to 10.x svn. And when uploading some jpg images, they are not displayed, the image name seems to be truncated the extension (foo.jpg is converted into foo, it seems). And the error message in my case indicates a valid path (as it was working fine for a year in the server, etc.; no changes on that side; I doubled checked and perms are fine for apache to write in those folders, etc).

The hash corresponding to the file (as indicated in the error message shown in the browser) does not exist in the server, so it seems that the file does not get uploaded to that folder.

I don't know if this is the same as your case, but I list I wanted to confirm that there seems to be some issue in some cases, that might related to your issue also.
When a bug (or regression is confirmed), a bug report should be added in the Bug Tracker:
https://dev.tiki.org

and if a bug looks very serious, a message to the devel-list might be apropriate (most devs are not in the tiki forums, but all are in the devel list. See lists.



posts: 4 United States

I am using v10.0. I am storing the files in a directory, not in a table.

Everything worked fine in v9, but once I upgraded, it broke.

Cheers,

Rick


posts: 1817 Catalan Countries

Hi Rick:

I'm still suffering from this issue, and I have some more information about it. The issue might be related to the combination of global and local permissions in that file gallery (at least in my case). Because with same user, same file, when I upload it to another file gallery, it does upload with no issues at all.

Both galleries should have enough local perms to allow uploading the file to a user with tiki_p_admin (plus a few specific permissions for the file gallery, either directly or inherited from registered group).

But in one case of file gallery, it fails (reproduced again), but in the other, it works. Weird.

Lets see (in case this makes sense for any one). Global perms for registered for file galleries are:

Copy to clipboard
X Can download files (tiki_p_download_files) X Can upload files (tiki_p_upload_files) X Can view file galleries (tiki_p_view_file_gallery) Can admin file galleries (tiki_p_admin_file_galleries) Can assign perms to file gallery (tiki_p_assign_perm_file_gallery) X Can upload zip files with files (tiki_p_batch_upload_files) Can create file galleries (tiki_p_create_file_galleries) Can edit a gallery file (tiki_p_edit_gallery_file) Can remove files (tiki_p_remove_files) X Can view file galleries explorer (tiki_p_view_fgal_explorer) X Can view file galleries path (tiki_p_view_fgal_path)


At the file gallery where it works, I have these local perms applied:

Copy to clipboard
X Can download files (tiki_p_download_files) Can upload files (tiki_p_upload_files) X Can view file galleries (tiki_p_view_file_gallery) Can admin file galleries (tiki_p_admin_file_galleries) Can assign perms to file gallery (tiki_p_assign_perm_file_gallery) Can upload zip files with files (tiki_p_batch_upload_files) Can create file galleries (tiki_p_create_file_galleries) Can edit a gallery file (tiki_p_edit_gallery_file) Can remove files (tiki_p_remove_files) X Can view file galleries explorer (tiki_p_view_fgal_explorer) X Can view file galleries path (tiki_p_view_fgal_path)


At the file gallery where it DOES NOT work, I have these local perms applied:

Copy to clipboard
X Can download files (tiki_p_download_files) X Can upload files (tiki_p_upload_files) X Can view file galleries (tiki_p_view_file_gallery) Can admin file galleries (tiki_p_admin_file_galleries) Can assign perms to file gallery (tiki_p_assign_perm_file_gallery) Can upload zip files with files (tiki_p_batch_upload_files) Can create file galleries (tiki_p_create_file_galleries) Can edit a gallery file (tiki_p_edit_gallery_file) Can remove files (tiki_p_remove_files) X Can view file galleries explorer (tiki_p_view_fgal_explorer) X Can view file galleries path (tiki_p_view_fgal_path)


So the only difference seems to be "Can upload files (tiki_p_upload_files)", which is granted for registered, in the case of the file gallery where the jpg file upload DOESN'T work.

Can you try uploading your file to another file gallery with different combination of global and local permissions? (to see whether in your case the permissions are key to trigger this error)

Xavi


posts: 1817 Catalan Countries

Hi Rick:

The issue with images that I experienced has been fixed by jonnyb in r44666 (trunk) and r44667 (10.x)
http://sourceforge.net/p/tikiwiki/code/44667

In the end the problem seems to be with image resize in one file gallery, not with local perms (the image was deleted after the resize, it seems).

Was your problem related to images getting resized in the file gallery? can you test his fix?

I hope you can test with some updated daily build of 10.x from tomorrow or so. See:
https://dev.tiki.org/Daily+build

Or manually applying that fix. See changes here:
http://sourceforge.net/p/tikiwiki/code/44667


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting