Author |
Message |
hireamerica
Client

Joined: Sep 30, 2004
Posts: 103
Location: New Jersey
|
Posted:
Fri Aug 12, 2005 7:59 am |
|
Not sure if this is Sentinel issue or block issue -- though curiously I couldn't get to page 2 or 3 of the downloads (blocks)...form keeps refreshing the first page. anywho...
After I upped 2.3.2 to 2.4.0, my block-info does one weird thing:
I'm logged in as a registered user, but my "online now" section is empty. My "people online" is one shy (me, I'm missing). But I have my welcome, my IP, and I'm going to member's only modules, etc.
If I log out (so it's welcome Anoymous), my username is put into the "online now" and factored into "people online".
If I then log in, it's back to good: Welcome my name, my IP, I can go where I want, and I'm shown in "online now".
This has been happening "DIRECTLY" after the 2.4.0 upgrade.
Note: I went over all the changes to core programs (e.g., mainfile.php) with a fine tooth comb...and no other issues have reared (thought nsnst.php did squat when I chose 2.3.2 to 2.4.0) --> blank page. I did the sql by hand in phpMyAdmin.
Thanks and good job on Sentinel, btw!!!  |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Aug 12, 2005 3:02 pm |
|
I'm getting ready to apply 2.4 so I'll let you know what I find. Thanks. |
|
|
|
 |
Raven

|
Posted:
Sat Aug 13, 2005 9:34 pm |
|
I have upgraded and I don't have any problems like you describe. Are you using the latest release of my User Info block? |
|
|
|
 |
hireamerica

|
Posted:
Mon Aug 15, 2005 7:51 am |
|
Raven,
Yep...latest release for sure... and it worked like a charm before I went Sentinel 2.3.2 to 2.4.0.
It really centers around the Online Now section and I'm guessing use of cookies (did the major update to mainfile.php in the first few lines for sentinel touch cookies?) |
|
|
|
 |
Raven

|
Posted:
Mon Aug 15, 2005 7:55 am |
|
Nope. Have you deleted your cookies and flushed your cache? |
|
|
|
 |
hireamerica

|
Posted:
Mon Aug 15, 2005 8:01 am |
|
Well that seemed to do the trick...I guess it's something we all should do once in awhile so old cookies don't lead to issues!
"That's the way the cookie crumbles!" <--- had to!!! |
|
|
|
 |
hireamerica

|
Posted:
Tue Aug 16, 2005 9:41 am |
|
Hmm...works once in awhile...I mean it worked and then next brower close, login, I have the same issues.
Raven: issue on your site: I see use .html most pages, and when I go to downloads, I can choose Page 2, Page 3, but while the URL changes, the content doesn't. So I can't get your latest block to test around... |
|
|
|
 |
hireamerica

|
Posted:
Tue Aug 16, 2005 10:32 am |
|
Well, at best I can see this:
nuke_session:
While module your_account has:
Code: if (extension_loaded("gd") AND $code != $gfx_check AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {
Header("Location: modules.php?name=$module_name&stop=1");
die();
} else {
docookie($setinfo[user_id], $username, $new_pass, $setinfo[storynum], $setinfo[umode], $setinfo[uorder], $setinfo[thold], $setinfo[noscore], $setinfo[ublockon], $setinfo[theme], $setinfo[commentmax]);
$uname = $_SERVER["REMOTE_ADDR"];
$db->sql_query("DELETE FROM ".$prefix."_session WHERE uname='$uname' AND guest='1'");
$db->sql_query("UPDATE ".$prefix."_users SET last_ip='$uname' WHERE username='$username'");
}
|
and my $gfx_check is 0 (from config.php) it should be deleting from nuke_session upon login...
1) logging in doesn't chane nuke_session from IP to username and guest from 1 to 0. I expected "change" meaning delete and then re-insert.
User info block says "welcome marcevan".
2) Logging out simply adds my "marcevan" to nuke_sessions as "0" guest and doesn't delete the IP based guest record for me.
User info block says "welcome Anonymous" even though now nuke_session has my logged in info and my guest info.
Almost like things are off by a step each time.... |
|
|
|
 |
Raven

|
Posted:
Tue Aug 16, 2005 10:37 am |
|
hireamerica wrote: | Hmm...works once in awhile...I mean it worked and then next brower close, login, I have the same issues.
Raven: issue on your site: I see use .html most pages, and when I go to downloads, I can choose Page 2, Page 3, but while the URL changes, the content doesn't. So I can't get your latest block to test around... | I pulled the GT rules so the pages should work. |
|
|
|
 |
Raven

|
Posted:
Tue Aug 16, 2005 10:38 am |
|
hireamerica wrote: | Well, at best I can see this:
nuke_session:
While module your_account has:
Code: if (extension_loaded("gd") AND $code != $gfx_check AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {
Header("Location: modules.php?name=$module_name&stop=1");
die();
} else {
docookie($setinfo[user_id], $username, $new_pass, $setinfo[storynum], $setinfo[umode], $setinfo[uorder], $setinfo[thold], $setinfo[noscore], $setinfo[ublockon], $setinfo[theme], $setinfo[commentmax]);
$uname = $_SERVER["REMOTE_ADDR"];
$db->sql_query("DELETE FROM ".$prefix."_session WHERE uname='$uname' AND guest='1'");
$db->sql_query("UPDATE ".$prefix."_users SET last_ip='$uname' WHERE username='$username'");
}
|
and my $gfx_check is 0 (from config.php) it should be deleting from nuke_session upon login...
1) logging in doesn't chane nuke_session from IP to username and guest from 1 to 0. I expected "change" meaning delete and then re-insert.
User info block says "welcome marcevan".
2) Logging out simply adds my "marcevan" to nuke_sessions as "0" guest and doesn't delete the IP based guest record for me.
User info block says "welcome Anonymous" even though now nuke_session has my logged in info and my guest info.
Almost like things are off by a step each time.... | It's a refresh issue and is not unique to that block, but to all blocks on the left side. Click Home and you should see everything refreshed. |
|
|
|
 |
hireamerica

|
Posted:
Tue Aug 16, 2005 10:42 am |
|
doesn't do it.
my block for user info is on the right side, btw.
When I click login it shows my main your_account screen... I checked nuke_sessions: only the time changed. Still has my IP as uname and not my username.
I then click "home" and that doesn't change anything...neither does page refresh.
Even if I manually change nuke_sessions to username and set guest to 0, it adds another row with my same IP as guest = 1. |
|
|
|
 |
hireamerica

|
Posted:
Tue Aug 16, 2005 1:37 pm |
|
Yeah, I just keep checking:
function online() in mainfile.php...
Code:$uname = $cookie[1];
|
If I run an echo of $uname it's null....thus it gets an IP address.
But when I login I see that index.php in module Your_Account does a cookie (and I check and see a cookie in my cookies file).
So, that's what's going on...$cookie is always null when a refresh happens and mainfile takes over the online() function. So if I'm logged in with my username, and extra row is build in nuke_session with the IP address.
Question now is: when/where is online() called and where is $cookie getting dropped? |
|
|
|
 |
|