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

  • ron-cpw

  • Just popping in

  • Posts: 82

  • Since: 2006/12/19


Oh...and another thing I just had to eliminate was the Errors that appeared in the Debug mode when you invoked the More... popup.

There was always 4 Errors:

Quote:
Notice: Only variables should be assigned by reference in file /misc.php line 177
Notice: Only variables should be assigned by reference in file /misc.php line 182
Notice: Only variables should be assigned by reference in file /kernel/module.php line 542
Notice: Only variables should be assigned by reference in file /misc.php line 185


Well...these are not really Errors it seems...but 'advisories' that there is a sloppy character in those lines that give this version of PHP some gas.

Each line has a rogue ampersand...when you delete that character, the Error is no longer logged.

e.g.
file /misc.php line 177
$online_total =& $online_handler->getCount();


Zap the ampersand after the EQUALS sign, and the error departs.
$online_total $online_handler->getCount();


Doesn't help my problem, but eliminates the clutter of bogus errors... I would guess one could clean up all the files that yield that error throughout the site to slim down the Debug listings.



12
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 inhttp://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?




13
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.




14
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??



15
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.



16
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?



17
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.



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

  • ron-cpw

  • Just popping in

  • Posts: 82

  • Since: 2006/12/19


Update...

Well, now...this is going to be a needle in a haystack, I fear.

I have a sister site, for testing...same theme, most of the same modules...but on a different host.

That one...shows the expected 2-column list when invoking "More" from the Who's Online Block... showing all the Guests as anonymous and what module they are playing in...when viewed as a Webmaster, you see the IP as well.

Back on the site in question...no matter what...it is only one column, with the names or IPs...no second column for module activity.

Since the "common difference" is 2 different servers....could it be a php.ini setting? I hate to have to do (another) side by side...I fought that one for the SMF Bridge.

Can someone far more learned that me take a quick look at misc.php (2.0.16) and see if there is anything obvious that should be checked in php.ini on the site's server?



19
ron-cpw
Re: Who's Online question
  • 2007/3/13 2:25

  • ron-cpw

  • Just popping in

  • Posts: 82

  • Since: 2006/12/19


Thanks... I do see the Guest IPs when logged in as webmaster, but, even resizing the popup, I only see the IP...not where they are.



20
ron-cpw
Re: Who's Online question
  • 2007/3/13 1:55

  • ron-cpw

  • Just popping in

  • Posts: 82

  • Since: 2006/12/19


Thanks... when I click on "More" of Who's Online on your site...there are two columns...

on my site...there is only one.

I'm going to feel real dumb if it just a setting...but I can't see where you would specify any options for Who's Online.




TopTop
« 1 (2) 3 4 5 ... 9 »



Login

Who's Online

87 user(s) are online (64 user(s) are browsing Support Forums)


Members: 0


Guests: 87


more...

Donat-O-Meter

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

Latest GitHub Commits