1.22 : Bareword "ZM_OPT_CONTROL"

Support and queries relating to all previous versions of ZoneMinder
Locked
bschelst
Posts: 10
Joined: Thu Jan 06, 2005 9:22 am

1.22 : Bareword "ZM_OPT_CONTROL"

Post by bschelst »

Hello,

I just updated my 'older' Zoneminder installation (1.20) to 1.22
But I can't get it working.

First problem is, when I do a zmpkg.pl start,I receive the following error message:

--
Bareword "ZM_OPT_CONTROL" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 196.
Bareword "ZM_RUN_AUDIT" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 206.
Execution of /usr/local/bin/zmpkg.pl aborted due to compilation errors.
--

I checked permissions, shell of apache user, etc. And everything is correct.

When I remove the use strict (I know, nasty :), I still doesn't start, and I receive the following error message in the logfile:

--
02/21/06 14:59:21.994776 zmpkg[24181].INF [Command: start]
02/21/06 14:59:21.995481 zmpkg[24181].DBG [Testing valid shell syntax]
02/21/06 14:59:21.996069 zmpkg[24181].DBG [Testing 'su www-data -c 'true'']
02/21/06 14:59:22.069296 zmpkg[24181].DBG [Test ok, using prefix 'su www-data -c ']
02/21/06 14:59:22.077885 zmpkg[24181].DBG [Command: su www-data -c '/usr/local/bin/zmdc.pl check']
02/21/06 14:59:22.299203 zmpkg[24181].DBG [Output: stopped]
02/21/06 14:59:22.299352 zmpkg[24181].DBG [Removing shared memory]
02/21/06 14:59:22.299431 zmpkg[24181].DBG [Checking for shared memory with 'ipcs -m | grep '^0x7a6d20'']
02/21/06 14:59:22.308054 zmpkg[24181].DBG [Command: su www-data -c '/usr/local/bin/zmfix']
02/21/06 14:59:22.344138 zmpkg[24181].ERR [Unable to run 'su www-data -c '/usr/local/bin/zmfix'', output is '']
--
When I run zmfix manually, with the apache or root user, it's giving exit code '255'.

I'm stuck, and I hope somebody can help me.

OS: Debian


Bart
pchan
Posts: 50
Joined: Thu Jan 15, 2004 9:38 pm

Post by pchan »

I had the same problem 2 days ago.

I re-ran zm_create.sql to update my DB and that seemed to "fix" this problem. However, now i'm having other issues since it does't recognize any of my old defined zones.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

bschelst,
Did you run zmupdate --version=1.20.0


Regards,
Corey
Locked