MyBB Community Forums

Full Version: Attachment Downloading problem..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi all.. i have an mybb 1.6.x forum and ı m using VPS for hosting my VPS's features is 8gb ram and 75gb sas disk.. and my problem is the : mybb post size and max_upload file size is 50M / 50M when i try to upload 10mb+ files its normally uploading but if i click the download its not downloading .. download is not starting.. 10mb- file sizes works normally.. how can ı solve this problem ?Lightbulb
(2011-02-28, 06:13 PM)yapraqq Wrote: [ -> ]hi all.. i have an mybb 1.6.x forum and ı m using VPS for hosting my VPS's features is 8gb ram and 75gb sas disk.. and my problem is the : mybb post size and max_upload file size is 50M / 50M when i try to upload 10mb+ files its normally uploading but if i click the download its not downloading .. download is not starting.. 10mb- file sizes works normally.. how can ı solve this problem ?Lightbulb

So when you click on download nothing happens? you don't get ant open/save dialog from the browser?

URL and test account?
(2011-03-01, 03:42 AM)- G33K - Wrote: [ -> ]So when you click on download nothing happens? you don't get ant open/save dialog from the browser?
URL and test account?

hi again .. my test url : http://www.itbiti.com/konu-eklenti-indir...-2967.html
test : across
pass : 1234asdqwe

and this is error pic. download not starting..
http://i54.tinypic.com/16jfr07.jpg
(2011-03-01, 02:21 PM)yapraqq Wrote: [ -> ]
(2011-03-01, 03:42 AM)- G33K - Wrote: [ -> ]So when you click on download nothing happens? you don't get ant open/save dialog from the browser?
URL and test account?

hi again .. my test url : http://www.itbiti.com/konu-eklenti-indir...-2967.html
test : across
pass : 1234asdqwe

and this is error pic. download not starting..
http://i54.tinypic.com/16jfr07.jpg


Just what I suspected. The server is running out of memory while trying to send out the file. MyBB uses file_get_contents to send out the file but to do so the file needs to be put in to php's memory buffer so the memory needs to be at least or more than the file size.

If you force-open any of the files you download in notepad you'll see this:

<br />
<b>Fatal error</b>:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 42714829 bytes) in <b>/<removed for security>/attachment.php</b> on line <b>150</b><br />

Also, I suppose the php memory is set to 32mb, so you'll be fine with files less than that but anything more and it will error out.
many thanks - G33K - you are incredible.. its worked Smile ı go to php.ini and ı had memory up 32m to 128m and it worked greatly Smile thread can close now Smile