Memory size exhaused

A place for users and developers of the Xataface to discuss and receive support.

Postby Jones » Fri Apr 14, 2006 1:57 pm

After running the index.php, the only output I get is:

Fatal error: Allowed memory size of 4194304 bytes exhausted (tried to allocate 46080 bytes) in .../dataface/lib/Smarty/Smarty_Compiler.class.php on line 478

Refresh, and I get:

Fatal error: Allowed memory size of 4194304 bytes exhausted (tried to allocate 11520 bytes) in .../dataface/lib/Smarty/Smarty_Compiler.class.php on line 1052

And again:

Fatal error: Allowed memory size of 4194304 bytes exhausted (tried to allocate 46080 bytes) in .../dataface/lib/Smarty/Smarty_Compiler.class.php on line 877

Refresh once more:

Fatal error: Allowed memory size of 4194304 bytes exhausted (tried to allocate 46080 bytes) in .../dataface/lib/Smarty/Smarty_Compiler.class.php on line 735

Subsequent refreshes of index.php simply repeat the four messages above in turn.

Any ideas?
Jones
 
Posts: 4
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Fri Apr 14, 2006 3:18 pm

PHP is running out of memory. It looks like you currently have about 4 megs allocated. This is pretty low, as the usual default is 8 megs. There is information about increasing memory at this tech tip http://www.tech-recipes.com/php_programming_tips777.html .

In addition to this, if your table size is very large (> 5000 records) there was a bug that would cause memory problems when loading the records for the jump menu. The bug info and a fix for it can be found at:

http://sourceforge.net/tracker/index.php?func=detail&aid=1470144&group_id=153729&atid=788932

Hope this helps
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby Jones » Sat Apr 15, 2006 12:16 am

The tables only had 1 record each (for testing), so it wasn't that.

I looked up the tech-recipes link and inserted the code they suggested in the index.php.

All up and running now - thank you!

Next, drop-down lists and relationships...
Jones
 
Posts: 4
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 32 guests

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