Page 1 of 1

ZMXAP

Posted: Mon Mar 17, 2014 8:20 pm
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

Re: ZMXAP

Posted: Tue Mar 18, 2014 2:11 pm
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 );

Re: ZMXAP

Posted: Sat Jan 10, 2015 12:30 pm
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"