Recent Topics

4.1.5: Fatal error: Allowed memory size of..._misc.funcs.php

started by on Sep 29, 2012 – Last touched: Sep 29, 2012

Sep 29, 2012 21:20    

When trying to add a picture to a post I open the pop-up window "Add/Link-files", then navigate to the folder where I have the picture files. B2 fails to render the whole page reporting

Code

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /public_html/blog/inc/_core/_misc.funcs.php(616) : runtime-created function on line 1

Removing the recent uploaded picture from the folder, and it renders as intended.

Found a workaround - by editing _advanced.php, increasing the memory from 32 to 33MB

Code

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

the page renders perfectly.

PHP version 5.3.10

Oct 02, 2012 17:14

Yes. This is not a bug and this is not a workaround. This is absolutely normal. We recommend setting the memory limit to 128M. This becomes useful when running scripts like importers or rotating large images, etc. These operations do require some memory to work!

Oct 03, 2012 08:28

ahh, ok - good one.

Got a bit confused since I had never seen that error before while having other folders containing way more pictures, therefore I thought it was a bug - or, maybe not a bug but a candidate for tuning at least :)


Form is loading...

powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.