I've used wysiwyg, fck, image resize filter, and insert to create inline images. Lightbox 2 is also present for viewing the full size image. I have enabled permissions for all users to view any image. The file system is set to private.

I have a node with 2 images inline that were inserted using "insert" and resized using the image resize filter. When logged in as the administrator, I can see both inline images and lightbox only works on the first image although checking the code in fck and in the source of the page seems ok to me.

When I log out and view the same node, the first inline image disappears but the link for the lightbox window is still there and works. The second inline image is still there and lightbox still not functioning correctly. This is the address of the node: http://marketaliskova.cz/en/content/music

For interest sake, here is the code from editing source in FCK:

<p><strong><img hspace="30" align="left" alt="" style="width: 100px; height: 100px;" class="imagecache-display" src="http://marketaliskova.cz/system/files/imagecache/display/images/RD1891.jpg" /></strong><strong>Markéta Lišková</strong> is a young singer/songwriter who has decided to follow her dream. Her songs arranged by Don Gawthorne are very sensitive, personal yet still full of energy and desire for God. The music style can be compared to pop-worship flavoured with interesting elements of modern electronic music. 6 English songs and 4 in Czech mainly deal with relationship with God. A very mature expression and production for a debut album.</p><ol><li>Vzdálený, přesto blízko</li><li>Arise and shine - <a target="_blank" href="http://marketaliskova.cz/system/files/audio_clips/rd1891_ku_2.mp3" title="">sample</a></li><li>Close to your  heart</li><li>Chci dávat, ne brát</li><li>So thankful</li><li>Volání</li><li>Content - <a target="_blank" href="http://marketaliskova.cz/system/files/audio_clips/rd1891_ku_7.mp3" title="">sample</a></li><li>Unconditional  love</li><li>Words</li><li>Naději v tobě mám - <a target="_blank" href="http://marketaliskova.cz/system/files/audio_clips/rd1891_ku_10.mp3" title="">sample</a></li></ol><p><a target="_blank" href="http://www.gimel.cz/g/index.php?g=cd_liskova_marketa_close_to_your_heart_rd1891">Buy the album</a></p><p>&nbsp;</p>  <hr />    <p><strong><img hspace="30" align="left" alt="" style="width: 100px; height: 100px;" src="http://marketaliskova.cz/en/system/files/imagecache/display/images/vzdaleny.jpg" class="imagecache-display" />Markéta Lišková</strong> is a young singer/songwriter who has decided to follow her dream. Her songs arranged by Don Gawthorne are very sensitive, personal yet still full of energy and desire for God. The music style can be compared to pop-worship flavoured with interesting elements of modern electronic music. <br /> This single is Marketa's debut as well as a tasting from the awaiting album which is coming out in the autumn 2009 labeled by ROSA.</p> <p><a target="_blank" href="http://www.gimel.cz/g/index.php?g=cd_liskova_marketa_vzdaleny_presto_blizko_rd1839">Buy the single.</a></p> <p>&nbsp;</p> <ol> <li>Vzdálený, přesto blízko</li> <li>Close To Your Heart</li> <li>Vzdálený, přesto blízko - remix</li></ol>

source for images 1 and 2 while logged in as administrator, you can compare to the source when viewing as anonymous:

<p><strong><a href="http://marketaliskova.cz/system/files/imagecache/display/images/RD1891.jpg" rel="lightbox"><img hspace="30" align="left" rel="lightbox" src="http://marketaliskova.cz/en/system/files/resize/imagecache/display/images/RD1891-100x100.jpg" class="imagecache-display" style="width: 100px; height: 100px;" alt=""  width="100" height="100"/></a></strong><strong>

<img hspace="30" align="left" class="imagecache-display" rel="lightbox" src="http://marketaliskova.cz/en/system/files/imagecache/display/images/vzdaleny.jpg" style="width: 100px; height: 100px;" alt="" />

I'm quite at a loss... Any help? I'm sorry if this has been posted in the inappropriate section. Just kick me in the right direction and I'll go with it. ;) Thanks!

Comments

goye2cz’s picture

Title: Anonymous users unable to view *some* images - despite permissions » After further tinkering...

I've discovered that no resized images are being created. The image: /marketaliskova.cz/sites/default/files/resize/imagecache/display/images/RD1891-100x100.jpg exists but no others. At some point in my tinkering image resize filter has stopped functioning. Any ideas?

goye2cz’s picture

I've set the marketaliskova.cz project aside for a bit and I've been working on www.ufip.cz. I have a local test server and using image resize filter, insert, lightbox, fck and so on, everything worked perfectly. Didn't matter if I was logged in or not.

I've uploaded to the live site and now some images don't show. ( http://www.ufip.cz/store/cymbals/experience - there should be 4 cymbals at the bottom) I've checked via ftp and the files are there and as far as i can tell from source in FCK and page source from FF the paths are correct. If I try to access the images directly via url I get a 500 server error. I can download them via ftp though. I've tried public as well as private in the file system. I've tried to enable every image view permission I can find. Logged in as the admin or logged out it does not work on the live site and yet it works on my local site. Could this be an htaccess issue? My host thinks so but with their system I can only tinker with .htaccess using the Total Commander program. No idea why. I can't even see the .htaccess file with Filezilla.

It works beautifully on my test server. I hope I can get the live site just as nice!

quicksketch’s picture

Category: bug » support

A 500 error is usually caused by the .htaccess file in the root of your files directory. If you delete the file, it will just come right back, so instead I'd suggest commenting out the second line in the file by adding a # in front of it. Note that this opens your site to potential vulnerabilities in uploaded files, though Drupal has other protections in place to prevent the exploit most of the time.

As for your first problem, it's probably a permissions problem that is preventing Image Resize Filter from creating files. You might try deleting the entire "resize" directory and clearing your Drupal caches at admin/settings/performance. Image Resize Filter will then automatically create the directory again (if it has permission to do so), and recreate the images.

goye2cz’s picture

As for the 500 error, Yes, that did the trick. That site works beautifully now.

As for the first problem, I will have to test that very soon. Thank you!

goye2cz’s picture

Just tried the solution on the first problem. All seems to function fine until I log out of admin and as an anonymous user I can't view the resized images. The lightbox link is still there and pops up the original image in a lightbox with no problem. I'm stumped.

goye2cz’s picture

Title: After further tinkering... » *CORRECTION*

I spoke too soon. The images displayed inline are not what I thought. They are original files simply resized by code rather than actually resized. I've run out of time to tinker with it today. I'll try more later.

goye2cz’s picture

Title: *CORRECTION* » right

Ok, I found a bit more time and uninstalled and reinstalled image resize filter. It is working now with all accounts. As for the images not being what I thought they were, that was my mistake. Lightbox was deceiving me. My own fault. Anyway, I have it working but I am not sure what the problem was. Thank you for your help! Wonderful module.

quicksketch’s picture

Title: right » Anonymous users unable to view *some* images - despite permissions
Status: Active » Fixed

Just a note that you shouldn't change the title in the issue queue (unlike the forums) since it changes the entire node title, not just the comment of the title.

Status: Fixed » Closed (fixed)

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