problems with php

Support and queries relating to all previous versions of ZoneMinder
Locked
xraytje73
Posts: 2
Joined: Sun Jan 18, 2004 3:39 pm

problems with php

Post by xraytje73 »

Hello,

I just installed zoneminder on my redhat 9 linux machine. Everything went ok after installing all the things needed by zm. I can start zoneminder but after login i become the screen to add a monitor but also an error is displayed Warning: Division by zero in /var/www/html/zm/zm_html_view_console.php on line 62.

Aslo when i go to options i become the following error:
Warning: Invalid argument supplied for foreach() in /var/www/html/zm/zm_html_view_options.php on line 216
When i click the tabs it doesn't show me a thing, i can't set any of the options. :(

Adding a monitor is no problem but i don't become any image when i open the watch window. I become a grey image. My cam isn't started by zoneminder. I tried the command webcam and i reports me the following data:
video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
grabber config:
size 320x240 [24 bit TrueColor (LE: bgr)]
input (null), norm (null), jpeg quality 75
rotate=0, top=0, left=0, bottom=240, right=320
webcam 2004-01-18 16:43:20

Looks that the cam does work, but zoneminder can't start it. I don't have any log files to look in. Do i have forgot
anything? Do i have to start a deamon?

Thanks for any respons
snakebyte
Posts: 45
Joined: Sun Dec 07, 2003 1:51 am

Re: problems with php

Post by snakebyte »

Did you set up the tables in mysql correctly? Both this error and the error you posted in general seem to be related to results from mysql not being correct.

Btw, I noticed in the 1.17.0 README http://www.zoneminder.com/fileadmin/dow ... EADME.html some instructions that might be wrong:

mysql mysql < zmschema.sql

I think this command has an extra mysql that shouldn't be there...
mysql < /db/zmschema.sql should work assuming you're at the root of the uncompressed tar file and you've already ./configure; perl zmconfig.pl; make; make install
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: problems with php

Post by zoneminder »

Hi Ian,

I don't think that

<i>mysql mysql < zmschema.sql</i>

is wrong per se. The second 'mysql' refers to the database of the same name, however this is redundant as the .sql script changes to 'use' the ZM script at the beginning. As such just

<i>mysql < zmschema.sql</i>

should be fine.

Phil,
Locked