hello.

after installing File attachment utils, I am able to upload a file (pdf) successfully but when I change the display from default view to table view, i get page cannot be displayed. although if i switch it back to default, it finds the file and displays.
my main concern for downloading the utils module was to hide the "Attachment" and "size" label on the list.

any help is appreciated.

thanks,

Chris

Comments

adaddinsane’s picture

I'll take a look - at work currently but I'm using it on some of my client's projects so I can justify it.

adaddinsane’s picture

StatusFileSize
new16.12 KB
new3.69 KB

I can't duplicate this error - have you got the Stylistics (http://drupal.org/project/stylistics) module enabled?

Strictly speaking there are no "updates" but it's worthwhile running the update script anyway. And since there have been changes to parts of the configuration it may be worth re-saving the bits you're using. And/or flush all caches and theme registry.

In regard to wanting a list style without the size attribute I have rolled you a patch which adds this as a new option, in fact there are three new styles. Exciting.

However, just in case applying patches isn't your thing I've also attached the whole module with the patch applied. I'll update to a new version at the weekend.

adaddinsane’s picture

Assigned: Unassigned » adaddinsane
glitz’s picture

awesome work! thanks!
i do have the stylistics module enabled but I will try the new module you attached and let you know how it goes. thanks again, i really appreciate the help

--Chris

glitz’s picture

I installed the new module, and I was able to see the new config options:

File attachment style:

Use standard Drupal table style.
Show files as a list with type and size.
Show files as a list without file size.
Show files as a list without file type.
Show files as a list without file type or size.

I also flushed all caches and theme registry,
but still my attachments only appear of if I have "Use standard Drupal table style" selected.
Any other selection gives me a page cannot be displayed.

I will mess with some other themes to see if I can get it working. Ill also try to delete and recreate the page Im using to attach these.

I will keep you posted...

Thanks.
Chris

adaddinsane’s picture

Okay. Strange. Do you have any other modules that might be messing with attachments in some way?

One method of isolating would be to start switching off other modules and see if it suddenly works :-/ can take a long time unfortunately.

(I currently have a similar problem with admin_menu of all things - works on every site I run, except one which I've inherited.)

EDIT: which version of Drupal and PHP are you running?

Plus can you report what's in the Watchdog file when you try to display a page with the error? Thanks.

glitz’s picture

the only module i would think may mess with it is upload, and maybe filefield?? not sure. i will try your method about switchng random modules off--it may work. im fairly new to drupal but im starting to understand the complexity when it comes down to modules interacting with one another.

i appreciate your help, and i will give this a shot over the next few days or so.

--chris

adaddinsane’s picture

Well it won't be Upload, because that's the module Attachments is specifically modifying :-) and I have stuff running the Filefield so it's not likely to be that.

Anyway let me know the versions of Drupal and PHP you're running - go to admin/reports/status and that'll tell you. Enable the "Database logging" module if it's not enabled (Core - optional) and generate the error then go to admin/reports/dblog to see if it recorded an error.

It took me a year to really get to grips with Drupal, and another two years to get to where I am, but there are still areas that I've never touched.