I have this messages trying to add an image to a node.

* warning: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 1573 is not allowed to access /workdisk/home/web/www.labussolaonline.org/htdocs/files/images owned by uid 1000 in /workdisk/home/web/www.labussolaonline.org/htdocs/includes/image.inc on line 321.
* warning: imagejpeg() [function.imagejpeg]: Invalid filename in /workdisk/home/web/www.labussolaonline.org/htdocs/includes/image.inc on line 321.
* Unable to create scaled thumbnail image
* Unable to cpy the selected file (/workdisk/home/web/www.labussolaonline.org/htdocs/files/images/temp/apertura_parco.jpg).
* Unable to cpy the selected file (/workdisk/home/web/www.labussolaonline.org/htdocs/files/images/temp/apertura_parco.thumbnai...).
* Unable to cpy the selected file (/workdisk/home/web/www.labussolaonline.org/htdocs/files/images/temp/apertura_parco.preview.jpg).

I have all the following directories existing and with 777 permissions
files/
files/images
files/images/temp
files/images/import

Many thanks,
Michele

Comments

michemon’s picture

I also tried deleting the .htaccess files where present in the above directories, but the problem still remains.

drewish’s picture

Status: Active » Fixed

it looks like the user that uploaded the file is not the same user as the webserver is running as. you'll need to talk to you ISP about it, it's an issue specific to your server.

michemon’s picture

Many thanks,
I'm enquiring my hosting provider.

Thanks,
Michele

michemon’s picture

Status: Fixed » Active

The first problem is now solved.

But I have another problem. I have no error, but the image is not visible.
I see only the relevant text. If I click it's the same: I can choose to see the original, the preview or the thumbnail version of the image, but only the text is visible... no image is there...

Is more or less the same problem I had with the node_image module.
I'm thinking if this also may depends on the server settings...

Any idea?
What can I do to give more details?

Many thanks,
Michele

drewish’s picture

is the site publicly visible? if so either provide a link or send me one through my contact form.

drewish’s picture

Status: Active » Fixed

okay based on some emails we swapped, i think these issues have been resolved.

michemon’s picture

Yes the issue is solved.

The problem was the server side configuration of users.

Many thanks for the assistance.

Michele

Anonymous’s picture

Status: Fixed » Closed (fixed)
wolfraem’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

I'm sorry to reopen this, but I'm hoping those that were talking here can reply back. I'm having the same issue (it takes the upload but only shows text), and am wondering if one of you two could post the process you used to solve michemon's issue.

Thanks,
Wolf

Stefan Nagtegaal’s picture

What browser/OS are you using?

Stefan

wolfraem’s picture

Windows XP MCE and Pro, Firefox 2.0.0.7 and IE 7.0.5730.x

In Firefox no dice whatsoever, in IE a placeholder the size of the image appears with the "broken link" red X in a box symbol.

wolfraem’s picture

Anyone with an idea? Please?

wolfraem’s picture

attached a screenshot showing what the node looks like. The image uploads to the site, resizes and thumbnails and everything, but when it doesn't show in any form on the page.

wolfraem’s picture

Status: Postponed (maintainer needs more info) » Fixed

I figured out what my problem was.

I started getting this error:

warning: is_dir() [function.is-dir]: Stat failed for files/css (errno=13 - Permission denied) in /home/public/drupal/includes/file.inc on line 90

Checking out another post, http://drupal.org/node/150154 , with the same issue, and I figured out that my book module was causing an issue through trial and error.

So, I have to figure out with book was, but I'm good to go again.

wolfraem’s picture

Sorry, turns out it was my Color Module as in the post I linked to above. Not book.

Anonymous’s picture

Status: Fixed » Closed (fixed)