mitch wrote:I don't have any cameras that are controlable but looking at the code it seems fairly straightforward what the error most likely is. For me to look at it add:
Code: Select all
print "<xmp>" . var_dump($monitor) . "</xmp>";
around line 123 in that file, go to the page, then reply back with what it dumps.
Thanks Mitch! I entered that line, and here is the output. I took the liberty of formating it the way it appeared on the screen:
array(150) { ["Id"]=> string(1) "2" ["Name"]=>
string(9) "Back-Door" ["Type"]=> string(6)
"Remote" ["Protocol"]=> string(4)
"http" ["CanWake"]=> string(1) "0" ["CanSleep"]=>
string(1) "0" ["CanReset"]=> string(1)
"0" ["CanZoom"]=> string(1) "0" ["CanAutoZoom"]=>
string(1) "0" ["CanZoomAbs"]=> string(1)
"0" ["CanZoomRel"]=> string(1)
"0" ["CanZoomCon"]=> string(1)
"0" ["MinZoomRange"]=> string(1)
"0" ["MaxZoomRange"]=> string(1)
"0" ["MinZoomStep"]=> string(1)
"0" ["MaxZoomStep"]=> string(1)
"0" ["HasZoomSpeed"]=> string(1)
"0" ["MinZoomSpeed"]=> string(1)
"0" ["MaxZoomSpeed"]=> string(1)
"0" ["CanFocus"]=> string(1)
"0" ["CanAutoFocus"]=> string(1)
"0" ["CanFocusAbs"]=> string(1)
"0" ["CanFocusRel"]=> string(1)
"0" ["CanFocusCon"]=> string(1)
"0" ["MinFocusRange"]=> string(1)
"0" ["MaxFocusRange"]=> string(1)
"0" ["MinFocusStep"]=> string(1)
"0" ["MaxFocusStep"]=> string(1)
"0" ["HasFocusSpeed"]=> string(1)
"0" ["MinFocusSpeed"]=> string(1)
"0" ["MaxFocusSpeed"]=> string(1)
"0" ["CanIris"]=> string(1)
"0" ["CanAutoIris"]=> string(1)
"0" ["CanIrisAbs"]=> string(1)
"0" ["CanIrisRel"]=> string(1)
"0" ["CanIrisCon"]=> string(1)
"0" ["MinIrisRange"]=> string(1)
"0" ["MaxIrisRange"]=> string(1)
"0" ["MinIrisStep"]=> string(1)
"0" ["MaxIrisStep"]=> string(1)
"0" ["HasIrisSpeed"]=> string(1)
"0" ["MinIrisSpeed"]=> string(1)
"0" ["MaxIrisSpeed"]=> string(1)
"0" ["CanGain"]=> string(1)
"0" ["CanAutoGain"]=> string(1)
"0" ["CanGainAbs"]=> string(1)
"0" ["CanGainRel"]=> string(1)
"0" ["CanGainCon"]=> string(1)
"0" ["MinGainRange"]=> string(1)
"0" ["MaxGainRange"]=> string(1)
"0" ["MinGainStep"]=> string(1)
"0" ["MaxGainStep"]=> string(1)
"0" ["HasGainSpeed"]=> string(1)
"0" ["MinGainSpeed"]=> string(1)
"0" ["MaxGainSpeed"]=> string(1)
"0" ["CanWhite"]=> string(1)
"0" ["CanAutoWhite"]=> string(1)
"0" ["CanWhiteAbs"]=> string(1)
"0" ["CanWhiteRel"]=> string(1)
"0" ["CanWhiteCon"]=> string(1)
"0" ["MinWhiteRange"]=> string(1)
"0" ["MaxWhiteRange"]=> string(1)
"0" ["MinWhiteStep"]=> string(1)
"0" ["MaxWhiteStep"]=> string(1)
"0" ["HasWhiteSpeed"]=> string(1)
"0" ["MinWhiteSpeed"]=> string(1)
"0" ["MaxWhiteSpeed"]=> string(1)
"0" ["HasPresets"]=> string(1) "1" ["NumPresets"]=>
string(1) "8" ["HasHomePreset"]=> string(1)
"1" ["CanSetPresets"]=> string(1) "0" ["CanMove"]
=> string(1) "1" ["CanMoveDiag"]=> string(1)
"0" ["CanMoveMap"]=> string(1) "1" ["CanMoveAbs"]
=> string(1) "0" ["CanMoveRel"]=> string(1)
"0" ["CanMoveCon"]=> string(1) "0" ["CanPan"]=>
string(1) "1" ["MinPanRange"]=> string(1) "0" ["MaxPanRange"]=> string(1)
"0" ["MinPanStep"]=> string(1) "0" ["MaxPanStep"]=> string(1)
"0" ["HasPanSpeed"]=> string(1)
"0" ["MinPanSpeed"]=> string(1)
"0" ["MaxPanSpeed"]=> string(1)
"0" ["HasTurboPan"]=> string(1)
0" ["TurboPanSpeed"]=> string(1) "0" ["CanTilt"]=>
string(1) "1" ["MinTiltRange"]=> string(1)
"0" ["MaxTiltRange"]=> string(1) "0" ["MinTiltStep"]
=> string(1) "0" ["MaxTiltStep"]=> string(1)
"0" ["HasTiltSpeed"]=> string(1)
"0" ["MinTiltSpeed"]=> string(1)
"0" ["MaxTiltSpeed"]=> string(1)
"0" ["HasTurboTilt"]=> string(1)
"0" ["TurboTiltSpeed"]=> string(1)
"0" ["CanAutoScan"]=> string(1)
"0" ["NumScanPaths"]=> string(1) "0" ["Function"]=>
string(6) "Modect" ["Enabled"]=> string(1)
"1" ["LinkedMonitors"]=> string(1) "2" ["Triggers"]=>
string(0) "" ["Device"]=> string(4) "http" ["Channel"]
=> string(1) "0" ["Format"]=> string(1)
"0" ["Method"]=> string(6) "simple" ["Host"]=>
string(27) "xxx:
xxxxxxxxx@192.168.xxx.xxxx" ["Port"]
=> string(2) "80" ["SubPath"]=> string(0) "" ["Path"]
=> string(30) "/cgi-bin/camera?
resolution=640" ["Width"]=> string(3)
"640" ["Height"]=> string(3) "480" ["Palette"]=>
string(1) "3" ["Orientation"]=> string(1)
"0" ["Brightness"]=> string(2) "-1" ["Contrast"]
=> string(2) "-1" ["Hue"]=> string(2) "-1" ["Colour"]=>
string(2) "-1" ["EventPrefix"]=> string(21) "Back-
Door-Hall-Event-" ["LabelFormat"]=> string(22) "%N
- %y/%m/%d %H:%M:%S" ["LabelX"]=> string(1)
"0" ["LabelY"]=> string(1) "0" ["ImageBufferCount"]
=> string(2) "10" ["WarmupCount"]=> string(2)
"40" ["PreEventCount"]=> string(2)
"10" ["PostEventCount"]=> string(2)
"10" ["StreamReplayBuffer"]=> string(4)
"1000" ["AlarmFrameCount"]=> string(1)
"1" ["SectionLength"]=> string(3)
"600" ["FrameSkip"]=> string(1) "0" ["MaxFPS"]=>
string(4) "4.00" ["AlarmMaxFPS"]=> string(4)
"8.00" ["FPSReportInterval"]=> string(4)
"1000" ["RefBlendPerc"]=> string(1)
"7" ["Controllable"]=> string(1) "1" ["ControlId"]
=> string(1) "5" ["ControlDevice"]=> string(0)
"" ["ControlAddress"]=> string(27)
"xxx:
xxxxxxxxx@192.168.xxx.xxx" ["AutoStopTimeout"]
=> string(4) "0.00" ["TrackMotion"]=> string(1)
"1" ["TrackDelay"]=> string(1) "0" ["ReturnLocation"]
=> string(1) "0" ["ReturnDelay"]=> string(1)
"0" ["DefaultView"]=> string(6)
"Events" ["DefaultRate"]=> string(3)
"100" ["DefaultScale"]=> string(3)
"100" ["SignalCheckColour"]=> string(7)
"#0100BE" ["WebColour"]=>
string(3) "red" ["Sequence"]=> string(1) "1" }
Notice: Undefined index: MoveRoot in /var/www/zoneminder/skins/classic/includes/control_functions.php on line 125
Notice: Undefined index: MoveRoot in /var/www/zoneminder/skins/classic/includes/control_functions.php on line 126
Notice: Undefined index: MoveRoot in /var/www/zoneminder/skins/classic/includes/control_functions.php on line 127
Notice: Undefined index: MoveRoot in /var/www/zoneminder/skins/classic/includes/control_functions.php on line 128
Notice: Undefined index: MoveRoot in /var/www/zoneminder/skins/classic/includes/control_functions.php on line 129
Notice: Undefined index: MoveRoot in /var/www/zoneminder/skins/classic/includes/control_functions.php on line 130
Notice: Undefined index: MoveRoot in /var/www/zoneminder/skins/classic/includes/control_functions.php on line 131
Notice: Undefined index: MoveRoot in /var/www/zoneminder/skins/classic/includes/control_functions.php on line 132