I'm having trouble with drupal finding the path to my files directoy at http://news.stpaulcatholic.org.
It affects all uploaded files, but the most obvious problem is the missing logo. Looking at the raw html, it's looking for the logo in /files/spreadfirefox_logo.png but not finding it. Nor can I view it directly at http://news.stpaulcatholic.org/files/spreadfirefox_logo.png. But I can ssh in and verify that in my top level files directory, the file is there. I can ftp in, download that file and open it up and it's the file I want. I can even go to Administer » Site building » Themes and upload a new file and verify that the logo file has an updated timestamp, but it still doesn't show up on the page. Oddly, if I select use the default logo, that works just fine.
If I go to Admin>>settings>>File System, the file system path is set to 'files' and the download method is 'public'
Is there anything in the database that would cause the file system to look
Thanks for any insight.
Comments
quick ideas
These were a couple of my initial thoughts, but reviewing your email maybe they don't apply.
-Check Permissions to be sure that all users have permissions to view that image type especially if the image is a cck field.
-My images are usually in the sites folder... you sure that you have the right path?
-Brad
Maybe try another theme.
I can see your image at: http://www.stpaulcatholic.org/news/files/spreadfirefox_logo.png
It looks like you have installed drupal in the news directory which is a subdirectory of your www directory.
I thought maybe there may be a problem with your subdirectory redirection but the more I look the less I think that.
Where does the default logo live? You could put your image there, not really a fix.
If you use a default theme does your image show up then?
You say it effects all uploaded files. Do you mean that is a create a node and attach a file you are unable to access that file via the website?
Does the file end up in /news/files ?
Well I've given you more questions than answers, sorry about that.
Thanks
@bradwade - I don't think it's a permissions problem. Fails for user 1 also. As for the path, I left the default /files setting when I started the site a long-long time ago. My newer sites all have themes and files down in the sites folder, but I didn't want to just move stuff around. I don't suppose I could break it much wose though. Thanks.
@petercook - lot's of good thoughts.
1 - That link is to an old installation. I moved everything for to a subdomain and hosted it on my own server because the church's hosting co. didn't provide ssh. Nice clue though, because the corresponding path on my server would be http://dev.orourke.org/news/files/spreadfirefox_logo.png which gives an 500 internal server error. Maybe I can find a clue in the logs.
2 - On my own server, yes, it's in a subdirectory. Actually, news is a link to either newsA or newsB. I deploy updates to whichever is inactive, and then change the link. Not very sophisticated, but we're a low traffic site, so it works OK.
3 - Yes, when I switch back to the theme's default logo, it works. The theme also lives in the top level themes folder, and I might be able to point to a file there, but you're right, it's not the real solution, as you spell out in your next point...
4 - Exactly. I create a new node, attach a file, and I can see the file show up in /files. And when I view the node, the link points to /files/filename.ext but nothing shows up at the link. Lots of errors about missing files in the logs.
Thanks for all the thoughts. I think the problem started when I tried moved /spreadfirefox from /themses down into /sites/all/themes.
It immediately broke the site, so I switched back to the default theme, moved spreadfirefox back, and then re-enabled it. That's why I suspect there may be some settings in the database causing drupal to actually be looking somewhere other that /files.
All very puzzling. Anyway. Thanks for the help. I'd prefer to fix the current site, but in the mean-time, I'm re-building from scratch and looking into porting the users and content over to the new build.
Fixed!
after looking in the logs, I found a permission access error. Turns out I somehow messed up my .htaccess file. Must have done it while trying to copy stuff back & forth to the sites folder.
The standard file included the line:
Options +FollowSymLinks
Mine had
Options +FollowSymLinksOptions -MultiViews
and some other ErrorDocument line.
replaced the file and all seems to work. Thanks for puttting me on the right track Peter.
Similar problem
Hi,
I am seeing something very similar to this.
I just uploaded the drupal files and database export from localhost to a remote host. I did this by following instructions here:
http://drupal.org/node/415846
Now I cant see any images on the remote host. The logo is missing and the CCK images are missing.
I have checked the image path in firebug, compared it with the file path seen using Filezilla, and it seems that the path is correct.
I have also checked the file permissions. Just to be sure, I set everything below "\sites\default\files" to "777"
I have taken a look at .htaccess in the files directory. It contains:
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006Options None
Options +FollowSymLinks
Maybe a clue: On localhost the site is installed in a "drupal" subfolder, while online it is in the root directory. Since the paths look OK I dont see how this can be the problem though.
Another thought: I exported the database locally from command line and imported on the remote host using PHPMyAdmin. Does it matter that it was not the same process/tool?
My site is at www.romantikpensionen.de
Any suggestions? Input would be fantastic!
Cheers,
Jim