Warning: Invalid argument supplied for foreach() in

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
tony
Posts: 29
Joined: Mon Dec 29, 2003 8:30 pm

Warning: Invalid argument supplied for foreach() in

Post by tony »

hi, i have upgraded from 0.9.16 and now zoneminder wont start. in the option page i get this error:
Warning: Invalid argument supplied for foreach() in /e/wrighttwo/zm/zm_html_view_options.php on line 217

any ideas?


thanks

tony
User avatar
tony
Posts: 29
Joined: Mon Dec 29, 2003 8:30 pm

Post by tony »

Update to precious post:

trying to start zm manually I get

Starting ZoneMinder: Bareword "ZM_CHECK_FOR_UPDATES" not allowed while "strict subs" in use at /usr/local/bin/zmpkg.pl line 268.
Execution of /usr/local/bin/zmpkg.pl aborted due to compilation errors.
[FAILED]

but there was no errors when I compiled it.

tony
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

This is normally because you have not provisioned the database with configuration values. On a new install this is usually because zmconfig.pl has not been run at all. On an upgrade it is normally because of the same thing. You need to copy the zmconfig.txt file from your old installation into your new build area and run 'perl zmconfig.pl -noi'
User avatar
tony
Posts: 29
Joined: Mon Dec 29, 2003 8:30 pm

Post by tony »

thanks, thought I'd done everything right but must have got something in the wrong order, run perl zmconfig again and its now working.
however I no longer get a video stream when viewing an event just all the jpegs displayed. do I have to switch on streaming even though it was on by default before?

tony
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Yes, probably. The ZM_CAN_STREAM options in Options->Tools was a simple Yes/No toggle before but is now Yes/No/Auto. You may need to check it's setting and make sure it is right for you again.

Phil,
User avatar
tony
Posts: 29
Joined: Mon Dec 29, 2003 8:30 pm

Post by tony »

thanks, that did it

tony
Locked