Export Crash - No Memory

A place to discuss development of the Xataface core.

Export Crash - No Memory

Postby alanhalley » Tue Aug 03, 2010 1:23 pm

When I try to export 1,200 records, I get this error message:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 256 bytes) in /home2/tickets4/public_html/xataface/Dataface/Table.php on line 2500

I can export 250 records from another table without a problem. Do I need to increase the memory setting somewhere?

Thanks.

Alan
alanhalley
 
Posts: 1
Joined: Mon Jun 21, 2010 8:24 am

Re: Export Crash - No Memory

Postby shannah » Wed Aug 11, 2010 9:54 am

Currently the export tries to load all records into memory and output them. So large exports may be hard. This error indicates that you area allocating about 67 megs to PHP. You could probably up it to see if this gets you where you need to go. You could do this by adding the following to the beginning of your index.php file:

Code: Select all
ini_set('memory_limit', '128M');


e.g. for 128 megs.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Developers

Who is online

Users browsing this forum: No registered users and 15 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved