Loading...
 
Skip to main content

Category: File Gallery (elFinder or standard UI)

File Gallery (elFinder or standard UI)
Show subcategories objects

Name Type
File button in CKEditor WYSIWYG not working for IE 8
This bug is seen by our IE 8 clients. We are running Tiki 6.2 (clean install), on a Windows 2003 Server, Apache 2.2.16 w SSL, PHP 5.3.3, remote MySQL 5 database.

When our users are editing in the CKEditor WYSIWYG and try the File option in the toolbar there is a Javascript error for lib/jquery_tiki/tiki-jquery.js at line 808 char 4. What is happening after the error is thrown is that no new window is opened (as expected) but the File selection fields are now under the WYSIWYG Editor. This wouldnt be an issue, but there is no OK button to select the file so our users can not like to a file in the File Gallery.

If I try using the File option in FF then it opens a new window and I can select the file just fine.

Since IE is our corp standard our users need to be able to add files using that browser. Also, they had no problem in Tiki 5.x but that was a different WYSIWYG system.

Thanks,
Tim
tracker item
File Corruption
Getting file corruption on display/download.
tracker item
File corruption in file gallery
We are getting file corruption in the file gallery. The first byte is getting prepended with a "0a" newline character and the last byte is getting dropped. This is happening on display/download, not upload. We have verified by manually copying uploaded files off the server and the stored files have no corruption.
tracker item
File downloads at Themes.t.o. aren't being counted
Sometime between Sept. 4 and 25, hits on files (that is, the counter on file downloads) stopped working at https://themes.tiki.org/file27 . Three files uploaded since Sept. 25 show zero hits, even though I've downloaded each of them at least once to check the downloading, etc., both logged in as admin and not logged in.

My localhost branch 16 also shows this problem.
tracker item
File Galleries (File upload failed: SyntaxError: Unexpected token < in JSON at position 0)
I upgraded to 18.0 and got this error, then I upgraded to 18.1 and still got this error.

I erase the website, built a new database, and I still get this error.

When I try to upload a file to file gallery
MetArt01s.jpg
File upload failed: SyntaxError: Unexpected token < in JSON at position 0
tracker item
File Galleries - Reupload file from disk
Version 18.2

If i navigate as default user to an existing file gallery, select a file, open it's file informations (Get Info) and choose "Edit properties" i do have the option to re-upload a file from disk.

I assume this should upload a new file and replace the existing one. It should as well keep the existing ID.

For the default user i do get a blank page after pressing save, and the apache error log shows the following

[Fri Sep 14 11:15:38.891167 2018] [php7:notice] [pid 12030] [client 172.20.2.114:57704] PHP Notice: Undefined index: fileId in /var/www/html/lib/filegals/filegallib.php on line 3501, referer: http://tiki.x.y/tiki-list_file_gallery.php?galleryId=12
[Fri Sep 14 11:15:38.891711 2018] [php7:warn] [pid 12030] [client 172.20.2.114:57704] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/lib/filegals/filegallib.php:3501) in /var/www/html/lib/tikiaccesslib.php on line 1142, referer: http://tiki.x.y/tiki-list_file_gallery.php?galleryId=12
[Fri Sep 14 11:15:42.113287 2018] [php7:notice] [pid 12030] [client 172.20.2.114:57704] PHP Notice: Undefined index: fileId in /var/www/html/lib/filegals/filegallib.php on line 3501, referer: http://tiki.x.y/tiki-list_file_gallery.php?galleryId=12
[Fri Sep 14 11:15:42.113706 2018] [php7:warn] [pid 12030] [client 172.20.2.114:57704] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/lib/filegals/filegallib.php:3501) in /var/www/html/lib/tikiaccesslib.php on line 1142, referer: http://tiki.x.y/tiki-list_file_gallery.php?galleryId=12
[Fri Sep 14 11:15:55.943791 2018] [php7:notice] [pid 12032] [client 172.20.2.114:57754] PHP Notice: Undefined index: fileId in /var/www/html/lib/filegals/filegallib.php on line 3501, referer: http://tiki.x.y/tiki-list_file_gallery.php?galleryId=12
[Fri Sep 14 11:15:55.944216 2018] [php7:warn] [pid 12032] [client 172.20.2.114:57754] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/lib/filegals/filegallib.php:3501) in /var/www/html/lib/tikiaccesslib.php on line 1142, referer: http://tiki.x.y/tiki-list_file_gallery.php?galleryId=12

I don't get this error with my admin user account.

tracker item
File Galleries - Listings - ID
Version 18.2

I have configured
* "File Galleries" -> "Listings" -> "ID" to "Show as column"

If i open of the File Gallery i do see the column ID only in "list" view, but not in the "Finder" view.


Current behavior:
* ID column is not shown in all possible views

Expected behavior:
* Show configured column if view-mode supports it
tracker item
File Galleries - Setting: Default view is not throughout
Version 18.2

I have configured 'File Galleries' that the 'default view' is set to 'List' and applied this setting

If i now select 'File Galleries' -> 'List galleries' i do see in fact the selected list view.
If i then navigate into a shown folder the view switches automatically to the Finder view.

I assume this is not the expected behavior of a configured default view or is it?

Current behavior:
* Switches view automatically on choosing/opening a folder

Expected behavior:
* stick to the configured default view until a user selects another view
tracker item
File galleries are locked by default
By default, creating a file gallery marks it as locked (the "Gallery is unlocked." checkbox is unckecked and the public property is disabled). This causes users other than the gallery's owner to be unable to upload files to galleries by default, even if they have tiki_p_upload_files on the relevant gallery.

There are several ways to see the problem:
# An object should not be created locked by default.
# The description of tiki_p_upload_files, "Can upload files", is misleading as it does not mention locking.

This can be considered as 2 different problems, but it would be prioritary to fix at least one, no matter which.



I think that by default "Gallery is unlocked" should be checked, but changing such a default would be dangerous if users relying on the current behavior don't realise the change. So I think my recommendation would be to replace the current checkbox with 2 radio boxes (labelled something like "Only owner can upload files" or "All users with permission can upload files"), with none selected by default.
tracker item
file galleries broken (db error) for some registered users on upgraded 1.10 site
Since some weeks (maybe a couple of months?) file galleries return db error when users logs in tiki. (Using updated 1.10)

Example:
http://uniwiki.ourproject.org/tiki-file_galleries.php

When logging in as user sylvie (or Xavier.dePedro, for instance), I get

{CODE(wrap=>1)}
An error occured in a database query!
Context:
File tiki-file_galleries.php
Url tiki-file_galleries.php
Query:
select * from (select u.* , f.`friend` from `users_users` u left join `tiki_friends` as f on (u.`login` = f.`friend` and f.`user`=?) order by `login` asc) as tab
Values:
0 sylvie
Message:
Error Message 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 'select u.* , f.`friend` from `users_users` u left join `tiki_
{CODE}

If you try as anonymous, or as newly created plain registered users (try with user/pass: prova/prova ), everything is shown fine.

FYI: friendship is toggled off as feature.
tracker item
File galleries broken after 4.3 to 5.x upgrade
Yesterday I upgraded from 4.3 to 5.2, and everytying seemed to go ok (all upgrade operations were executed successfully). However, every time I try to edit or create a file gallery I get the same error message, which seems to be related to a missing field (show_lastDownload) in the tiki_file_galleries table.

I copy below one of such errors. Please, note that, according to the community forums [http://tikiwiki.org/tiki-view_forum_thread.php?comments_parentId=38578&topics_offset=2&topics_sort_mode=lastPost_desc&forumId=6|this issue was already reported for a 4.3 to 5.1 upgrade].

I think that a) somebody should check the upgrade for a possible bug, and if possible b) find a way to solve this issue for sites running tiki 5.x with this feature broken.

---

The following error message was returned:

Unknown column 'show_lastDownload' in 'field list'

The query was:
insert into `tiki_file_galleries`(`name`, `description`, `created`, `user`, `lastModif`, `maxRows`, `public`, `hits`, `visible`, `show_id`, `show_icon`, `show_name`, `show_description`, `show_created`, `show_hits`, `show_lastDownload`, `max_desc`, `type`, `parentId`, `lockable`, `show_lockedby`, `archives`, `sort_mode`, `show_modified`, `show_creator`, `show_author`, `subgal_conf`, `show_last_user`, `show_comment`, `show_files`, `show_explorer`, `show_path`, `show_slideshow`, `default_view`, `quota`, `image_max_size_x`, `image_max_size_y`, `backlinkPerms`, `show_backlinks`) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)

