0
votes

For some reason, images are not showing up when not logged in as an administrator.

The issue seems to be connected to my use of views.

The images are part of a content type I created. The field type is image and I can pull the images from the node when accessing the node in a custom template and not using views.

But when using views, the images only show up when I'm logged in as an administrator.

I don't have any field/content permission modules installed, this is pretty bare bones with a Zen theme sub-themed. And I'm not doing anything funky with the view, just create it and add the fields I want to display. It works fine as administrator.

I can't seem to figure this one out. It seems like this is a permissions issue, but I don't see anything in the permissions configuration that would affect this behavior.

Any tips?

3
Is the View published? (As in, you clicked "Save"). Can you post a screenshot of your View configuration page? - synth3tk
Yeah, it's saved. Non-logged in users can see the view, all of the data shows up except the photos. But I can create a custom page, and access the photos for non-logged in users and they show up fine. So it doesn't appear to be a permissions issue, unless the View has some permissions stuff going on. I also created another super-simple view and the same thing happens with images not showing up if you're not logged in as admin. It's weird. !Screenshot of View. - Halfstop
That's odd. Do you have any media/file-altering modules installed? Out-of-the-box, everything should be public, so this is really weird. - synth3tk
This is a straight-out-of-box drupal install. I'm using all of the standard media stuff. What's weird is that I can access the images for non-logged in users when not using a view. I guess, I'll just not use Views, but that kind of sucks. - Halfstop
Well if you don't mind, maybe you can create a user for me and I can have a look around. If you can access the images fine without Views, it's definitely a Views issue. Possibly even a field. - synth3tk

3 Answers

0
votes

I appreciate that this is an old post but after days of trying to resolve the problem I have seen many of these posts and want to update with my solution.

My web host is classed as a shared web host which means for me that I don't have as much access to the server side as with other hosts. The control area for the admin on my host is custom and lots of stuff that I have with another host and previous hosts id missing.

I resolved the images not showing by adjusting the .htaccess file. There are 2 that I have found so far in Drupal 7.24 (one in the site root and one in sites/default/files/) and I had to adjust both of them by commenting out the options section and the symlinks section. There is info on this by googling "one.com Drupal Installation".

Once both htaccess files had been edited and the permissions had been changed on the "files" folder in "sites/default/" to "755" the extra folders where created when I uploaded my images and the images started to show fine. If like me you are unable to change permissions within your website hosts control panel you will need to do it with either an ftp client or via ssh.

0
votes

I have this problem sometimes usually I cange folder and image files permissions to 0777 if all is ok to 0755.

0
votes

admin->people->permissions->check 'view files' for anonymous user, save permissions. Those images you uploaded with some multi-uploading modules are regarded as files, anonymous user need permission to view them.