You are not logged in.
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
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
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