Values:

1. mytestfilegallery
2.
3. 1285469672
4. jme
5. 1285469672
6. 25
7. n
8. 0
9. y
10. o
11. y
12. f
13. n
14. y
15. y
16. n
17. 1024
18. default
19. 19
20. n
21. n
22. -1
23.
24. y
25. o
26. o
27.
28. o
29. o
30. y
31. y
32. y
33.
34. list
35. 0
36. 0
37. 0
38. n
39. n

The built query was likely:
insert into `tiki_file_galleries`(`name`, `description`, `created`, `user`, `lastModif`, `maxRows`, `public`, `hits`, `visible`, `show_id`, `show_icon`, `show_name`, `show_description`, `show_created`, `show_hits`, `show_lastDownload`, `max_desc`, `type`, `parentId`, `lockable`, `show_lockedby`, `archives`, `sort_mode`, `show_modified`, `show_creator`, `show_author`, `subgal_conf`, `show_last_user`, `show_comment`, `show_files`, `show_explorer`, `show_path`, `show_slideshow`, `default_view`, `quota`, `image_max_size_x`, `image_max_size_y`, `backlinkPerms`, `show_backlinks`) values ('mytestfilegallery','','1285469672','jme','1285469672','25','n','0','y','o','y','f','n','y','y','n','1024','default','19','n','n','-1',NULL,'y','o','o',NULL,'o','o','y','y','y',NULL,'list','0','0','0','n','n')
tracker item
File Galleries Failing to Display in Tiki 11.0 -- A Fix
{syntax type="tiki" editor="plain"}
Was getting the following error in my CGI Log when I tried to display the File Galleries in Tiki 11.0:

PHP Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template &quot;/.../.../.../.../wiki_11/templates/tiki-list_file_gallery.tpl&quot; on line 253 &quot;__{quotabar length='100' value=$smarty.capture.use}__&quot; unknown tag &quot;quotabar&quot;' in /.../.../.../.../wiki_11/vendor/smarty/smarty/distribution/libs/sysplugins/smarty_internal_templatecompilerbase.php:665

I recalled having this problem a few times after an upgrade all the way back to version 8. The way I have fixed it is simply to go into templates/tiki-list_file_gallery.tpl and remove the expression {quotabar length='100' value=$smarty.capture.use}. Once I do that and upload the modified file, I'm able to display my file galleries. Don't know if that will work for everyone, but it has worked for me.

Why is there a problem with quotabar? That's a file that I notice won't upload when I use Filezilla to upload the files for a new installation, so maybe that's the source of the problem. It seems to me that this issue has been around for several versions now. Can someone please fix it? Thanks in advance.
tracker item
File Galleries not visible to groups without permission "tiki_p_admin_file_galleries"
Users in groups without the "tiki_p_admin_file_galleries" group permission set cannot see any file galleries in the "List Galleries" page, even if "tiki_p_list_file_galleries" (or all file gallery permissions) are switched on for the group and/or the File Gallery.

However, the user can still access the gallery directly if they know the exact URL, eg:
http://site.com/wiki/tiki-list_file_gallery.php?galleryId=2

The "List Galleries" page loads, but the list of galleries shows only "No records found". If "tiki_p_admin_file_galleries" is enabled, all permitted galleries appear in the list.

tracker item
File Galleries Slideshow not working
File gallery slideshow does not work.

editor is not defined
file4?&slideshow
Line 12

The file templates/file_gallery_slideshow.tpl requires lib/slideshow/slideshow.rc1.packed.js but the latter file is missing, as is the "icons" directory which it requires.

On a related note, the directory lib/slideshow now contains directories css and js but no instructions on their use.
tracker item
File Galleries, Admin; Error on disabled feature Preference fgal_list_ocr_state
A missing/disable preference displays an error about "Preference fgal_list_ocr_state" at: tiki-admin.php?page=fgal#contentfgal_admin-3
(this is a new Tiki26 mostly default)

{img fileId="2064" thumb="box"}
tracker item
File Galleries, Categories; It should be possible to select several files together and categorise them
{syntax type="tiki" editor="plain"}
After being uploaded it should be possible to categorise ALL files of a Gallery or to select several and categorise them with 1 or 2 clicks.

