Page 1 of 1

Cannot delete events or cameras

Posted: Sun Jan 17, 2010 9:39 pm
by c0mputerking
Hello again all i have a system setup with one camera and it was on modect. I left it alone for a couple of months, and now it has over 300000 events, but they are all null with 0 frames and last 0 secs.

Also i have tried several times to delete them using webinterface as well as tring to delete the camera so i can add it again hoping to fix things. However i cannot seem to delete events or cameras!! is it permissions?

Anyways i have used sshd and gone in deleting all the files in the events folder, and still cannot seem to rid myself of these null events as they still appear in the GUI.

Watching the message log i just seen this go by

Jan 17 13:34:51 zmhost httpd: PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /var/lib/zm/www/includes/database.php on line 126

Posted: Mon Jan 18, 2010 5:50 am
by kingofkya
ok find your php.ini and change the max memory setting

run "find / -name php.ini" to find it .

SOLVED

Posted: Mon Jan 18, 2010 8:23 pm
by c0mputerking
I solved things for now by running a repair on the database there were some broken tables as the users keep unplugging the machine. However i will visit the memory suggestion too!