Search found 170 matches

by R2D2
Sun Feb 03, 2019 3:28 pm
Forum: ZoneMinder 1.32.x
Topic: [ZM API] Database connection "Mysql" is missing, or could not be created
Replies: 4
Views: 2922

Re: [ZM API] Database connection "Mysql" is missing, or could not be created

I'm not sure if my php.ini is correct. Maybe someone with a working API can post the output of: grep ^mysql $(php --ini |grep Loaded |awk '{print $4 }') This is my output: server01 ~ # grep ^mysql $(php --ini |grep Loaded |awk '{print $4 }') mysqli.max_persistent = -1 mysqli.allow_persistent = On my...
by R2D2
Sat Feb 02, 2019 3:03 pm
Forum: ZoneMinder 1.32.x
Topic: [ZM API] Database connection "Mysql" is missing, or could not be created
Replies: 4
Views: 2922

Re: [ZM API] Database connection "Mysql" is missing, or could not be created

Unfortunately not. :(

After i got the API working, i stumbled over this Problem.

Image
by R2D2
Sat Feb 02, 2019 1:56 pm
Forum: ZoneMinder 1.32.x
Topic: [ZM API] Database connection "Mysql" is missing, or could not be created
Replies: 4
Views: 2922

[ZM API] Database connection "Mysql" is missing, or could not be created

Hi, When i call in the Browser "http://server01/zm/api/monitors.json", i get the following issue: { "code": 500, "name": "Database connection "Mysql" is missing, or could not be created.", "message": "SQLSTATE[HY000] [2002] ", &qu...
by R2D2
Sat Feb 02, 2019 9:45 am
Forum: ZoneMinder 1.32.x
Topic: (Solved) [ZM API] PHP Error
Replies: 10
Views: 68231

Re: [ZM API] PHP Error

SOLVED!

I found this in the gentoo Forum:

https://forums.gentoo.org/viewtopic-p-8 ... ml#8293346
by R2D2
Tue Jan 29, 2019 6:47 pm
Forum: ZoneMinder 1.32.x
Topic: (Solved) [ZM API] PHP Error
Replies: 10
Views: 68231

Re: [ZM API] PHP Error

OK, reverted all, an did the instructions from your link above. But now i get this issue: Fatal error: Uncaught FatalErrorException: [CakeSessionException] Unable to configure the session, setting session.use_trans_sid failed. #0 /usr/share/zoneminder/www/api/lib/Cake/Model/Datasource/CakeSession.ph...
by R2D2
Sun Jan 27, 2019 11:21 am
Forum: ZoneMinder 1.32.x
Topic: (Solved) [ZM API] PHP Error
Replies: 10
Views: 68231

Re: [ZM API] PHP Error

I edited the " /usr/share/zoneminder/www/api/app/Config/bootstrap.php " from, require_once("../../../includes/config.php"); to require_once("/usr/share/zoneminder/www/includes/config.php") but now i get the following issue: Uncaught FatalErrorException: [MissingPluginEx...
by R2D2
Sun Jan 27, 2019 8:29 am
Forum: ZoneMinder 1.32.x
Topic: (Solved) [ZM API] PHP Error
Replies: 10
Views: 68231

Re: [ZM API] PHP Error

After some "Experiments", now i get this issue: https://imagizer.imageshack.com/v2/xq90/924/O0CCcT.png Warning (2): Use of undefined constant ZM_OPT_USE_API - assumed 'ZM_OPT_USE_API' (this will throw an Error in a future version of PHP) [APP/Controller/AppController.php, line 63] Warning ...
by R2D2
Sat Jan 26, 2019 8:27 pm
Forum: ZoneMinder 1.32.x
Topic: (Solved) [ZM API] PHP Error
Replies: 10
Views: 68231

Re: [ZM API] PHP Error

Distro is Gentoo
ZM is 1.32.3
by R2D2
Sat Jan 26, 2019 2:44 pm
Forum: ZoneMinder 1.32.x
Topic: (Solved) [ZM API] PHP Error
Replies: 10
Views: 68231

(Solved) [ZM API] PHP Error

Hi, after a long time, i installed ZM again, but i cannot get working the ZM API. :( When i type this in my Browser, http://server01/zm/api/ i get this: Fatal error: Cannot use 'object' as class name as it is reserved in /usr/share/zoneminder/www/api/lib/Cake/Core/Object.php on line 18 How can i sol...
by R2D2
Tue Jul 01, 2014 6:12 pm
Forum: ZoneMinder 1.27.x
Topic: [1.27.0] You don't have permission to access /zoneminder ...
Replies: 13
Views: 4857

Re: [1.27.0] You don't have permission to access /zoneminder

Where can i find the 1.27.1?

Here is only 1.27.0 online:

--> http://www.zoneminder.com/downloads
by R2D2
Tue Jul 01, 2014 5:56 pm
Forum: ZoneMinder 1.27.x
Topic: [1.27.0] You don't have permission to access /zoneminder ...
Replies: 13
Views: 4857

Re: [1.27.0] You don't have permission to access /zoneminder

I think, disabling the error reporting, is not really a good way to fix Errors!

Here it is fixed in the right way:

--> https://github.com/ZoneMinder/ZoneMinde ... tabase.php
by R2D2
Tue Jul 01, 2014 5:38 pm
Forum: ZoneMinder 1.27.x
Topic: [1.27.0] You don't have permission to access /zoneminder ...
Replies: 13
Views: 4857

Re: [1.27.0] You don't have permission to access /zoneminder

Did you restart Apache after the changes? ... Yes, of course. [...] Which php.ini file did you modify? You might have several on the system, one for Apache and one for CLI. I changed all i found on my System: server01 ~ # locate /etc/*/php.ini /etc/php/apache2-php5.3/php.ini /etc/php/apache2-php5.5...
by R2D2
Tue Jul 01, 2014 5:14 pm
Forum: ZoneMinder 1.27.x
Topic: [1.27.0] You don't have permission to access /zoneminder ...
Replies: 13
Views: 4857

Re: [1.27.0] You don't have permission to access /zoneminder

This "good example" doesn't work. :(
by R2D2
Mon Jun 30, 2014 5:51 pm
Forum: ZoneMinder 1.27.x
Topic: [1.27.0] You don't have permission to access /zoneminder ...
Replies: 13
Views: 4857

Re: [1.27.0] You don't have permission to access /zoneminder

The Problem is solved, there was an incorrect entry in "/etc/apache2/modules.d/10_zoneminder.conf". ; But now there is an other Problem. On each zm Site i see this issue: Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO in...