mantis working at first instance only until restart apache

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
sameerj
Posts: 7
Joined: 18 Dec 2009, 07:29

mantis working at first instance only until restart apache

Post by sameerj »

I migrate a mantis database on another machine.
mantis version is same at both places - 1.1.8.
but for installing Mantis, i used xampp (bundled apache, php, perl and mysql)

Now when i starting mantis by giving username & password, this first session works fine.
But when i am getting logout or close the window, and thereafter start second session, it won't work. IE showing message "waiting for ----" and it's keep showing for long time. it never comes.

but if i restarted apache server, then it's works fine again for first time.

Another observation is -
1) start Apache server.
2) If user start mantis after 20-25 minutes, he will face same problem. (not getting login page)

Currently i am trying to access from that PC only -- "http://localhost/mantis".

What would be the problem?
Bithunter
Posts: 11
Joined: 24 Aug 2006, 14:27

Re: mantis working at first instance only until restart apache

Post by Bithunter »

Any fix or workaround for this issue? (I´m experimenting the same problem)
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantis working at first instance only until restart apache

Post by atrol »

there is not enough information to give a real good advice,
my speculation: you are using PHP 5.3 , give a try to 5.2.x
Please use Search before posting and read the Manual
Z.I.P.
Posts: 3
Joined: 02 Feb 2010, 10:12

Re: mantis working at first instance only until restart apache

Post by Z.I.P. »

Absolutely the same problem. (using php 5.3.1)

Is downgrading php really helps?
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantis working at first instance only until restart apache

Post by atrol »

at least this
http://www.mantisbt.org/bugs/view.php?id=11255
should be warning enough to use 5.2
Please use Search before posting and read the Manual
Z.I.P.
Posts: 3
Joined: 02 Feb 2010, 10:12

Re: mantis working at first instance only until restart apache

Post by Z.I.P. »

I've downladed the latest version (1.2 rc2) but still the same thing... is php version also actual for mantis 1.2?
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantis working at first instance only until restart apache

Post by atrol »

Looking at the forum and the bugtracker, it seems that there are also problems with 1.2

Until now I am not able to reproduce any of these problems. Not with 1.1.8, not with 1.2 (but always fresh empty installations and not using any email stuff)
I tried with XAMPP 1.7.3 where PHP 5.3.1 is included to have a platform which can be easily setup by developers.

Some more of this PHP 5.3 stuff
http://www.mantisbt.org/bugs/view.php?id=11154

Every detail which is given by users could help to find the bug behind this problem.
Please use Search before posting and read the Manual
Z.I.P.
Posts: 3
Joined: 02 Feb 2010, 10:12

Re: mantis working at first instance only until restart apache

Post by Z.I.P. »

I've installed Mantis 1.2 at two devices -
1) Mac OS X 10.5.8 - XAMPP 1.7.2a - works fine about a month
2) Win 2003 Server - XAMPP 1.7.3 - works fine about 5-20 min after apache restart

If adiitional details will be needed, I'm ready to send them.
sameerj
Posts: 7
Joined: 18 Dec 2009, 07:29

Re: mantis working at first instance only until restart apac

Post by sameerj »

According to tips given in 0011535 by bmencke ,

Commenting following lines in core/authentication_api.php:

396: /*if( $p_method !== null ) {
397: $t_login_method = $p_method;
398: }*/

it seems to be working.

but what is side effect of this
or anybody have different solution other than this?
Post Reply