Problems, need help? Have a tip or advice? Post it here.
13 posts Page 1 of 2
I uploaded 50 large number of mp4 files (every 500Mb)
Everything works fine.
But when trying to login KCFinder in order to upload a new file, KCFinder begins to slow opening dialog (about 30 sec) during this time is busy the whole resource Apache Memory in C-panel.

It is important to say that places define( 'K_USE_KC_FINDER', 0 ); in config.php the problem disappears and everything is as it should!

Can this situation be allowed?
Regards.
Hi @orbital,

I assume that you have uploaded those 500MB files via FTP and not KCFinder, right?
So if the mere presence of large files in the listing causes KCFinder to hog memory, then yes it is unusual and needs to be investigated.

I'll need to take a look at your setup, though.
If possible PM me the FTP+Couch creds.

Thanks.
Thanks for the reply.
I want to clarify something important.
Currently choose CMS platform with which to manage site.
I like CouchCMS and I am your potential buyer for several licenses.
At present, this problem hinders the construction site of the TV which has many videos mp4 self hosted (JWplayer7).
Currently I have a simple test site that found this problem.
The aim is to upload files not via FTP! They must be picked up only via CouchCMS file uplouder.
The situation is as follows:
- define( 'K_USE_KC_FINDER', 0 ); in config.php = No problem
- define( 'K_USE_KC_FINDER', 1 ); in config.php = When trying to login KCFinder in order to upload a new file, KCFinder begins to slow opening dialog (about 30 sec) during this time is busy the whole resource Apache Memory in C-panel.
I could use CouchCMS in define( 'K_USE_KC_FINDER', 0 ); - no problem!
Please advice whether this will lead to another (different) problem ...
And why if define( 'K_USE_KC_FINDER', 1 ); burns 100% Apache Memory resource?

In conjunction with:
"I'll need to take a look at your setup, though.
If possible PM me the FTP+Couch creds."
Ok, it is quite possible as long as you want.

Regards!
I could use CouchCMS in define( 'K_USE_KC_FINDER', 0 ); - no problem!
Please advice whether this will lead to another (different) problem ..

When this setting is '0', Couch uses an older version of file-manager instead of KCFinder.
This file-manager is pretty basic compared to KCFinder but it will definitely not lead to another problem.

So if it works for you, please turn off KCFinder and use the basic uploader.

That said, I'd still like to take a look at your setup.
Please PM me the creds I requested.

Thanks.
Hi KK!
I want to report.
The problem with memory on the server when we have numerous and large size files is located!
It is overly outdated version of KCFinder.
I replaced the old version with the new (3.12) and everything is normal without any problems.

What I did:
1. Delete the contents of includes/kcfinder
2. Dounload latest version 3.12 from https://github.com/sunhater/kcfinder/releases/tag/3.12
3. Unzip, Upload to includes/kcfinder
4. Edit includes/kcfinder/conf/config.php:
- 'uploadURL' => "../../../up", (my custom upload directory)
- Change 'disabled' => true, to 'disabled' => false,
In doing so the new KCFinder 3.12 already working.

But needs some help from spicialized Couch administrator, because now KCFinder is in working mode when not being used session!!!
I can not do this.
Moved the old integration/couch.php file in the new location, but this does not solve the problem.
The question is how to make KCFinder 3.12 use session, because that's what the author warns:
"By default KCFinder is disabled. If you just set this setting to false all public visitors can upload and manage files on your web site. It is recommended to override this setting with sesssion configuration so only authenticated users can use KCFinder."

I like more Couch CMS, let's fix this problem please!
Regards

Attachments

@orbital, the version of KCFinder used by Couch has pretty extensive changes to beef up its security (and add some Couch specific features).

As such it won't be possible to simply swap our version with any other later version.

With regards to the specific problem that you reported (i.e. KCFinder taking too much time and memory while dealing with very large files), I've patched that particular problem (https://github.com/CouchCMS/CouchCMS/co ... a35f1806f1).

For your ease (and anybody else facing the same problem), here are the two files that have changed. Please extract the zip and place them at the right location (within 'couch/includes/kcfinder').

I'd request you to rollback to the Couch specific version of KCFinder and apply the patch above.

Please let me know if it helps.

Attachments

Dear KK, I happily report that you solve this big problem!

I did everything that you recommend - now Couch work FINE.
Thanks a lot for your time.
I'm really surprised :)

Today I buy a license.
Because it will be for test domain, is it possible after a short time to replace license for final domain?

REGARDS
Thanks for letting me know. I'm glad it helped :)

Replying to your question -
Because it will be for test domain, is it possible after a short time to replace license for final domain?
That is not a problem at all.
I'm the proud owner of license :D :D :D
Thanks.

P.S.
What is the technological time to change the domain name?
I thank you for choosing to support Couch by getting the commercial license, @orbital :)

Our licensing, in the spirit of open-source, is completely 'trust based'. So you don't need to anything special to apply the license on the new domain when you are ready to move there. Just edit 'couch/config.php' and set the following to '1' -
Code: Select all
define( 'K_PAID_LICENSE', 0 );

You can get the complete details here - http://docs.couchcms.com/miscellaneous/white-label.html

Hope it helps.
13 posts Page 1 of 2
cron