Struggle with enabling the Attachment module..

al.ex - July 22, 2007 - 20:46
Project:Attachment
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:al.ex
Status:closed
Description

Hey,

I tried several times to setup the attachment module according to INSTALL.txt but it still seems to be overridden by the native upload module (although it's disabled). I can't enable attachments in my content type edit form, when changing the radio button to 'enable' and saving the form, nothing has changed afterwards. I looked into the 'variables' table and the value of 'attachment_settings_download' ('download' as content type, u know :) ) is set properly to 's:1:"1";'.

Is there a known issue with upload.module ??

Thx in advance,

Alex

#1

al.ex - July 23, 2007 - 16:19
Status:active» needs review

Maybe I encountered a bug:

(sorry that I don't post it as patch, haven't SVN installed currently)

in attachment.module on line 73 there is

      $form['workflow']['attachment_settings'] = array(

but the flag to enable attachments for content types should be stored as 'attachment_node_'.$type
so I changed it to

      $form['workflow']['attachment_node'] = array(

and it worked fine :)

#2

cscsteve - July 24, 2007 - 16:32

Alex,

I'm not sure exactly what the problem might be, though I suspect you've downloaded the wrong version:
1. Make sure you've got filemanager installed first!
2. Ignore the INSTALL file. It's out of date; which should be clear since there's no attachment.mysql file anymore.
3. The line you reference already reads 'attachment_node' in my workspace. I downloaded the 5.1 dev release and double checked (in case I didn't have a checkin of that version) and the same.

So, I suspect you've got an older version?

BTW: I'm on vacation till the 30th with limited web access... I'll be a bit slow on responses.

#3

al.ex - July 26, 2007 - 09:34

Hi cscsteve,

The 5.x-1x-dev.tar.gz download works with the old code, I checked it once again. As I've mentioned, I'm currently not working with the cvs repository, but with the module's page downloads. Possibly these are out of date...

regards,
Alex

#4

Mike_Waters - August 1, 2007 - 01:58

FYI I downloaded 5.x-1.x-dev v 1.1 2007/07/17 19:50:04 @ 8/1/07 01:57 GMT and the line referenced above was definitely '[attachment_settings]'.

(also fyi it's not very clear in the readme that you need to explicitly enable attachments in each node's settings page ;)

Thanks for keeping this module updated.

#5

cscsteve - August 2, 2007 - 17:07

Ok, I got to the bottom of it. I was looking at the wrong line. Alex, you're 100% correct. Fixed and in CVS. The dev release should regenerate in the next 12 hours or so.

#6

cscsteve - August 2, 2007 - 17:07
Status:needs review» fixed

Ok, I got to the bottom of it. I was looking at the wrong line. Alex, you're 100% correct. Fixed and in CVS. The dev release should regenerate in the next 12 hours or so.

#7

Anonymous - August 16, 2007 - 17:21
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.