Page 1 of 1

ZM v1.21.4, problems after login.

Posted: Mon Nov 21, 2005 2:52 am
by julianopillati
Hello, this version v1.21.4 I have somes problems:
First with mysql, in one insert need more filds, I change for this :
insert into Users VALUES ('','admin',password('admin'),'',1,'View','Edit','Edit','Edit','Edit','','');
This works fine.

Next is ffmpeg, then I get from cvs and work ok.

Next I have problem for login, I try admin/admin and not work, then I remove php5 and instal php4.4 and now I can login :-)

But after I login i have many problems as always show window "Please Donate", any choice about donate, this windows not stop.
Tile in in the webpage is ZM_WEB_TITLE_PREFIX... I have this message in main page : Warning: Division by zero in /var/www/svd/zm_html_view_console.php on line 118

This message in options : Warning: Invalid argument supplied for foreach() in /var/www/svd/zm_html_view_options.php on line 222

And I have other errors too, I go paste urls for images ok.
I cannot start system too becouse I have error, when clic in "Stopped" for start system not work, when I press Apply for start ZM, then "Donate" window show, but ZM not start.
I try too (for test) do chmod 777 -R * in all files(php, html, etc) in web dir installed and yet I have that errors.

My system is ubuntu 5.10 with apache2, mysql4.0, php4.4

My install use this configuration and work ok(without errors in install):
./configure --with-mysql=/usr/include/mysql/ --with-webdir=/var/www/svd/ --with-cgidir=/usr/lib/cgi-bin/ --with-webuser=www-data --with-webgroup=www-data --with-ffmpeg=/usr/local/ --with-lame=/usr/include/lame/
perl zmconfig.pl
mysql mysql < db/zmschema.sql -u root -p
perl ./zmconfig.pl -noi
make
make install

This are two images with errors:
http://www.jp.gegnet.com.br/tmp/zm/zm1.jpeg
http://www.jp.gegnet.com.br/tmp/zm/zm2.jpeg

Juliano

Posted: Mon Nov 21, 2005 12:20 pm
by zoneminder
This looks to me like some of the configuration has not been substituted in the database.If this a source build or from a cd or rpm? Trying running zmconfig.pl -noi again.

Phil

Posted: Thu Nov 24, 2005 6:58 pm
by jl9816
zoneminder wrote:This looks to me like some of the configuration has not been substituted in the database.If this a source build or from a cd or rpm? Trying running zmconfig.pl -noi again.

Phil
samt thing here....


Built from http://www2.zoneminder.com/downloads/zm-1.21.4.tar.gz

thist works.

Code: Select all

insert into Users values ('','admin',password('admin'),'En_us',1,'View','Edit','Edit','Edit','Edit','1','1');

Posted: Thu Nov 24, 2005 9:19 pm
by cordel
the patchs for this are here;
http://www.zoneminder.com/forums/viewtopic.php?t=5211

Regards,
Cordel

Posted: Fri Nov 25, 2005 3:24 pm
by zoneminder
I have updated this SQL in the 1.21.4 distro now as well. I didn't realise it was still in there.

One thing I would add is that you should use

Code: Select all

insert into Users values ('','admin',password('admin'),'En_us',1,'View','Edit','Edit','Edit','Edit','','');
rather than the one posted just above as that may prevent you from vewing anything except monitor 1!

Phil