Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Backup issue with downloads


Platinum Games

Recommended Posts

Posted

Hi all,

 

when i try to do a backup download i keep getting the same error

 

<br />

<b>Fatal error</b>: Allowed memory size of 33554432 bytes exhausted (tried to allocate 18022401 bytes) in <b>/home/XXXXXXX/public_html/game-shop/admin/backup.php</b> on line <b>295</b><br />

 

the code on 295 is

 

        if ( ($extension == 'zip') || ($extension == '.gz') || ($extension == 'sql') ) {
         if ($fp = fopen(DIR_FS_BACKUP . $HTTP_GET_VARS['file'], 'rb')) {
           $buffer = fread($fp, filesize(DIR_FS_BACKUP . $HTTP_GET_VARS['file']));
           fclose($fp);

           header('Content-type: application/x-octet-stream');
           header('Content-disposition: attachment; filename=' . $HTTP_GET_VARS['file']);

           echo $buffer; // line 295

           exit;
         }

 

can anyone advise why this would happen?

Thanks in advance!

 

Ben

Posted

It tells you why - You've exhausted available memory on the server.

 

It's might be possible to up the memory pool size (I think your host would have to do that - not sure).

 

If you backup to a file, then FTP the file to your PC (then you can delete the file on the server if you wish) you won't have this problem.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

It tells you why - You've exhausted available memory on the server.

 

It's might be possible to up the memory pool size (I think your host would have to do that - not sure).

 

If you backup to a file, then FTP the file to your PC (then you can delete the file on the server if you wish) you won't have this problem.

 

 

thanks Germ,

 

yeah i have been using FTP for a while now but sometimes it would just be easier to use the direct download from OSC ADMIN.

 

i can call my service provider, do you know what i need to ask to have the file size lifted to a larger amount? what would the function be called on the server setting?

 

cheers.

Thanks in advance!

 

Ben

Posted

Quite honestly I think no matter how much they could give you - you'll eventually exceed that amount (maybe even right now).

 

I'd just backup to a file and use FTP if I were you.

 

I suppose if you were to ask them I'd just ask if they could increase the available memory.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...