secureloadsSecure Downloads Area Software

Forum

You are not logged in.

#1 2008-05-28 23:40:28

tim
New member
Registered: 2008-05-19
Posts: 4

Continuing Trouble with Zip & Download

I have followed the memory_limit instructions found in this forum [ini_set( 'memory_limit', '256M' ] added to core/base/_init.php values,AND index.php, and also added an .htaccess file to the script and download folders:
<IfModule mod_php5.c>
    php_value upload_max_filesize 256M
    php_value post_max_size 256M
    php_value max_execution_time 16000
    php_value memory_limit 256M
</IfModule>

I still get a memory error when clicking Zip & Download:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 107785533 bytes) in /home/achmmor/public_html/download/core/base/code/core/managers/fileManager.php on line 17

Individual downloads work fine for a 108MB file (already zipped, as most files will be). Please instruct how to remove the Zip & Download button if this cannot be made to work.

I have BZip2 Support in PHP 5.2.5 (Zend 2), MySQL 5.0.45.

Offline

 

#2 2008-05-29 06:10:37

algis
Administrator
Registered: 2006-01-09
Posts: 718
Website

Re: Continuing Trouble with Zip & Download

Hello,
you could try to set even more memory limit. To disable the Zip & Download function, please edit this file:

core/packages/common/files/list/index.php

Please comment out the part with the code that builds the Zip & Download action - it is started on line 276 - you will need to comment out lines from 276 to 284

Offline

 

#3 2008-05-30 23:12:46

tim
New member
Registered: 2008-05-19
Posts: 4

Re: Continuing Trouble with Zip & Download

The problem has not been solved, no Zip & Download without an error, even after rebuilding Apache/PHP with verified ./configure --enable-zip, and a memory_limit of 256.

I used your instructions to comment out the Zip & Download, but that only removes the "Zip & Download" from the Action POPUP. We need to remove the BUTTON from the main screen.

Offline

 

#4 2008-06-03 17:23:47

tim
New member
Registered: 2008-05-19
Posts: 4

Re: Continuing Trouble with Zip & Download

I did final solve this problem as you suggest by increasing the memory_limit to a ludicrously large number (1024M). So, if anyone else is having a problem with large files causing PHP memory errors, this is still a good answer.

If I run into trouble in the future I may try ini_set( 'memory_limit', '-1)—unlimited memory—for the script in core/base/_init.php to be done with it.

Last edited by tim (2008-06-03 17:24:21)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson