Viewing Many Events: Fatal Error in Memory

Forum for questions and support relating to the 1.24.x releases only.
Locked
MrEvoMan
Posts: 55
Joined: Thu Apr 23, 2009 1:25 am

Viewing Many Events: Fatal Error in Memory

Post by MrEvoMan »

For anyone who has a pretty sensitive motion zone(s), you probably get a LOT of events, where you can flip through them if you want, but a lot of times you do a mass delete.

Today, I tried doing that on over 4,000 events. I received the following when I selected "View All" from the event list:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 74 bytes) in /var/www/includes/database.php on line 125

A simple fix for this, is to disable the php memory limitations. In your /var/www/index.php (the location may vary), add:

ini_set('memory_limit', -1);

This solves this problem.

I'm not certian as to what negative effects it may produce, but I don't know why limitations would be put in place for something like this.
Locked