ZMXAP

Forum for questions and support relating to the 1.27.x releases only.
Locked
titoye
Posts: 1
Joined: Mon Mar 17, 2014 8:16 pm

ZMXAP

Post by titoye »

I have been update my zoneminder to the last version and my zmxap doesn't work any more

I've got a message who talk me : "Bareword "main::ZM_PATH_BIN" not allowed while "strict subs" in use at /usr/local/zmxap/zmxap.pl line 259.
BEGIN not safe after errors--compilation aborted at /usr/local/zmxap/zmxap.pl line 368"

Could some one help me ?

Thank

Best regards
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZMXAP

Post by knight-of-ni »

You should contact the author of zmxap and have him update the source code to reflect the latest changes to zoneminder.
From the zmxap README, it looks like his e-mail is: gregg@limings.net

I have not taken one look at the zmxap code myself, but we recently stopped using Perl barewords in the latest version of zoneminder. A guess would be to change all barewords in zmxap from:

Code: Select all

ZM_XXX_XXX
to:

Code: Select all

$Config{ZM_XXX_XXX}
You might also have to add this to the top of the zmxap PErl script:

Code: Select all

use vars qw( %Config );
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
hani118
Posts: 1
Joined: Sat Jan 10, 2015 7:32 am

Re: ZMXAP

Post by hani118 »

I've got a message who talk me : "Bareword "main::ZM_PATH_BIN" not allowed while "strict subs" in use at /usr/local/zmxap/zmxap.pl line 259.
BEGIN not safe after errors--compilation aborted at /usr/local/zmxap/zmxap.pl line 368"
Locked