Hello,

I have a problem with the 'Attachment Links' module. The generated 'Preferred version' and ‘Newest version’ links don't work.

This is what I have done so far:

- I have installed the 'Attachment Links' module.
- I have created a content type 'File'.
- I have enabled the 'Attachment Links' module for content type 'File' under Workflow Settings.
- I have updated the access controls for content type 'File' so that the correct role can access and edit content as required.
- I have changed the Role permissions so that the correct role can upload files and create and modify 'File' content.

However, when creating content of type 'File', and attaching a file, the file is correctly uploaded, as it can be access when clicking on the attachment file name, but neither the 'Preferred version' nor the 'Newest version' links work.

If you click on the 'Preferred version' or 'Newest version' links, a file with the name 'attachment' of size 0 kb gets downloaded, and in Firefox the following error message is displayed (please see attached screenshots):

"Corrupted Content Error
The page you are trying to view cannot be shown because an error in the data transmission was detected.
The page you are trying to view cannot be shown because an error in the
data transmission was detected.
Please contact the web site owners to inform them of this problem."

As there is no ReadMe file on this module, can anybody please provide some assistance with this issue?

Thank you,

Gabriel

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Todd Nienkerk’s picture

Title: Generated links don't work » Links/paths provided by Attachment Links return a "corrupted content error"
Priority: Critical » Normal

Follow-up questions:

  1. Is your server using a standard LAMP stack?
  2. What version of PHP are you running?
  3. What version of Drupal 6.x are you running?
  4. Is your file system set to private or public?
  5. Does this happen in all browsers or just Firefox? (IE, Safari, Chrome?)
  6. Have you tried using the 6.x-1.x-dev branch of the module?
gaps’s picture

Hello Todd,

Thank you very much for your reply and for looking into this.

Today is my first day back at work after the end of the year break.

Here are the answers to your questions:

===============================================
===============================================

1. Is your server using a standard LAMP stack?
Yes it is.

2. What version of PHP are you running?
PHP Version 5.2.8

3. What version of Drupal 6.x are you running?
Drupal 6.20

4. Is your file system set to private or public?
Public

5. Does this happen in all browsers or just Firefox? (IE, Safari, Chrome?)
In all browsers tried (Firefox 8.0, IE 9.0, Chrome 16.0) the permanent links to the files attached do not work.
The file is correctly uploaded, as you can access it using the direct link to the attachment.

6. Have you tried using the 6.x-1.x-dev branch of the module?
I just tried using the 6.x-1.x-dev branch with identical results.

===============================================
===============================================

Thank you very much for your assistance with this issue.

Kind Regards,

Gabriel