Loading...
 
Features / Usability

Features / Usability


Problem with elFinder file gallery in 21.5

posts: 19

Hi
After updating to TikiWiki 21.5, the file gallery can no longer be used to embed an image (choose or upload images button) into a page.
The browser window opens and a blue progress bar is visible but then stops.
After some time the following error message appears:
Elfinder

The problem also occurs with a newly created empty TikiWiki with activated elFinder in the wizard.

This cannot be reproduced in the demo system on tiki.org, as the version is still running on 21.3.

Does anyone have an idea how to solve the problem?

posts: 126886 United Kingdom

Hi @Christoph

Sorry for the incredibly slow reposes to this - did you manage to solve it? I haven't found a specific issue with this in Tiki 21.5.

Can you see if there are errors in the JavaScript console and paste them back here (assuming there are some) please? In Chrome etc you get to it via View -> Developer -> JavaScript Console.

Thanks

posts: 19

Hi
Unfortunately the problem still exists.
Attached is the content of the console (not sure if this is the javascript console)
This time I tested it in a newer Xampp version (PHP 7.4.27) to make sure it's not related to my old version.
But the error is still there.
In your demo area, unfortunately, version 21.3 is still in use, so you can't verify the problem there.
The problem can be verified locally with Xampp but also on our rolled out Tikis with version 21.5 (PHP 7.3.xx).
Locally, the standard installation was clicked through and then elfinder was activated in the configuration wizard and also in the subsequent wizard window:
Set up File Gallery & Attachments: Only the first checkbox - Use elFinder UI
Elfinder1
Set up File storage: Checkbox - Set elFinder as the default file gallery viewer.
Elfinder2
If you then click on "Choose or upload image" in the toolbar in the editing window, it happens.
Elfinder3

posts: 126886 United Kingdom

Hi @Christoph again

Sorry to hear this, nothing in that log file, but the error is displayed in the alert box on the 3rd screenie, your php ran out of memory but at over 500MB! Which is a lot.

How many files do you have in that gallery? Does it load ok in other gallery views?

Unfortunately elFinder is not paginated, and the project leader is totally against if because when it's "normal" file system files it can handle thousands of them, it's just in tiki these come from the database so will run out of memory (and time) if there are too many files in the one directory...

Dividing the files up in different galleries is really the only way to get round this i'm afraid...

posts: 19
Jonny Bradley wrote:

Hi @Christoph again

Sorry to hear this, nothing in that log file, but the error is displayed in the alert box on the 3rd screenie, your php ran out of memory but at over 500MB! Which is a lot.

How many files do you have in that gallery? Does it load ok in other gallery views?

Unfortunately elFinder is not paginated, and the project leader is totally against if because when it's "normal" file system files it can handle thousands of them, it's just in tiki these come from the database so will run out of memory (and time) if there are too many files in the one directory...

Dividing the files up in different galleries is really the only way to get round this i'm afraid...


posts: 19

First of all, I would like to thank you for always taking the time to reply here.
It makes you feel not so alone with your problems.

Generally I always try to exclude that problems are due to our database contents or settings and thus I try to recreate this either in your demo system and/or in a local Xampp environment with a newly installed Tiki.

Also, I'm not sure if it's right to post these problems/questions here - at least hoping you're not the only one with these issues.

To get back to the problem. This also occurs with an empty database, i.e. a new installation without images in the database.
Therefore, it would have been nice to be able to reproduce it in your demo system with 21.5.

Does it make sense to report this as a bug - is there already the option to set up a 21.5 environment? - Maybe I will notice that it is not reproducible in the environment.

posts: 126886 United Kingdom

Hi @Christoph again

Christoph wrote:
Also, I'm not sure if it's right to post these problems/questions here - at least hoping you're not the only one with these issues.


Yes, here is fine, and i had a little spare time and the problem was the same for me on my local 21.x... luckily i had fixed this before for versions 23+ so managed to adapt the fix for 21.x and pushed it in this commit: https://gitlab.com/tikiwiki/tiki/-/commit/26428739

So either wait until 21.6 is released (no idea when that will be i'm afraid) or try a daily build download from here (tomorrow obviously ;)

Thanks for the report, sorry for the inconvenience and thank you for your patience.

posts: 19
Jonny Bradley wrote:

Hi @Christoph again
So either wait until 21.6 is released (no idea when that will be i'm afraid) or try a daily build download from here (tomorrow obviously ;)


Thanks for your support, where can i access the daily builds "here"?

posts: 126886 United Kingdom
Christoph wrote:
Thanks for your support, where can i access the daily builds "here"?

Sorry, that was supposed to be a link, oops!

posts: 19

Thank you for the link.
However, the lastiki_BRANCH-21-x.zip does not seem to contain your changes and I was not able to solve the problem by manually adding your changes (but this is probably my fault).

I don't want to cause any stress here, I just want to make sure that the problem is solved in version 21.6, when it will probably only be released in a few months and I don't have to wait any longer.

I'm not sure if it's because of the "Failed Jobs": https://gitlab.com/tikiwiki/tiki/-/pipelines/507192688 or maybe just the automatic build process is not working at the moment.

posts: 126886 United Kingdom
Sorry, no idea why the daily build didn't have the fixes, can only suggest you try again?

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