All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: IP address not showing up, please help.  (Read 9247 times)

0 Members and 1 Guest are viewing this topic.

Offline LCD-NYC

  • Newbie
  • *
  • Posts: 8
    • View Profile
IP address not showing up, please help.
« on: 05 July 2008, 07:02 »
The ip address is not displaying on the useronline page or in the admin / dashboard area. Even when i'm logged in as the admin. Not even the open & close parenthesis that suppose to show around the ip address.

I've installed the WP-Useronline plugin on several Wordpress sites I've built.
The IP address appears on some of the sites, but don't on most.

I'm certain someone else must have experienced this same problem.
Hopefully someone has the solution to this problem.
Thanks in advance for any help.


Here are my settings:
    * Linux shared hosting on Godaddy.com
    * WordPress Version 2.5.1
    * Using WP-Useronline version 2.30
    * PHP version 4.3.11
    * MYSQL Version 5.0.45-log

Offline LCD-NYC

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: IP address not showing up, please help.
« Reply #1 on: 06 July 2008, 08:25 »
I got the "Ozh's IP To Nation" plugin installed properly, as well as the ip2nation sql file in my database, and I can see the flags on the User Online page.

BUT, I still can't see the users IP address.
Can a Admin or Tech please tell me what's a common reason for this, and possibly a common solution to it?

Offline LCD-NYC

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: IP address not showing up, please help.
« Reply #2 on: 06 July 2008, 10:52 »
I tried a variety of different things, till i finally created another Administrator user, and logged in as the new member, and I Can see the ip addresses.

BUT,  I still can't see the ip addresses when i'm logged in with my main default Administrator username "admin". I created all my posts with my default "admin" username. Why is it not allowing me to see the ip addresses with the main "admin" username??

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: IP address not showing up, please help.
« Reply #3 on: 06 July 2008, 16:14 »
that is weird, I can't reproduce your problem on my end. It maybe an IP issue

Open up wp-useronline.php

