Can't start from interface.

Support and queries relating to all previous versions of ZoneMinder
Locked
maxs
Posts: 8
Joined: Mon Jul 28, 2003 12:38 am

Can't start from interface.

Post 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.
User avatar
tech_fixer
Posts: 132
Joined: Tue Jul 29, 2003 3:07 pm

Re: Can't start from interface.

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Can't start from interface.

Post by zoneminder »

Hi Tom,

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

Cheers,

Phil,
chris
Posts: 5
Joined: Thu Aug 21, 2003 10:24 am

Re: Can't start from interface.

Post 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
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Can't start from interface.

Post by ajpalm »

Anyone got a example of how this should look like?
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Can't start from interface.

Post by ajpalm »

Anyone got a example of how this should look like?
Locked