Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.4.x
Author Message
hireamerica
Client



Joined: Sep 30, 2004
Posts: 103
Location: New Jersey

PostPosted: Fri Aug 12, 2005 7:59 am Reply with quote

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!!! Smile
 
View user's profile Send private message Visit poster's website Yahoo Messenger
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Aug 12, 2005 3:02 pm Reply with quote

I'm getting ready to apply 2.4 so I'll let you know what I find. Thanks.
 
View user's profile Send private message
Raven







PostPosted: Sat Aug 13, 2005 9:34 pm Reply with quote

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







PostPosted: Mon Aug 15, 2005 7:51 am Reply with quote

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







PostPosted: Mon Aug 15, 2005 7:55 am Reply with quote

Nope. Have you deleted your cookies and flushed your cache?
 
hireamerica







PostPosted: Mon Aug 15, 2005 8:01 am Reply with quote

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







PostPosted: Tue Aug 16, 2005 9:41 am Reply with quote

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







PostPosted: Tue Aug 16, 2005 10:32 am Reply with quote

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







PostPosted: Tue Aug 16, 2005 10:37 am Reply with quote

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







PostPosted: Tue Aug 16, 2005 10:38 am Reply with quote

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







PostPosted: Tue Aug 16, 2005 10:42 am Reply with quote

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







PostPosted: Tue Aug 16, 2005 1:37 pm Reply with quote

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?
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.4.x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©