Attachment Downloads Not Working

Started by docone, May 14, 2006, 12:50:53 PM

Previous topic - Next topic

docone

SMF Version: SMF 1.0.7
Hi,
  I just installed my forum using the latest SMF version.  I enabled attachments and uploaded several but when I try to download an attachment the browser just hangs - it goes to a URL, but the screen is blank and nothing happens.  I was able to verify that the attachments uploaded correctly - just no downloads.

I did check my PHP.INI file and it appears to be set to the correct defaults.

Any ideas?

Thanks,
Brad

Prasad007


docone

Sorry ...
  Which permissions?  File permissions??  Which files?

Thanks,
Brad

Prasad007

yea file permission. check if the attachment folder is chmod 777 if not make it so.... if it still wont work try with 755..

docone

OK,
  Changed the permissions both ways - but that did not work.

  Any other suggestions?  I did a search on the forum but no joy.

Brad

Prasad007

It could be a hosting problem. Maybe your host limits the amount uploadable from php..

docone

I don't think so - the uploads work just fine.  It is the downloads that have the problem.  The files have all uploaded correctly and have the right size in the attachments directory.  For some reason they just hang when you request a download.

Doc

kegobeer

Please provide a link to your forum.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

docone


Here is the error log from a download attempt:
-------------------------------------------------------------------
Apply Filter: Only show the error messages of this URL  hxxp:beerxml.com/forum/index.php?action=dlattach;topic=12.0;id=4 [nonactive]
Apply Filter: Only show the errors with the same message
2: ob_gzhandler() [<a href='hxxp:www.php.net/ref.outcontrol' [nonactive]>ref.outcontrol</a>]: output handler 'ob_gzhandler' cannot be used twice
File: /usr/local/apache/beerxml/forum/Sources/Display.php
Line: 788
--------------------------------------------------

I would really appreciate any help you can give me - having the ability to use attachments is important.

My forum is at: hxxp:beerxml.com/forum [nonactive]

Thanks
Doc

kegobeer

What version of PHP are you using?
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

docone

Quick follow up...
  I upgraded to the latest PHP version and now the downloads work. 

Thanks,
Doc

kegobeer

There was a bug reported at php.net about the ob_gzhandler, so it looks like you were running that version of PHP.  Glad the upgrade fixed your problems.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

Advertisement: