fatal errors? random not displaying anything? A fix

illlegalsmile

Joined: 2005-01-23
Posts: 1
Posted: Sun, 2005-01-23 18:12

Well i was having problems getting block-random to work and the problem was the fact i have 2000+ pics and the error

Quote:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 12 bytes) in ..../html/modules/gallery/classes/Album.php on line 417

was popping up. tried the .htaccess thing, no luck, and i don't have write access for php.ini. It's easy to fix though it seems by adding this little line.

Quote:
require(dirname(__FILE__) . "/init.php");

ini_set("memory_limit", "32M");

/* Initializing the seed */

I guess 32M might be too much, but whatever.
Seems to work fine for me. Let me know if this is bad form or what.