Hi there,

I installed the IMCE module successfully but then I went to:

create content >> story >> clicked the image button on the tinyMCE tool bar >> clicked the browse button on the pop-up window >> browsed the image on my local directory and hit the upload file button.

I got this message:

* warning: copy(): SAFE MODE Restriction in effect. The script whose uid is 32055 is not allowed to access /home/.../public_html/files/1 owned by uid 99 in /home/.../public_html/modules/imce/imce.module on line 186.
* warning: copy(files/1/MyPicture_copy.jpg): failed to open stream: Success in /home/.../public_html/modules/imce/imce.module on line 186.
* Error copying the file.

I guess, this is a problem with permissions on the server.

It seems that the IMCE module doesn't have enough rights to write inside the folder that was created to store the image.

How can I fix this?

Thanks.

CommentFileSizeAuthor
#4 imce.safemode.patch.txt1.62 KBufku

Comments

ufku’s picture

did you create any of the directories manually? by ftp or something else.
at first, try changing the prefix for personal folders(admin/settings/imce). if it doesnt work, please let me know.

beauregard’s picture

I have the same problem. I did not create anything manually, what I can see on the server is that the directory u1 created by IMCE has as owner "apache". The rights are 775 (Owner-Read/Write/Execute, Group - Read/Write/Execute, Public - Read/Execute).

theorichel’s picture

I have the same problem.

ufku’s picture

Status: Active » Needs review
StatusFileSize
new1.62 KB

here is a patch for cvs verison.
the cvs version was backported to 4.7. so you must download the 4.7 version from project to apply this patch. the CVS id of the file to be patched is $Id: imce.module,v 1.6 2006/09/29 13:50:57 ufku Exp $

ufku’s picture

Status: Needs review » Fixed

commited.

Anonymous’s picture

Status: Fixed » Closed (fixed)
ali.sharif’s picture

I guess, must off same_mode setting on the server

drvdt’s picture

Please, ask your support team turn off SAFE MODE for your hosting.
--> worked with me