Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: docone on May 14, 2006, 12:50:53 PM

Title: Attachment Downloads Not Working
Post by: docone on May 14, 2006, 12:50:53 PM
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
Title: Re: Attachment Downloads Not Working
Post by: Prasad007 on May 14, 2006, 12:52:30 PM
check the permissions...
Title: Re: Attachment Downloads Not Working
Post by: docone on May 14, 2006, 01:00:08 PM
Sorry ...
  Which permissions?  File permissions??  Which files?

Thanks,
Brad
Title: Re: Attachment Downloads Not Working
Post by: Prasad007 on May 14, 2006, 01:03:08 PM
yea file permission. check if the attachment folder is chmod 777 if not make it so.... if it still wont work try with 755..
Title: Re: Attachment Downloads Not Working
Post by: docone on May 14, 2006, 06:12:34 PM
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
Title: Re: Attachment Downloads Not Working
Post by: Prasad007 on May 15, 2006, 08:02:51 AM
It could be a hosting problem. Maybe your host limits the amount uploadable from php..
Title: Re: Attachment Downloads Not Working
Post by: docone on May 16, 2006, 10:35:29 PM
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
Title: Re: Attachment Downloads Not Working
Post by: kegobeer on May 16, 2006, 10:54:01 PM
Please provide a link to your forum.
Title: Re: Attachment Downloads Not Working
Post by: docone on May 25, 2006, 08:09:32 PM

Here is the error log from a download attempt:
-------------------------------------------------------------------
Apply Filter: Only show the error messages of this URL  http://beerxml.com/forum/index.php?action=dlattach;topic=12.0;id=4
Apply Filter: Only show the errors with the same message
2: ob_gzhandler() [<a href='http://www.php.net/ref.outcontrol'>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: http://beerxml.com/forum

Thanks
Doc
Title: Re: Attachment Downloads Not Working
Post by: kegobeer on May 25, 2006, 10:33:44 PM
What version of PHP are you using?
Title: Re: Attachment Downloads Not Working
Post by: docone on May 27, 2006, 08:50:54 PM
Quick follow up...
  I upgraded to the latest PHP version and now the downloads work. 

Thanks,
Doc
Title: Re: Attachment Downloads Not Working
Post by: kegobeer on May 28, 2006, 07:19:52 AM
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.