1
DobePhat
User/ checklogin?? some direction please
  • 2003/10/30 14:21

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


I have narrowed my problem down to user.php, checklogin.php
and maybe main.php. (or even common)

My problem has to with logging in to my site. When viewing news or fourm topic it kixs yoou back to the index page of that section.

Can someone point me to the files that are relevant to this behavior? Particulary in 2.0.5....Because since I did the patch , maybe the addidtion of another updated file may help?

Thanks!
-Peace

2
onokazu
Re: User/ checklogin?? some direction please
  • 2003/10/30 15:17

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


In include/checklogin.php, find the following code around line 76

if (!empty($HTTP_POST_VARS['xoops_redirect']) && !strpos($HTTP_POST_VARS['xoops_redirect'], 'register')) {

then just above the code, add the following lines

var_dump(!empty($HTTP_POST_VARS['xoops_redirect']));
var_dump(!strpos($HTTP_POST_VARS['xoops_redirect'], 'register'));
exit();

let me know what you get when logging in after making this change


3
DobePhat
Re: User/ checklogin?? some direction please
  • 2003/10/30 16:01

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


ah ha,
I think that will work as It looks familiar to something I did on my previous version. Thank you. Unfortunately I wont be able to access my server till this evening (lol, or uh...hours from now depending on where everyone is)

I will try this out,
And report back then. Thanks!

4
DobePhat
Re: User/ checklogin?? some direction please
  • 2003/10/30 23:52

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


Ooops thought this was a fix

upon login while reading forum topic and after inserting code...

bool(true) bool(true)

Hmmmmmm
Getting close-

5
onokazu
Re: User/ checklogin?? some direction please
  • 2003/10/31 4:26

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Ok, you can remove the added lines now. Then right after $parsed = parse_url(XOOPS_URL);, add the following line

var_dump($parsed);var_dump($HTTP_POST_VARS['xoops_redirect']);

and try to login from a page other than XOOPS_URL/index.php.

6
DobePhat
Re: User/ checklogin?? some direction please
  • 2003/10/31 4:51

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


Hmmm
Something at the very top of the page...too fast for me to see, still, then error redirect...
Ill Try and Catch it...

OK Here it is...

array(2) { ["scheme"]=> string(4) "http" ["host"]=> string(19) "myy.url.com } string(28) "/modules/newbb/viewtopic.php"

7
onokazu
Re: User/ checklogin?? some direction please
  • 2003/10/31 9:17

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Seems like everything is working fine, all data are returned as they should. Try reuploading /include/functions.php in the latest package and then see if that fixes the problem.

8
DobePhat
Re: User/ checklogin?? some direction please
  • 2003/10/31 15:02

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


dang, dare I call it a bug?

perhaps PHP?

Hmmmmmmmm, @#$!


Thanks anyways!

9
DobePhat
Re: User/ checklogin?? some direction please
  • 2003/10/31 22:30

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


OK Im debating whether or not to cpy over some code from my old checklogin.php...because the code...right in the area where we have isolated is slightly different in that version (around line 78ish)
anyone else have any ideas?
Am i the only one with this problem?
If so the only thing I can guess is something on my server? We did recentyl move servers...but that was practically a "clone" process and everything else works fine...
Thanks all!

NOTE: This problem solved for me...
see this thread

Login

Who's Online

138 user(s) are online (63 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits