secureloadsSecure Downloads Area Software

Forum

You are not logged in.

#1 2007-10-28 09:31:39

roballen
New member
Registered: 2007-08-12
Posts: 2

Zip & Download error

When a user tries to Zip & Download they get the following error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 15112 bytes) in /hsphere/local/home/********/********.co.uk/******/sld/base/code/core/managers/fileManager.php on line 17

Could you tell me how to fix this

Everything else with the installation works fine

Or, is it possible to remove the Zip & Download button if it can't work on my server.

Many thanks
Rob

Offline

 

#2 2007-10-29 07:36:40

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

Re: Zip & Download error

Hello Rob,
an error like this may happen when dealing with large files. I could recommend to enhance the memory allocation setting for the PHP script. To do this please open up the main "index.php" file and enter this line on top of the code:

ini_set( 'memory_limit', '64M' );

The '64M' string means 64 megabytes allocated for this script (your settting now seems to be 32M). Probably you would need a bigger value if the problem persists.

Offline

 

#3 2007-11-09 11:30:49

amanuensis
Member
Registered: 2007-02-01
Posts: 91

Re: Zip & Download error

Could I set this to 1gb and if so how ould I enter it  gb - 1000mb - 1,000mb?

Also where on the code, (my code in the index.php is below could you tell me exactly where to put the code.
<?
/********************************************************************/
/*    PLEASE DO NOT EDIT THIS FILE                                    */
/*    TO MODIFY THE SCRIPT LOOK PLEASE GO TO ha/templates                */
/********************************************************************/
// KEEP THIS ON TOP BEFORE ANY OUTPUT STARTED!
ob_start();

/****************************************************/
/*    THESE SETTINGS MAY BE CONFIGURED                */
/****************************************************/
//define( 'APP_ROOT_WEBPAGE',    $_SERVER['PHP_SELF'] );   

/****************************************************/
/*    END OF CONFIGURABLE SETTINGS                    */
/****************************************************/

// OTHER CONFIG GOES THERE
include( dirname(__FILE__) . '/sld/base/_init.php' );
include( dirname(__FILE__) . '/sld/base/_app_startup.php' );

// PROCESSING
$req->run( $resp );
ob_end_flush();
//printCurrentExecutionTime();
exit;
?>

Last edited by amanuensis (2007-11-09 11:33:43)

Offline

 

#4 2007-11-09 12:26:46

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

Re: Zip & Download error

please enter this line at the top, just below the starting <? line so it will look like

<?
ini_set( 'memory_limit', '64M' )

Yes you can use the K, M and G letters, G is for giga

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson