Problems, need help? Have a tip or advice? Post it here.
11 posts Page 1 of 2
Hi,

I just upgraded from Couch 1.3.5 to 1.4 RC and installed KCFinder, too. Now all images uploaded before are not displayed on the website and if I try to upload new images, on opening KCFinder window displays an "Unknown error" message on both left and right side panel, and on selecting an image to upload it gives the following error message: "Cannot write to upload folder."
If right clicking on a place where image should show up I get the following 403 error:

Forbidden
You don't have permission to access /files/image/my_folder_name/my_image_name.JPG on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

The folder used to store uploaded files is placed on the website's root, and before upgrading was no problem with displaying or uploading files.
It is very strange, because few days ago I've upgraded couch and installed KCFinder on another domain and there are no problems at all with image displaying and uploading.
Hi,

Since the previous filemanager was working fine, I don't think it is related to write permission required for the uploads folder.

What could be a problem, however, is that while installing KCFinder proper permissions were not set on its (i.e. KCFinder's) core files (can happen when you upload a zip and extract the files on the server).

Please use the utility found at viewtopic.php?f=8&t=7315 to set the permissions right.

If that does not help, please take a look at your web-server's error log as that would give us the exact cause of what is going wrong.

Do keep us posted.
Thanks.
I don't know what's happening, but this is killing me :(
Why image display is not working anymore? I didn't touched the files permissions. KCFinder error log has this error:
[10-Nov-2013 07:52:38] PHP Warning: imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: Unable to open '/home/username/public_html/files/.thumbs/image/logo-footer.png' for writing: Permission denied in /home/username/public_html/couch/includes/kcfinder/lib/class_gd.php on line 391

Server error log file is not containing any recent error.
I dropped using KCFinder and now using again the standard uploader. But why do I have this situation with images not displaying? This is the worst part, but I would also like to use KCFinder also.
OK, I think I can see from the quoted error what the problem could be.

KCFinder creates a new folder named ".thumbs" (there is a dot in that) within the uploads folder used by Couch (which seems to be 'files' in your case).
Looks like it fails to do so because of the permissions in effect.

Please lend it a helping hand by manually creating the mentioned folder and setting 755 (or 777 if required) permissions on it.

Hope this helps.
Do let us know. Thanks.
Thank you KK, now I'm a step forward, but things still not working here :( .thumb folder was already created and the containing image folder too. Image folder had only 600 permission so I changed it to 777. After this step the necessary folders were created automatically in folder called image, but not the files these folders should contain. When I tried to upload an image using KCFinder the file names were there without visible thumbs, as the files physically do not exist on server. So I copied the entire image folder from files folder to files -> .thumbs folder as I saw they should have the same content. But nothing happened, same story as before.
So actually what is happening: when KCFinder is activated and I try to use it images aren't displayed anymore on the website. Deactivating KCFinder doesn't lead to showing images on the website.
In order to show images again on the website I have to do this:
1. Set 777 permission on "files" folder;
2. This generates a .htaccess file in "files" folder, with the following content:
<IfModule mod_php4.c>
php_value engine off
</IfModule>
<IfModule mod_php5.c>
php_value engine off
</IfModule>

3. Delete the .htaccess file

I don't know what is the logic behind this, but this is the only way I can bring back images to the websites front-end. And properly setting up KCFinder on this domain is still a mistery.
Hi,

As you said - we are close :)
Could you grant me access to your setup please?
If ok, please PM me the FTP and Couch creds.

Thanks
I hope we are close, indeed :) Thank you KK, private message with creds has already been sent.
Hi KK,

I was wondering, was there a solution to this issue?
I have created a blog for a friend, and recently had to move host/server (It functioned perfectly on the previous server). After a few teething problems, everything seemed to be working fine. However, now that she is trying to upload images, this problem is occurring. In KCFinder, "unknown error" is appearing in the popup box (both sides), and it says it can't write to the folder. It is a shared godaddy hosting package, so I don't have much access to the server.

I have changed all the permissions on the uploads folder to 777, but this has not helped.
I took the site exactly as it is, and put it on my localhost/xampp server on my laptop, and kcfinder is working fine, so I assume that it must be permissions (or something else) on the actual server.
Hope you can help.
Cheers!
Hi ewanmc,

Yes, indeed the issue was solved.
It required some changes to KCFinder's code - the version currently downloadable (viewtopic.php?f=6&t=7712) contains the changes.

So, in case you are using a version you downloaded some time back, you can try using the current one.

Do let me know if this helps.

Thanks.
Hi kk,
Unfortunately that hasn't helped. I replaced the old kcfinder (it was indeed an old version that was up there), but it still says unknown error. Not sure what to do, I've had to turn KCFinder off, but I don't think she's too happy with the old file manager...

I can DM you with FTP/login details if you have time to take a look?

Cheers,
11 posts Page 1 of 2
cron