Find:
Code: [Select]
if($user_level == 10 && ($ip != 'unknown') && $ip == long2ip($ip2long) && $ip2long !== false) {Replace:
Code: [Select]
if($user_level == 10) {
See if it works.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline LCD-NYC

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: IP address not showing up, please help.
« Reply #4 on: 06 July 2008, 20:51 »
that is weird, I can't reproduce your problem on my end. It maybe an IP issue

Open up wp-useronline.php

Find:
Code: [Select]
if($user_level == 10 && ($ip != 'unknown') && $ip == long2ip($ip2long) && $ip2long !== false) {Replace:
Code: [Select]
if($user_level == 10) {
See if it works.


I tried that already, and it didn't do anything.. I search throughout this forum for all possible answers. I tried that suggestion, and other suggestions you and the tech guy placed in other posts like here: http://forums.lesterchan.net/index.php/topic,572.0.html , NONE worked. « Reply #8: 02 May 2007, 09:41 » on that page, worked slightly, but showed the IP address to EVERYONE who visited the blog. Not good at all. So, none of the choices worked.

My only solution was to create a new administrator, just to see the ip addresses. This problem happened as soon as the wp 2.5 version came out. It wasn't there in previous versions.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: IP address not showing up, please help.
« Reply #5 on: 07 July 2008, 04:43 »
I upgrade 2 of my live blog to 2.5, no problems with it. Is your prefix wp_ for your database?

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline LCD-NYC

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: IP address not showing up, please help.
« Reply #6 on: 07 July 2008, 05:24 »
I upgrade 2 of my live blog to 2.5, no problems with it. Is your prefix wp_ for your database?


Yeah, i didn't do anything special. I always leave stuff like that at it's default state.
When I upgraded one of my blogs when 2.5 came out, I don't recall having a problem with it. But when I installed a Fresh Install of 2.5 for some additional blog sites i developed, it did.

For some reason, in some fresh installs there's a problem with the ip not displaying, and some there isn't, even when the server settings is exactly the same.

I've discovered that whenever there is a problem with the ip not displaying is when i'm logged in with the original "admin" username. When i'm logged in with a new username with the role of administrator, I see the ip fine.


Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,294
    • View Profile
Re: IP address not showing up, please help.
« Reply #7 on: 07 July 2008, 06:13 »
Odd... I am having no problems on my 2.5 site...
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline rouge

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: IP address not showing up, please help.
« Reply #8 on: 22 July 2008, 19:29 »
Hi

I'm using your Plugin on my side. It works great and I'm realy happy to have it. So thank you for your great work. I was just wondering how I can hide the IPs of the visitors, like you did it on your demo page.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: IP address not showing up, please help.
« Reply #9 on: 22 July 2008, 19:39 »
It should be hidden if you are not logged in as admin.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline rouge

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: IP address not showing up, please help.
« Reply #10 on: 23 July 2008, 07:19 »
You're absolutely right. Great, didn't think at this, thnx!

Offline kush

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: IP address not showing up, please help.
« Reply #11 on: 22 March 2009, 02:17 »
Hey lester and everyone, i tried these solutions, but the one that works displays ip address for everyone, not just me (admin) the other solutions didnt work, im using wordpress 2.7.1 and wp-useronline 2.40, thanks

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: IP address not showing up, please help.
« Reply #12 on: 22 March 2009, 03:49 »
That impossible if you try the solution in this thread, it will check if the logged in user has a user_level of 10 first before showing the IP. Try on another computer.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline kush

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: IP address not showing up, please help.
« Reply #13 on: 22 March 2009, 04:02 »
Hey lester, it tried it agian, not working, but if you said user level 10 then it should work, maybe my username is not registering as 10? how can i check? thanks for the quick reply!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: IP address not showing up, please help.
« Reply #14 on: 22 March 2009, 04:14 »
No, if you are not level 10 it will not show the IP. Level 10 is for the username "admin".

I just tested again on my live site with login using FF and it SHOWS the IP. If I use IE8 and I DID NOT login, it DID NOT show the IP. You might want to try it on your local host or live server.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline kush

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: IP address not showing up, please help.
« Reply #15 on: 29 March 2009, 19:31 »
hey lester as promised i figured it out! w00t w00t! first i figured out why it was displaying it for a new admin account and not the default one.

1. I created another admin account.
2. Looked at the user id
3. searched for User_level in phpmyadmin and found it in the "blogusermeta" table.
4.It only had the user id of the new admin account, so i removed it and input my original user id for my admin account, and it worked.
user_id      bigint(20).
Not sure if this is a wordpress bug, or a bug in your plugin could you help me confirm this? because if its a wordpress bug we should report it. thanks!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: IP address not showing up, please help.
« Reply #16 on: 30 March 2009, 01:13 »
Can you reproduce this on a fresh copy of wordpress with just wp-stats? Because by right your wp_usermeta should contain info of all your users.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline kush

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: IP address not showing up, please help.
« Reply #17 on: 30 March 2009, 01:50 »
all my user data was there, but the user level was not set for the admin account, some other users have had this problem, ill check it out on a test install and let you know. i feel great that i figured that out lol!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: IP address not showing up, please help.
« Reply #18 on: 30 March 2009, 03:34 »
Thanks, I also finally learn something lol

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline ryan11

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: IP address not showing up, please help.
« Reply #19 on: 14 May 2009, 18:55 »
hey lester as promised i figured it out! w00t w00t! first i figured out why it was displaying it for a new admin account and not the default one.

1. I created another admin account.
2. Looked at the user id
3. searched for User_level in phpmyadmin and found it in the "blogusermeta" table.
4.It only had the user id of the new admin account, so i removed it and input my original user id for my admin account, and it worked.
user_id      bigint(20).
Not sure if this is a wordpress bug, or a bug in your plugin could you help me confirm this? because if its a wordpress bug we should report it. thanks!


i faced the same problem too and yr soultion work prefectly~

also, thanks for the autor of this great plugin