API problem 1.35.14

Previous development branch now released as 1.36
Locked
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

API problem 1.35.14

Post by Cramac1 »

get
http://video.xx.com/zm/api/monitors.jso ... ...siuhvcg


{"success":false,"data":{"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"\/zm\/api\/monitors.json?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJab25lTWluZGVyIiwiaWF0IjoxNjA2OTEzNzI1LCJleHAiOjE2MDY5MjA5MjUsInVzZXIiOiJhZG1pbiIsInR5cGUiOiJhY2Nlc3MifQ.b08SQEDVo0yXRVYaOszEmugcqvrO-5fbLzMQsiuhvcg","exception":{"class":"PDOException","code":"42S22","message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Monitor.HourEvents' in 'field list'"}}}
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: API problem 1.35.14

Post by Magic919 »

Probably a problem with running the DB update scripts.
-
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: API problem 1.35.14

Post by Cramac1 »

how fix?

not help:
mysql -u root -p zm < zm_update-1.35.14.sql
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: API problem 1.35.14

Post by iconnor »

What are you doing to cause this? HourEvents and various other columns were moved to Monitor_Status table.

Cakephp should automatically pick this up though.Unless you are trying to SET the HourEvents column which wouldn't make sense.
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: API problem 1.35.14

Post by Cramac1 »

i updated version from 1.35.13 to 1.35.14
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: API problem 1.35.14

Post by Cramac1 »

restarting the server completely, solved the problem.
Locked