Page 1 of 1

Can't start from interface.

Posted: Sun Aug 17, 2003 3:08 am
by maxs
I just solved a problem that has been nagging me for weeks and would like to share it with the forum.
I'm running ZoneMinder v0.9.15 on a Debian Testing installation, kernel 2.4.20-686. My web server is thttpd 2.23beta1.

Everything was working just fine with one exception. I was unable to start ZM from the browser interface.
I could start it from the command line, then open the browser and sign on. The browser would show the correct status for all the cameras and all the links worked.
I could stop it from the browser. All the services would end, the window would refresh and again everything would show the correct status,links etc.
However, if I clicked (start) at this point, I could see all the services starting
via ps -l , but the browser would hang. My only recourse would
be to close the browser, re-open it and sign on again. Then, just like above, everything would be fine until I attempted to re-cycle ZM from the browser.

If I commented out session_start() I didn't have this problem. Of course, I also didn't have any way to authorize my users, but it pointed towards the php session handler as the problem.

I found the answer at www.php.net/manual/en/function.exec.php
I put a session_write_close() immediately before packageControl( 'start' )
in zm_html.php. Worked right off.
I don't know if this is a problem unique to Debian or a result of
my own setup. Hope it helps someone else.
Anyway, I have been very happy with ZoneMinder since I discovered it at v0.9.11.
It just keeps getting better.

Re: Can't start from interface.

Posted: Mon Aug 18, 2003 6:09 pm
by tech_fixer
Tom:
I experienced the same problem on RH9, with any browser including IE5, IE5.5, IE6, Mozilla 1.4.

I used your fix and now all works well. Good job!

Regards,
Jose Rodriguez.

Re: Can't start from interface.

Posted: Wed Aug 20, 2003 2:51 pm
by zoneminder
Hi Tom,

Thanks for figuring that out. I'll put the fix into the next version.

Cheers,

Phil,

Re: Can't start from interface.

Posted: Thu Aug 21, 2003 10:46 am
by chris
Hi Tom,

Thank you for your fix, it works well.
I have exactly the same problem (on Debian with zm0.9.15) and I was looking for the solution from a couple of days.

You save my time :)

Bye.
CHris

Re: Can't start from interface.

Posted: Tue Sep 09, 2003 1:36 pm
by ajpalm
Anyone got a example of how this should look like?

Re: Can't start from interface.

Posted: Tue Sep 09, 2003 1:36 pm
by ajpalm
Anyone got a example of how this should look like?