You can categorise a gallery BUT it will not apply the category change to the inner files of the gallery.
When you are in the gallery you can view the files in the gallery and can select several files to move them, delete them, etc but not to categorise them. This is really missing (after moving image gallery or reorganising a Tiki) as you have to edit one by one the file properties and categorise it.

On the Category Admin side there is not easy way to do this either. You can categorise a Gallery but not the files in it.
You have to search categorise each object one by one. Not humanly doable....
tracker item
File Galleries, Upload; have to try several times before successfully upload an image on dev.t.o
When producing the report at dev.t.o I tried to upload a screenshot and I had several time an error before on my fourth attempt I could successfully upload a file.

Details on how I proceed to upload an image at dev.
* I click on the img wikiplugin icon on the toolbar of the (this) text area.
* I click on "Browse Gallery", using the side Explorer I navigate to: Bugs report => Bsfez
* I click on the upload icon

There I tried with different options:
"Automatic upload" yes/no
Dragging the file on the upload area, using the "Choose file" button

{img fileId="2090" thumb="box"}

I forgot to mention that I tried on brand new Tiki25 (new DB) and I couldn't reproduce.
No issues for the same operation on 2 Tiki26.
Could be something at dev.t.o only.

tracker item
File galleries; The label - tooltip of the wrench near a file gallery link is erroneous
Logged as admin, when you navigate inside the File Galleries you can see the name of the Gallery you are in and close to it a wrench. The wrench tootip let you understand that you will be able to interact with THIS file gallery settings but in reality you are sent to the Admin Control Panel "File Galleries".
https://dev.tiki.org/tiki-admin.php?page=fgal#File%20Galleries

{img fileId="2091" thumb="box"}

This is quite confusing for new Admins.
tracker item
File galleries: Empty archive if accessed by ID
File galleries have a useful feature: You can store more versions of a file than one. That allows for images to be updated with higher resolution ones etc.

When you browse a file gallery, the wrench icon gives you access to the other archived versions of the file. However, when you access the file gallery by the ID of a specific file (which doesn't change when you upload new versions!), then the wrench icon lists Archive, but does NOT give access to any older, archived versions. Thus, the Archive feature cannot be used (at all) when accessing the file gallery by file ID...
tracker item
file gallery - add a simple 'sort' to browse mode
there is no simple "sort by" when you view a gallery (e.g. browse mode). you always have to go into the gallery config and change it there, that is very unintuitive.
tracker item
file gallery - allow to disable the tree
when listing a gallery via tiki-list_file_gallery.php?page=fgal&galleryId=<GALLERYID>, there should be a way to disable the gallery tree on the left. I have the same gallery tree in the left tiki bar, so I have it twice on the page, when working in the file galleries.
tracker item
file gallery - images should show image dimensions by default
I somehow miss a simple display of image dimensions when a gallery entry is an image; maybe we should have some third gallery type besides podcast audio and video for image, to show additional properties for those. finding those hidden in the additional EXIF data is not a good solution.
tracker item
File gallery - not able to move back a gallery in root gallery
It is possible to create several galleries in the root gallery of the file gallery.

It is possible move those galleries into sub-galleries and move everything into other sub-galleries.

It is not possible to move nothing back to the root gallery. In the move dropdown menu the "root" (File Galleries) item is not available.

Should not be restricted.

tracker item
File gallery : "Upload New Version" may have no effect
The "Upload New Version" action item in file galleries is no longer reliable. Clicking it opens a file selection dialog, but if the wrench icon controlling the menu of action items is not clicked, the dialog disappears quietly, without reporting any error. This is not too misleading, since there is no false confirmation.

http://bsfez-11581-5668.show.tikiwiki.org/tiki-list_file_gallery.php?galleryId=1
Can't upload a new version....
tracker item
Upload new version fails with Chromium 11 on Ubuntu
In Tiki 6.3, when using the 'Upload New Version' feature in the file gallery with Chromium 11 on Ubuntu 10.04 amd64, the file selection dialog appears, but when a file is chosen, nothing happens.

It appears to be an incompatibility with the browser, as the bug does not exist when using the following browsers/OS:
- Firefox 3.6, Ubuntu 10.04
- Chrome 11, Windows 7
- IE 8, Windows 7

Couldn't find anything on the chromium bug list or tiki bug list.

Any help is greatly appreciated!
tracker item
Show PHP error messages