No archiving?

Support and queries relating to all previous versions of ZoneMinder
Locked
richie
Posts: 1
Joined: Tue Apr 06, 2004 10:46 am

No archiving?

Post by richie »

I *seem* to have set up Zm correctly, inasmuch as I can view streamed JPEG from the control panel. However, using the default zone settings I can't get alarms to activate.

Also, if I view a stream and I click on 'archive' I get, in the browser window:

function newWindow(Url,Name,Width,Height) { var Name = window.open(Url,Name,"resizable,scrollbars,width="+Width+",height="+Height); } function eventWindow(Url,Name,Width,Height) { var Name = window.open(Url,Name,"resizable,width="+Width+",height="+Height ); } function filterWindow(Url,Name) { var Name = window.open(Url,Name,"resizable,scrollbars,width=560,height=250"); } function closeWindow() { window.close(); // This is a hack. The only way to close an existing window is to try and open it! var filterWindow = window.open( "/zm.php?view=none", 'zmFilter', 'width=1,height=1' ); filterWindow.close(); } function checkAll(form,name) { for (var i = 0; i < form.elements.length; i++) if (form.elements[i].name.indexOf(name) == 0) form.elements[i].checked = 1; form.delete_btn.disabled = false; } function configureButton(form,name) { var checked = false; for (var i = 0; i < form.elements.length; i++) { if ( form.elements[i].name.indexOf(name) == 0) { if ( form.elements[i].checked ) { checked = true; break; } } } form.delete_btn.disabled = !checked; } window.focus(); You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1

And (another also) when I view the control panel the Function and Source designations remain in orange even after I've set them up.

One more thing (!), the output from zmdc.log is:

'zmc -d 0' stopping at 04/04/06 10:45:49
'zmc -d 0' died at 04/04/06 10:45:49
'zmc -d 0' starting at 04/04/06 10:45:49, pid = 9231
'zmc -d 0' started at 04/04/06 10:45:49
Can't find process with command of 'zma -m 1'

Any help much appreciated.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: No archiving?

Post by zoneminder »

Hi Richard,

It would probably be useful if you could post (or mail me) a couple of screenshots as I'm not entirely clear about what is appearing. If you can get me an imag eof your zone settings, console window and the window with all the JavaScript in it them it should help.

Cheers,

Phil,
ade_br
Posts: 9
Joined: Thu Jan 22, 2004 11:10 pm
Location: Brazil

I confirm this

Post by ade_br »

I have one cam, set as monitor (but tested changing to other types too) and the problem occurs when I click in the "Archive" link inside of the monitor window.

How to reproduce:

install zoneminder 1.19.1
add one cam/monitor
on the console window, click on the monitor name, a new window appears
click on Archive, a new window appears, with the following source:

Code: Select all

<html>
<head>
<title>ZM - Events</title>
<link rel="stylesheet" href="zm_styles.css" type="text/css">
<script language="JavaScript"></script>
function newWindow(Url,Name,Width,Height)
{
   	var Name = window.open(Url,Name,"resizable,scrollbars,width="+Width+",height="+Height);
}
function eventWindow(Url,Name,Width,Height)
{
	var Name = window.open(Url,Name,"resizable,width="+Width+",height="+Height );
}
function filterWindow(Url,Name)
{
	var Name = window.open(Url,Name,"resizable,scrollbars,width=560,height=250");
}
function closeWindow()
{
	window.close();
	// This is a hack. The only way to close an existing window is to try and open it!
	var filterWindow = window.open( "/zm/index.php?view=none", 'zmFilter', 'width=1,height=1' );
	filterWindow.close();
}
function checkAll(form,name)
{
	for (var i = 0; i < form.elements.length; i++)
		if (form.elements[i].name.indexOf(name) == 0)
			form.elements[i].checked = 1;
	form.delete_btn.disabled = false;
}
function configureButton(form,name)
{
	var checked = false;
	for (var i = 0; i < form.elements.length; i++)
	{
		if ( form.elements[i].name.indexOf(name) == 0)
		{
			if ( form.elements[i].checked )
			{
				checked = true;
				break;
			}
		}
	}
	form.delete_btn.disabled = !checked;
}
window.focus();
You have an error in your SQL syntax near ')' at line 1

I hope it's of some help, thanks a lot.

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

Post by zoneminder »

Hi Ademar,

This link takes you to the archive in the same way that the corresponding count on the console window does. However you are right in that it was broken in 1.19.1 but is fixed in 1.19.2 which will be out in a day or two. In the meantime just click on the archive count in the console window to get to your archived events.

Phil,
Locked