11
ron-cpw
Re: Who's Online question
  • 2007/3/14 17:39

  • ron-cpw

  • Just popping in

  • Posts: 82

  • Since: 2006/12/19


More update...

Interesting. No clues to a solution yet.
This is the first piece of "weirdness" we have seen in our XOOPS work.

Resized Image

Left panel is our test site
Right panel is the live site (on a different server)

We never see anything in the Module column, like on the test site.

12
ron-cpw
Re: Who's Online question
  • 2007/3/15 11:55

  • ron-cpw

  • Just popping in

  • Posts: 82

  • Since: 2006/12/19


Another update...we may have found a handle to troubleshoot this one...

We looked in the database at table xoops_online

The entries are tracking what we see in the Who's Online block.
The online_uid is correct and the online_uname as well...

...but the online_module appears to always contain all zeros, no matter where people are browsing.

OK, a clue... explains why we don't see any modules listed in the More... pop-up.

Does anyone know where that field, online_module is set and maintained?

13
ron-cpw
Re: Who's Online question
  • 2007/3/15 16:34

  • ron-cpw

  • Just popping in

  • Posts: 82

  • Since: 2006/12/19


Quote:

ron-cpw wrote:

Does anyone know where that field, online_module is set and maintained?


Anyone?

I'm just looking for a pointer (or a shove) in the right direction.

I have a hunch this anomoly may be the result of a tweak to some file we made to make another module work...I am going over my change list now.

I still would like to hunt this one down by troubleshooting, though.

14
BlueStocking
Re: Who's Online question

maybe something you can use will be in this search.
Good Luck ....bs

http://www.google.com/search?client=googlet&q=online_module%20site%3Axoops.org
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

15
ron-cpw
Re: Who's Online question
  • 2007/3/16 13:12

  • ron-cpw

  • Just popping in

  • Posts: 82

  • Since: 2006/12/19


Thanks, BS...a quick look thru the list hasn't helped...but we'll keep reading it.

I ran parallel debugging on both the test site and the live site....doing the same things and watching the queries..

They both track...until the following queries are NOT found on the live site, but are there on the test site:

SELECT COUNT(*) FROM xoops_online WHERE online_uid=1

UPDATE xoops_online SET online_updated
=1174052152online_module 9 WHERE online_uid 1


Those two lines are missing on the live site debug list.
That explains why the online_module is always zero. It never gets the update.
Which script does that update?
How can I trace it down?

Now....what's not getting executed to stop those two lines from appearing??

16
ron-cpw
Re: Who's Online question
  • 2007/3/16 13:43

  • ron-cpw

  • Just popping in

  • Posts: 82

  • Since: 2006/12/19


OK...found it.

/kernel/online.php. lines 68-98

The update is done in line 88.

C'mon, experts... take a look at this and try and help me find a clue why this code doesn't seem to be hit.


17
charpres
Re: Who's Online question
  • 2007/3/16 15:36

  • charpres

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/9/4 2


Don't feel bad about this particular problem.

My Who's Online block has disappeared entirely and after two months I still have not figured out what happened.

It was there successfully for almost 2 years, and then decided it didn't want to be there anymore. No amount of manipulating block settings helps.

I've been following this thread to see if anything dealing with your problem sheds light on mine.

18
BlueStocking
Re: Who's Online question

by ron-cpw on 2007/3/16 7:43:41 - C'mon, experts... take a look at this and try and help me find a clue why this code doesn't seem to be hit.
_________________________________

DISCLAIMER: I have never written a line of 'php code' EVER.
So view my input with the greatest of skepticism! ...BS

_________________________________

CLUE ...
In my programing experience >0 is not the same as =1 in code execution.

Tweeking code and leaving a brace out could cause a routine to fall into the next routine which in this case is a deletion of the information you clam to be missing.

If there had been any jacking with the code I would copy the one known to be working over to the one known not to be working until I found the culprit. (changing filenames of course so I could back out of any mis-steps)

Visual of the orginal code as it exists in my /kernel/online.php
SEE LINK FOR IMAGE:
http://hardhunting.com/images2/onlineclue.jpg << noting the if count greater than zero on line 87 not line 88 (something tweeked?)


87 if ( $count ) {
88            $sql "UPDATE ".$this->db->prefix('online')." SET online_updated=".$time.", online_module = ".$module." WHERE online_uid = ".$uid;


BS
hardhunting.com
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

19
BlueStocking
Re: Who's Online question

I noted you had some writing UNDER THE PICTURES HERE

I blocked and copied to notepad and found the rest of your post.
_______________________________________

Interesting. No clues to a solution yet.
This is the first piece of "weirdness" we have seen in our XOOPS work.



Left panel is our test site
Right panel is the live site (on a different server)

We never
see anything in the Module column, like on the test site.
_______________________________________

That in red was not visible to me in my IE6 browser.
here on this site now. I just decided to to a copy and paste to see if my eyes were deceiving me and low and behold there was text that was not visible to me.

WHAT BROWSER ARE YOU USING.
IS it the SAME as the one you use when you are viewing both of your sister sites.

BS
____________________
DO YOU SEE WHAT I SEE???

Resized Image
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

20
ron-cpw
Re: Who's Online question
  • 2007/3/18 14:17

  • ron-cpw

  • Just popping in

  • Posts: 82

  • Since: 2006/12/19


Quote:

charpres wrote:

I've been following this thread to see if anything dealing with your problem sheds light on mine.


Thanks, charpres. That is one of the reasons it appears that I am talking to myself on this thread ( )... I am trying to chronicle the steps I am using in the effort to solve this problem. Maybe, the process will help someone else solve a similar problem.

The more I debug, the more I am determined to find the root cause of this. In the process, I have found a bit of weirdness with logging in with MSIE vs. Firefox. That may have a clue, but I will put that on the shelf for a bit.

Getting back to the problem, since it appears on one host and not the other... I have to eliminate the server and it's config before I can press on. Maybe it's a PHP config issue, since the working server is running PHP 4.4.1 and the busted one had 4.4.4...also it could be a php.ini setting.

So...hit it with a sledgehammer...

I created a new test database, and installed a clean copy of 2.0.16 in http://www.mybustedsite.com/debug

Set it up plain vanilla, installed one module and tested.

Yup...the Who's Online works fine, as it is supposed to. The Block shows users in a module...and the More.. popup has the third column, showing the module the user is currently in.

S-o-o-...that ELIMINATES the server differences or the PHP version/settings.

The problem must lie in the core of my existing site.

The Who's Online update handler is in /kernel/online.php.
It seems it is "kinda" working, since IP addresses show when an admin is viewing it...but it never updates or shows the module.

Any thoughts?


Login

Who's Online

351 user(s) are online (279 user(s) are browsing Support Forums)


Members: 0


Guests: 351


more...

Donat-O-Meter

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

Latest GitHub Commits