I have
cakephp 2.10.8 with
crud-c3976f1478c681b0bbc132ec3a3e82c3984eeed5 in the /zm/api. I am working with
Code: Select all
Apache/2.4.29 (Ubuntu),
PHP 7.2,
10.1.29-MariaDB-6 Ubuntu 18.04
zoneminder_1.31.1~20180315113757-bionic_i386.deb
I started off getting a fairly normal cakephp page with the css working and most things green then swapped in the /api/app from a working API from ZM 1.31.39 Artful(Ubuntu)17.10 and the errors prevented any function. So returned to the stock cakephp 2.10.8 and started to just concentrate on getting the URL
http://localhost/zm/api/host/getVersion.json or
http://localhost/zm/api/host/daemonCheck.json to work by just adding the code to get that going. I have had some cakephp generated error pages...not a bad sign....and now face this error
Code: Select all
Fatal error: Uncaught Error: Class 'RelatedModelsListener' not found in /usr/share/zoneminder/www/api/app2108/Plugin/Crud/Controller/Component/CrudComponent.php:752 Stack trace: #0 /usr/share/zoneminder/www/api/app2108/Plugin/Crud/Controller/Component/CrudComponent.php(728): CrudComponent->_loadListener('RelatedModels') #1 /usr/share/zoneminder/www/api/app2108/Plugin/Crud/Controller/Component/CrudComponent.php(169): CrudComponent->_loadListeners() #2 /usr/share/zoneminder/www/api/lib/Cake/Utility/ObjectCollection.php(128): CrudComponent->initialize(Object(CakeErrorController)) #3 /usr/share/zoneminder/www/api/lib/Cake/Event/CakeEventManager.php(243): ObjectCollection->trigger('initialize') #4 /usr/share/zoneminder/www/api/lib/Cake/Controller/Controller.php(677): CakeEventManager->dispatch(Object(CakeEvent)) #5 /usr/share/zoneminder/www/api/lib/Cake/Error/ExceptionRenderer.php(158): Controller->startupProcess() #6 /usr/share/zoneminder/www/api/lib/Cake/Error/ExceptionRenderer.php(95): ExceptionRenderer->_getController(Obje in /usr/share/zoneminder/www/api/app2108/Plugin/Crud/Controller/Component/CrudComponent.php on line 752
the little signs of success or progress are few so far.....but not all is lost.....
weird is I added Crud 5.2 to see what happened......just this error ....
Code: Select all
Fatal error: Class 'Cake\Controller\Component' not found in /usr/share/zoneminder/www/api/app2108/Plugin/Crud/Controller/Component/CrudComponent.php on line 25