Re: Can't add monitors
Posted: Tue May 31, 2022 3:35 pm
by clipo
Just tried on my 20.04 system that as you've said is PHP7.4 and I get the below error in the logs and as with 22.04 the monitor wont save.
31/05/22 16:30:57.939564 web_php[160298].ERR [192.168.0.3] [SQL-ERR 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'Width' cannot be null', statement was 'INSERT INTO `Monitors` (`Id`, `Name`, `Notes`, `ServerId`, `StorageId`, `Type`, `Function`, `Enabled`, `DecodingEnabled`, `LinkedMonitors`, `Triggers`, `ONVIF_URL`, `ONVIF_Username`, `ONVIF_Password`, `ONVIF_Options`, `Device`, `Channel`, `Format`, `V4LMultiBuffer`, `V4LCapturesPerFrame`, `Protocol`, `Method`, `Host`, `Port`, `SubPath`, `Path`, `SecondPath`, `Options`, `User`, `Pass`, `Width`, `Height`, `Colours`, `Palette`, `Orientation`, `Deinterlacing`, `DecoderHWAccelName`, `DecoderHWAccelDevice`, `SaveJPEGs`, `VideoWriter`, `OutputCodec`, `Encoder`, `OutputContainer`, `EncoderParameters`, `RecordAudio`, `RTSPDescribe`, `Brightness`, `Contrast`, `Hue`, `Colour`, `EventPrefix`, `LabelFormat`, `LabelX`, `LabelY`, `LabelSize`, `ImageBufferCount`, `MaxImageBufferCount`, `WarmupCount`, `PreEventCount`, `PostEventCount`, `StreamReplayBuffer`, `AlarmFrameCount`, `SectionLength`, `MinSectionLength`, `FrameSkip`, `MotionFrameSkip`, `AnalysisFPSLimit`, `AnalysisUpdateDelay`, `MaxFPS`, `AlarmMaxFPS`, `FPSReportInterval`, `RefBlendPerc`, `AlarmRefBlendPerc`, `Controllable`, `ControlId`, `ControlDevice`, `ControlAddress`, `AutoStopTimeout`, `TrackMotion`, `TrackDelay`, `ReturnLocation`, `ReturnDelay`, `ModectDuringPTZ`, `DefaultRate`, `DefaultScale`, `SignalCheckPoints`, `SignalCheckColour`, `WebColour`, `Exif`, `Sequence`, `ZoneCount`, `Refresh`, `DefaultCodec`, `Latitude`, `Longitude`, `RTSPServer`, `RTSPStreamName`, `Importance`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params:,Monitor-5,,0,0,Ffmpeg,Mocord,1,1,,,192.168.0.12,user,password,,,0,0,,1,,rtpRtsp,,,,,,,,,,,4,0,ROTATE_0,0,,,3,0,0,auto,,# Lines beginning with # are a comment
# For changing quality, use the crf option
# 1 is best, 51 is worst quality
crf=23
,0,0,-1,-1,-1,-1,Event-,%N - %d/%m/%y %H:%M:%S,0,0,1,3,0,0,5,5,0,1,600,10,0,0,,0,,,100,6,6,0,,,user:port@ip,,0,,-1,,0,100,0,0,#0000be,#806c33,0,5,0,,auto,,,0,,Normal] at /usr/share/zoneminder/www/includes/database.php line 161
31/05/22 16:30:57.943869 web_php[160298].ERR [192.168.0.3] [Error saving new Monitor.] at /usr/share/zoneminder/www/includes/actions/monitor.php line 231