I just upgraded to 1.36.31 from 1.34. When I do:
http://localhost/zm/api/monitors/alarm/ ... nd:on.json
I'm getting:
"Unsupported operand types: string - int"
This was working on the old version. Any thoughts on what's going wrong?
Thanks
Unsupported operand types error
Re: Unsupported operand types error
Post the actual log, we need to know which line is generating that error.
Did you ONLY upgrade zoneminder? That looks more like a complaint from a newer php to me.
Did you ONLY upgrade zoneminder? That looks more like a complaint from a newer php to me.
Re: Unsupported operand types error
You’re absolutely right. I actually got a new computer, with a whole new installation of Ubuntu.
Which log file should I be looking at? I looked around and couldn’t find anything relevant.
Thanks
Which log file should I be looking at? I looked around and couldn’t find anything relevant.
Thanks
Re: Unsupported operand types error
Found it.
Line 303 of /usr/share/zoneminder/www/api/app/Controller/MonitorsController.php needs to be:
$status = intval($status) - 1;
Line 303 of /usr/share/zoneminder/www/api/app/Controller/MonitorsController.php needs to be:
$status = intval($status) - 1;
Re: Unsupported operand types error
That did the trick. Thanks for your help and your quick reply (especially considering I didn't give you much info).