API not working on ubuntu 17.10

Bug #1726283 reported by Jeroen
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
zoneminder (Debian)
Fix Released
Unknown
zoneminder (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When runnng ZM on Ubuntu 17.10 opening http://server/zm/api/ shows the following error:

Fatal error: Uncaught FatalErrorException: [MissingPluginException] Plugin Crud could not be found. #0 /usr/share/php/Cake/Core/App.php(227): CakePlugin::path('Crud') #1 /usr/share/php/Cake/Core/App.php(549): App::path('Lib', 'Crud') #2 [internal function]: App::load('CrudControllerT...') #3 /usr/share/zoneminder/www/api/app/Controller/AppController.php(34): spl_autoload_call('CrudControllerT...') #4 /usr/share/php/Cake/Core/App.php(547): include('/usr/share/zone...') #5 [internal function]: App::load('AppController') #6 [internal function]: spl_autoload_call('AppController') #7 /usr/share/php/Cake/Error/ExceptionRenderer.php(152): class_exists('AppController') #8 /usr/share/php/Cake/Error/ExceptionRenderer.php(92): ExceptionRenderer->_getController(Object(CacheException)) #9 /usr/share/php/Cake/Error/ErrorHandler.php(126): ExceptionRenderer->__construct(Object(CacheException)) #10 [internal function]: ErrorHandler::handleException(Object(CacheException)) #11 {main} in /usr/share/php/Cake/Error/ErrorHandler.php:138 Stack in /usr/share/php/Cake/Error/ErrorHandler.php on line 138

Tags: api
Revision history for this message
Steve Gilvarry (steve-gilvarry) wrote :

Packaging issue in Debian, ignored git submodule friendsofcake/crud and patched the checks that check it is present

Changed in zoneminder (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zoneminder (Ubuntu):
status: New → Confirmed
Revision history for this message
Steven R. Loomis (srl-icu-project) wrote :

@steve-gilvarry can you explain your comment? Did you figure out a workaround? I'm not familiar with how these modules are built. I'd be glad to try/test something if there are details.

Revision history for this message
Martin Keim (martin-keim-online) wrote :

any update on this? I can do some tests, if there is a new version available.

Revision history for this message
Matt N. (mmn100) wrote :

The problem is this patch as it removed the packaging of the crud plugin: https://anonscm.debian.org/git/collab-maint/zoneminder.git/commit/?id=2a3db2ae513a64dce5a1123ab3a979b4785ba49e

Revision history for this message
Nikita Rotsky (rotzke) wrote :

@Matt N. Any chance for a temporary solution by any chance? Need the damn API so bad :(

Revision history for this message
Steven R. Loomis (srl-icu-project) wrote :

@mmn100 thanks for fingering the patch. Perhaps the intent was to split the submodules out as separate packages?

Changed in zoneminder (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.