Page 3 of 3

Posted: Thu Oct 20, 2005 11:05 pm
by jameswilson
merced does that topic refer to your 205 problem?

Posted: Fri Oct 21, 2005 5:55 am
by sekuz
cordel,
I use XAMPP for Linux 1.4.16
All config this XAMPP is default

I'm sorry. My English language is bad.
:(

Posted: Thu Oct 27, 2005 7:45 am
by lazyleopard
Last night I decided to bite the bullet and allow Gentoo to upgrade mysql from 4.0.25 to 4.1.14. There were a couple of pages to be read carefully (as announced in http://forums.gentoo.org/viewtopic-t-392469.html ), but most of the upgrade went smoothly. However, Gentoo correctly decided that zoneminder needed re-compiling, and the fixes Phil had made vanished. Oops!

I got it working again after a while. This is the patch I've now got applied to zm.php:

Code: Select all

--- web/zm.php.orig     2005-05-17 22:42:13.000000000 +0100
+++ web/zm.php  2005-10-27 07:58:42.000000000 +0100
@@ -20,6 +20,7 @@
 
 error_reporting (E_ALL ^ E_NOTICE);
 import_request_variables( "CGP" );
+session_start();
 
 $debug = false;
 if ( $debug )
@@ -146,7 +147,7 @@
        }
 }
 
-session_start();
+//session_start();
 
 if ( !$_SESSION['format'] )
 {
@@ -156,6 +157,7 @@
        if ( $cookies )
        {
                setcookie( "format", $format );
+               //setcookie( "cookies", $cookies );
        }
 }
 
including evidence of things I tried and then left out.

I needed to clear out my cookie file, obviously. I also found that I had to juggle the authorisation options via SQL, making use of

Code: Select all

update Config set Value=0 where Name like "ZM_OPT_USE_AUTH";
to allow me to flip between "hashed" and "plain" in the web interface without needing a password, and

Code: Select all

update Users set Password = password('xxxxx') where Username = 'admin';
to reset (and, presumably, re-hash) the password. Once I could log in with that ID I was able to reset the passwords for the other IDs via the web interface, and then they could login too.

Posted: Fri Oct 28, 2005 11:52 am
by merced
jameswilson wrote:merced does that topic refer to your 205 problem?
That topic is what I was trying to point you to for my latest problem.

Posted: Tue Nov 15, 2005 3:00 pm
by donatmote
FYI,

I'm running Debian/Testing amd64. Recently php4.4 moved from unstable to testing and I
upgraded. I lost the ability to login. I upgraded zm to 1.21.4, but it didn't help. I noticed that the "official fix" was in 1.21.4. Merced's fix (moving session_start) got my login back.

Also I had to include my url hack in zm_funcs.php -- Without it I didn't get images in the monitor window. I just copied zmconfig.txt to the new source directory, so iif zmconfig.pl has been changed to accept a trailing '/' I lissed it.

As well, to get 1.21.4 to build,I had to add the following to the LIBS line in the Makefiles:

-ldts -ldc1394_control -lvorbisfile -logg -lgsm -ltheora -lvorbisenc

Thanks.

Don

Posted: Wed Nov 16, 2005 12:06 am
by zoneminder
Thanks Don for passing this on. I assume you are using Theora streaming somewhere?

Am I correct in understanding that you are still having login problems even after the upgrade? If so then perhaps there is more than one issue as the php 4.4 systems I looked at were all fixed by the 1.21.4 change.

Can you remind me what the url hack was?

Phil

Fixed it for Gentoo

Posted: Fri Apr 21, 2006 2:55 pm
by bsteinebach
I have two installations of Gentoo, one with the login problem.
So i looked at the use flags and a new emerge of PHP5 solved my problem.

I emerged PHP5 with USE="curl gmp xpm" and that did the trick for me.
But i don't know exactly which of the three flags did the trick...

Hope this would help.