If my file system is set to private, then I am able to upload images. If I now switch it to public, I get nothing but a number where the image should be.

jquery_update-6.x-2.0-alpha1
jquery_ui_dialog-6.x-1.10
jquery_ui-6.x-1.4
jquery-ui-1.7.3 (jquery.ui folder)
wysiwyg-6.x-2.1
ckeditor_3.4.2
imagecache-6.x-2.0-beta10

Comments

drupal_acc’s picture

A further test shows that no image is created by the imagecache preset, but the initial upload succeeds.

eugenmayer’s picture

Category: bug » support

Thats simply wrong ( 90% of the users use it without private files). Please provide more informations, your most probably have a total different issue.

Have a look at the FAQ section for your issue

drupal_acc’s picture

There is no further information. I get no errors, nothing in the logs. Someone else mentioned the issue here:

http://drupal.org/node/808626#comment-3725090

I'll dig around for a bit and see if I come up with any error messages.

drupal_acc’s picture

Ran a test there now. I switched to a public file system and uploaded an image. No error appeared in the 'Recent log entries', but this appears in the apache error log:

[Tue Nov 23 23:02:25 2010] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/sites/default/files/imagecache/wysiwyg_imageupload_preview/wysiwyg_imageupload/1/image.jpg

If I switch back to private file system, it works fine.

eugenmayer’s picture

Be sure you dont run into the issue that you dont have enaugh php memory...

drupal_acc’s picture

I fail to see how switching the file system would impact php memory sufficiently. I did read that portion of the FAQ and changing file systems does not effect the file size of the image to be processed.

The image appears in the following locations:

Private file system
/var/www/sites/default/files/wysiwyg_imageupload/1
/var/www/sites/default/files/imagecache/wysiwyg_imageupload_preview/wysiwyg_imageupload/1

Public file system
/var/www/sites/default/files/wysiwyg_imageupload/1

So, in summary, it will work with a private file system but fails with the public file system.

drupal_acc’s picture

Status: Active » Needs review

I found the problem and a solution. It looks like the latest imagecache (6.x-2.0-beta10 ) has a problem with a public file system.

There is an ugly hack here, which I have just successfully tested:

http://drupal.org/node/410200#comment-1709746

I'll test it over the next few days and see if there are any issues.

eugenmayer’s picture

Status: Needs review » Fixed

so thats not a WUI issue anymore? As its already opened in imagecache, i tend to close this issue, or?

eugenmayer’s picture

Maybe adding some notes on the FAQ would be interesting. What version did you use before?

drupal_acc’s picture

The versions are given in the initial post.

Status: Fixed » Closed (fixed)

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