Support » Plugin: WP-UserOnline » WP-UserOnline only shows one user online

  • J Daubman

    (@livenewsfeeds)



    Hello.

    I’m using the WP-UserOnline on all my sites on Bluehost. It was working fine up until just recently. Now it’s only showing one user online. The strange thing is that the IP address given for that user is the Bluehost server’s IP address.

    Any ideas why that is?

    Thanks

    • This topic was modified 1 year, 2 months ago by  J Daubman.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Lester Chan

    (@gamerz)

    It is working fine for me Total 29 users including 1 member, 28 guests, 0 bot online

    J Daubman

    (@livenewsfeeds)

    Oh, sorry. I disable the WP-UserOnline plugin, and am using another plugin on https://www.atnnow.com/.

    What I got with the WP-UserOnline plugin is here:

    http://atnnow.com/lnf/users-online/

    As you can see, the IP address for the 1 Member Online Now points to Bluehost, and not my IP address, like it should. All my sites hosted on Bluehost have the same problem.

    • This reply was modified 1 year, 2 months ago by  J Daubman.
    • This reply was modified 1 year, 2 months ago by  J Daubman.
    Plugin Author Lester Chan

    (@gamerz)

    Hmm indeed. I can’t really figure out as well. I can’t reproduce the problem on my site.

    The plugin hooks onto wp_head to insert the records. So unless your theme is missing the hook, it will not record.

    As to BH issue, it is definitely a host issue. I am using this at the top of my wp-config.php to fix IP issues.

    
    function get_ip() {
    	foreach ( array( 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR' ) as $key ) {
    		if ( array_key_exists( $key, $_SERVER ) === true ) {
    			foreach ( explode( ',', $_SERVER[ $key ] ) as $ip ) {
    				$ip = trim( $ip );
    				if ( filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE ) !== false ) {
    					return $ip;
    				}
    			}
    		}
    	}
    
    	return '';
    }
    $_SERVER['REMOTE_ADDR'] = get_ip();
    
    • This reply was modified 1 year, 2 months ago by  Lester Chan.
    J Daubman

    (@livenewsfeeds)

    I tried adding the code to the wp-config file. I still have the IP address problem.

    My theme has the wp_head hook:

    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta http-equiv=”X-UA-Compatible” content=”IE=edge” />
    <link rel=”profile” href=”http://gmpg.org/xfn/11″>
    <?php wp_head(); ?>
    </head>

    J Daubman

    (@livenewsfeeds)

    Back to square one again.

    J Daubman

    (@livenewsfeeds)

    BTW, I really love your plugin. I like how it’s right there under the Dashboard. It’s also nice to see where in the world your visitors are coming from. It’s very useful to check just how many users come online when you tweet a post.

    • This reply was modified 1 year, 2 months ago by  J Daubman.
    J Daubman

    (@livenewsfeeds)

    Do you see any problems here?

    Memory: 46.75 of 256 MB (18%) | WP LIMIT: 40 MB | IP 162.144.141.141 (server.atnnow.com) | PHP 5.4.45 @64BitOS

    Plugin Author Lester Chan

    (@gamerz)

    Weird I wonder is it the IP problem that is causing it. Hmm $_SERVER['REMOTE_ADDR'] will get the remote IP so unless BH mask it or something. I am not sure since I don’t use BH myself.

    Sorry man, I can’t think of anything else.

    J Daubman

    (@livenewsfeeds)

    BH wasn’t much help on chat. Baffling to them as well. It’s got to be their fault, as your plugin works fine on another site I have which is hosted by Mochahost.

    Thanks for the old college try!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WP-UserOnline only shows one user online’ is closed to new replies.