Hi there,

Sorry if this is a duplicate post of this issue, but I can't seem to find a reference to the problem I'm having anywhere.

I have 3 single page sites. they all have the functionality to download a newsletter PDF and display in image gallery. All are running up to date versions of the two modules on Drupal 6.20.

Yesterday, however, one of the sites developed a problem: when the "View Newsletter" button is clicked, it doesn't open the PDF, but goes straight to an "Access Denied" page - even though I'm logged in as admin. There seems to be the same problem with the image gallery as well - no images are displayed (even though they are all in the correct places in the file system)

Things I have tried:
1. Checked all permissions - everything is as it should be. I switched on "Content Permissions" in core just to make sure that the permissions were being routed correctly.
2. fully upgraded drupal core to 6.20 and ran update.php
3. Uninstalled and reinstalled the filefield and imagefield modules - no change unfortunately
4. With this fresh install, created a whole new content type to test the concept. Only added the file upload for the PDF, and still no result (btw I am using the "Generic File" setting in the display field)

The weird thing is that the other two sites are clones of the original (now buggy) site and they are operating perfectly! I have done a screen to screen comparison and can see no setting difference anywhere!

Anybody come across this issue before? Any help appreciated!

Comments

quicksketch’s picture

"View Newsletter" button is clicked, it doesn't open the PDF, but goes straight to an "Access Denied" page

Where is this View Newsletter button coming from? What module provides it? And what's the URL of the PDF that gives you access denied?

Some more questions: Are you using private or public files at admin/settings/file-system?

I'd strongly recommend turning back off content permissions unless you were using it previously. That module can cause all kinds of permissions issues. If it's off, it's not going to have any effect on your site.

roderik’s picture

I have done a screen to screen comparison and can see no setting difference anywhere!

What about a comparison of the files/ directory? Any .htaccess files anywhere?

This in addition to quicksketch's questions. In particular: even though you may have your file system set to public, some directories may still have .htaccess files that rewrite the direct URLs for your PDF files to /system/files/...

quicksketch’s picture

Status: Active » Closed (fixed)

Closing after lack of response. Thanks roderik for the assist. :)