After a fresh install of Drupal 6.10 I upload and actavate the imagecache module.
Then I go to the imagecache UI and click 'Add a new preset'. I enter a preset name and 'Create'
The on the next page I get the following error:
The selected file sites/default/modules/imagecache/sample.png could not be uploaded, because the destination imagecache_sample.png is not properly configured.
And the preview URL is http://www.domain.com/system/files/imagecache/screenshot/sites/default/m...

When I return to the imagecache UI I get these two errors:

* warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 10007 is not allowed to access /home/domain/httpdocs/sites/default/files/imagecache/screenshot owned by uid 48 in /home/domain/httpdocs/sites/default/modules/imagecache/imagecache.module on line 995.
* The selected file sites/default/modules/imagecache/sample.png could not be uploaded, because the destination imagecache_sample.png is not properly configured.

Comments

vm’s picture

Safe Mode

PHP "Safe mode" is not recommended and may interfere with the workings of the image processing libraries. Turn it off if you can.

Safe Mode should be disabled on the server. have you run a phpinfo() to inspect whether it is actually off, or whether it is a false report?

looking at the project page = http://drupal.org/project/imagecache
There is a Troubleshooting link = http://drupal.org/node/224913
On that page is this:

omcateer’s picture

Status: Active » Needs review

I turned off safe mode but was still getting this error message again:
The selected file sites/default/modules/imagecache/sample.png could not be uploaded, because the destination imagecache_sample.png is not properly configured.

I started looking into at why Drupal was unable to move files around, then I remembered set Drupal's download method to 'Private' in admin/settings/file-system . After changing this back to public everything worked fine.

chellman’s picture

Status: Needs review » Fixed

No patch here, looks like this is actually resolved, so I'll mark it fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

vlinet2002’s picture

Project: ImageCache » Drupal core
Version: 6.x-2.0-beta8 » 6.10
Component: imagecache_image module » update.module
Status: Closed (fixed) » Active
Issue tags: +update module bug

After installing 6.10, admin/reports/updates/list shows white screen.

damien tournoud’s picture

Project: Drupal core » ImageCache
Version: 6.10 » 6.x-2.0-beta8
Component: update.module » imagecache_image module
Category: bug » support
Status: Active » Closed (fixed)

Please do not reuse issues.

drscales’s picture

I also just found that re-saving the public/private if ALREADY set to public does the trick. Am checking with the host to see if anything could have changed this outside of the app.

(This was intended to reply to Ocateer's post http://drupal.org/node/397206#comment-1339116 - but it seems the comment system doesn't provide the fragment to the URL when logging in)