Page 2 of 4
Posted: Wed Sep 07, 2005 9:31 am
by Guest
Did I read somewhere or hear somewhere that one of the differences between PHP4 and PHP5 was the use of POST vs GET?? (I assume POST is used for the admin login?). Could this have any bearing on this issue? Or is this barking up the wrong tree?!
Posted: Wed Sep 07, 2005 8:08 pm
by Klemen
POST and GET are HTTP methods and have nothing to do with PHP being version 4 or 5. All versions of PHP support both methods.
Posted: Sat Sep 24, 2005 12:50 am
by Guest
I get the same problem. The process in which I can actually use it is this.
I have to delete the cookie that is put in by Hesk. Once I delete the cookie then I am to log into the admin section. The problem is that if I close the window and I want to revisit the admin page, I have to delete the cookie again.
Posted: Wed Oct 19, 2005 7:10 pm
by Guest
I get the same problem. The process in which I can actually use it is this.
I have to delete the cookie that is put in by Hesk. Once I delete the cookie then I am to log into the admin section. The problem is that if I close the window and I want to revisit the admin page, I have to delete the cookie again.
Same problem.
Any solutions?
Posted: Wed Oct 19, 2005 8:25 pm
by Dag
Any solutions?
I am back, as a member.
I have found one solution, but WARNING, I am no expert.
Found a line in PHP.INI(in /etc); Session auto start. Changed that from 0 to 1 and everthing works fine.
Don't know what it does, but it works.
Anyone got more info on the effect of this?
Thanks.
Dag from Norway.
Posted: Wed Oct 19, 2005 11:07 pm
by Klemen
This is from the manual:
session.auto_start boolean
session.auto_start specifies whether the session module starts a session automatically on request startup. Defaults to 0 (disabled).
By setting it to 1 all your scripts will start sessions automatically.
session has expired
Posted: Fri Oct 21, 2005 11:37 am
by Jan
Dear Klement,
I want to really thank you for that great SW, but again want to ask if you plan to repair the ssesion eror on PHP5: session has expired
I can´t downgrade my PHP because runing very big intranet apps based on PHP5.
Please could you just give me some hint how to solve the problem with the:
session has expired error witch is just in HESK, in other apps are sessions OK, I also made your Sessions tests and its ok.
many thanks in advance for your help
best regards
Jan
admin@ttesa.cz
Posted: Sat Oct 22, 2005 10:26 am
by Klemen
I'm not even sure what is wrong, I haven't yet made any tests with php5.
Do you have MySQL enabled in your php5 (it isn't by default!)?
quick and dirty fix
Posted: Wed Oct 26, 2005 8:26 pm
by Anthony
For all of you that have this bug, try editing the mysql database. Change the password for the admin account, then log in with that password. This will allow you access to the admin feature. Hope that helps everyone.
By the way, nice script.
Re: quick and dirty fix
Posted: Thu Oct 27, 2005 8:16 am
by Klemen
Anthony wrote:For all of you that have this bug, try editing the mysql database. Change the password for the admin account, then log in with that password.
Hmm, why would that make any difference?
some ideas ?
Posted: Tue Nov 01, 2005 2:59 pm
by Jan
Hi All,
still seems we haven´t any solution ! What about you Klemen ? do you have some ideas how to solve it.
thanks for help
yours
Jan
Posted: Mon Nov 14, 2005 2:03 pm
by max
Hi:
I´ve been trying everything posted here without success.
Is a pitty because it´s a cool software, right what i was looking for but I must make it work on PHP5 because there are more applications in that server that need it.
This are my logs, hope it helps.
Code: Select all
[client 192.168.XX.XX] PHP Notice: Undefined index: a in /var/www/html/hesk/index.php on line 43
[client 192.168.XX.XX] PHP Notice: Undefined index: a in /var/www/html/hesk/admin.php on line 43
[client 192.168.XX.XX] PHP Notice: Undefined variable: hesk_settings in /var/www/html/hesk/inc/header.inc.php on line 35
[client 192.168.XX.XX] PHP Notice: Undefined variable: hesklang in /var/www/html/hesk/inc/header.inc.php on line 36
[client 192.168.XX.XX] PHP Notice: Undefined index: notice in /var/www/html/hesk/admin.php on line 104
[client 192.168.XX.XX] PHP Notice: Undefined index: goto in /var/www/html/hesk/admin.php on line 140
[client 192.168.XX.XX] PHP Notice: Undefined index: goto in /var/www/html/hesk/admin.php on line 78, referer: http://192.168.XX.XX/hesk/admin.php
[client 192.168.XX.XX] PHP Notice: Undefined variable: hesk_settings in /var/www/html/hesk/inc/header.inc.php on line 35, referer: http://192.168.XX.XX/hesk/admin.php
[client 192.168.XX.XX] PHP Notice: Undefined variable: hesklang in /var/www/html/hesk/inc/header.inc.php on line 36, referer: http://192.168.XX.XX/hesk/admin.php
hello
Posted: Fri Nov 18, 2005 2:54 pm
by spataro
Please to meet you. Perhaps a solution, now it works for me.
Thirst of all: i was using an old version of the software, not too much: after some months i discovered someone added a category and changed my password.
I've updated hesk to the last and also to the very last php 4.4.x. Oh, i've also installed italian traslation file.
Now the some problem of session.
I've opened admin.php file, in line 98 there is the session error recognition:
<h3 align="center">Login</h3>
<?php
if ($_REQUEST['notice']) {
echo "<p align=\"center\" class=\"important\">Your session has expired, please login using the form below.</p>";
}
?>
Now, for debug purpouse, i've tried to print out $_request notice:
<h3 align="center">Login</h3>
<?php
if ($_REQUEST['notice']) {
echo $_REQUEST['notice']."<p align=\"center\" class=\"important\">Your session has expired, please login using the form below.</p>";
}
?>
I develop also in php, but i still don't know php as a professional.
The very strange fact is now works.
I'd like to understand, so i made other changes in line 98.
The result ? changing in every way text in line 98 the script works. And now i changed to the previous one, to the original: it works too...
I'm becoming mad.
I can't believe: i login and logout without problems, even with opera and explorer.
I'm on windows.
hello ... n.2
Posted: Fri Nov 18, 2005 2:58 pm
by spataro
I've discovered what happened: i've reinstalled old admin.php , not the latest: Version: 0.93b from July 5, 2005 (patch 0.93.1)
I think this upgrade should patch the unauthorized access i discovered, but it doesn't work.
However solution should be starting from line 98, even in new version.
Posted: Fri Nov 18, 2005 6:10 pm
by Klemen
Printing out $_REQUEST['notice'] doesn't have anything to do with sessions working or not. When testing always download the latest version from
http://www.phpjunkyard.com/free-helpdesk-software.php