Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events API for specific events is broken #90

Closed
pliablepixels opened this issue Mar 26, 2018 · 0 comments
Closed

Events API for specific events is broken #90

pliablepixels opened this issue Mar 26, 2018 · 0 comments

Comments

@pliablepixels
Copy link

pliablepixels commented Mar 26, 2018

(Also see here)

https://xxx/zm/api/events/190329.json

Output

{
    "success": false,
    "data": {
        "name": "syntax error, unexpected ';', expecting ')'",
        "message": "syntax error, unexpected ';', expecting ')'",
        "url": "\/zm\/api\/events\/190329.json",
        "exception": {
            "class": "ParseError",
            "code": 0,
            "message": "syntax error, unexpected ';', expecting ')'",
            "trace": [
                "#0 [internal function]: App::load('Group')",
                "#1 [internal function]: spl_autoload_call('Group')",
                "#2 \/usr\/share\/zoneminder\/www\/api\/lib\/Cake\/Utility\/ClassRegistry.php(146): class_exists('Group')",
                "#3 \/usr\/share\/zoneminder\/www\/api\/lib\/Cake\/Model\/Model.php(1084): ClassRegistry::init('Group')",
                "#4 \/usr\/share\/zoneminder\/www\/api\/lib\/Cake\/Model\/Model.php(893): Model->_constructLinkedModel('Group', 'Group', NULL)",
                "#5 \/usr\/share\/zoneminder\/www\/api\/lib\/Cake\/Model\/Model.php(926): Model->__isset('Group')",
                "#6 \/usr\/share\/zoneminder\/www\/api\/lib\/Cake\/Model\/Datasource\/DboSource.php(1205): Model->__get('Group')",
                "#7 \/usr\/share\/zoneminder\/www\/api\/lib\/Cake\/Model\/Model.php(3040): DboSource->read(Object(Event), Array)",
                "#8 \/usr\/share\/zoneminder\/www\/api\/lib\/Cake\/Model\/Model.php(3012): Model->_readDataSource('first', Array)",
                "#9 \/usr\/share\/zoneminder\/www\/api\/app\/Controller\/EventsController.php(120): Model->find('first', Array)",
                "#10 [internal function]: EventsController->view('190329')",
                "#11 \/usr\/share\/zoneminder\/www\/api\/lib\/Cake\/Controller\/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)",
                "#12 \/usr\/share\/zoneminder\/www\/api\/app\/Plugin\/Crud\/Lib\/CrudControllerTrait.php(31): Controller->invokeAction(Object(CakeRequest))",
                "#13 \/usr\/share\/zoneminder\/www\/api\/lib\/Cake\/Routing\/Dispatcher.php(193): AppController->invokeAction(Object(CakeRequest))",
                "#14 \/usr\/share\/zoneminder\/www\/api\/lib\/Cake\/Routing\/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))",
                "#15 \/usr\/share\/zoneminder\/www\/api\/app\/webroot\/index.php(107): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))",
                "#16 {main}"
            ]
        },
        "queryLog": {
          <truncated>
    }
}
@pliablepixels pliablepixels changed the title Events API for specific events is borked Events API for specific events is broken Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant