WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-UserOnline] WP useronline 2.7.2 (51 posts)

  1. scribu
    Member
    Posted 4 years ago #

    I think I found the problem (it was an SQL error). Please try out this version:

    http://downloads.wordpress.org/plugin/wp-useronline.2.73-beta.zip

    (remember to deactivate and then reactivate)

  2. infected
    Member
    Posted 4 years ago #

    Yeah! Seems to work for me. 3 users online, no php errors or other warnings.

    But 1 question. Where the middle line, telling me again the number of online users is coming from? How can i remove it? Screenshot

  3. scribu
    Member
    Posted 4 years ago #

    The middle line should show something like this:

    admin, 2 guests

    You can control what is diplayed there by going to Settings -> UserOnline

    and modifying the "User(s) Browsing Site:" template.

  4. infected
    Member
    Posted 4 years ago #

    Okay, but i left all template fields blank except the first one. Why is it displayed then?

    But in the meantime i could figure out, which file is responsible for its output. It´s the admin.php in line 33-34. I commented those two lines out.

  5. evilpixy
    Member
    Posted 4 years ago #

    It works for me now!

    Quick problemsolving.

    Thanks Scibu

  6. Tecno
    Member
    Posted 4 years ago #

    Seems to work
    no problems to report!

  7. beardedgit
    Member
    Posted 4 years ago #

    2.73-beta works for me too, so many thanks for that, scribu.

    Is there a way for me to manually "kick-start" the values for %MOSTONLINE_COUNT% and %MOSTONLINE_DATE% so that I can get back to what I had before?

  8. Yuki_Keylin
    Member
    Posted 4 years ago #

    2.73-beta works, but there is still the %MOSTONLINE_DATE% problem showing the current time.

    On a second website I've seen the date problem already with the older version 2.70. And I'm sure a few days ago it was working correctly. Maybe some other plugin did the mess?

  9. Yuki_Keylin
    Member
    Posted 4 years ago #

    Now it works again. The output of %MOSTONLINE_DATE% shows the correct time. But the counter restarts with zero and your old most users online are deleted.

    Try this:

    1. Deactivate the plugin on the plugin page .../wp-admin/plugins.php
    2. Delete it there, too (with all data)
    3. Download and unzip the 2.73-beta version
    4. Upload it on your ftp-server (in the plugin folder, of course)
    5. Activate the plugin on the plugin page .../wp-admin/plugins.php
    6. Check the options and save the widget if using

    For example now it shows:

    11, on 11.05.2010 @ 03:53:19 (see it on my site)

  10. scribu
    Member
    Posted 4 years ago #

    I've found the problem with the dates too. Stable version is now 2.73.

    Thanks everyone for testing.

  11. Tecno
    Member
    Posted 4 years ago #

    Thanks you!
    you're really good!

    Grazie a te Scribu!

  12. Yuki_Keylin
    Member
    Posted 4 years ago #

    @scribu: Do you know what was causing the problem? Updating now from 2.73-beta to 2.73 won't cause any problems with its changes, will it?

  13. scribu
    Member
    Posted 4 years ago #

    I was using a MySQL formatted date instead of a timestamp. Now it's converted when you activate the plugin, so there shouldn't be any problems.

  14. dikkevandale
    Member
    Posted 4 years ago #

    I just updated to 2.73 but the variable %MOSTONLINE_DATE% shows the current time. How can I fix this?? I don't want to lose the record of most users online...

  15. Large Purse
    Member
    Posted 4 years ago #

    Hi Scribu and members

    Has anyone upgraded to wordpress version 3.0 yet?

    And is WP-UserOnline 2.73 compatible with 3.0?

    I have upgraded to wordpress version 3.0, but not just game to activate 2.7.3? I am still using 2.50 successfully

    Many thanks

    Kind regards

    John
    http://www.australian-real-estate.net.au/investing/

  16. Yuki_Keylin
    Member
    Posted 4 years ago #

    Hi johntaps

    Yes, on my blog it works. Version 2.73 of plugin and wordpress 3.0 installed!

    Look there: http://www.yuki-keylin.de/special/useronline/

  17. momrach
    Member
    Posted 3 years ago #

    Hi Scribu and members

    Version 2.73 didn't count users (0 users always) on my system, PHP 5.2.12 and MySQL 5.1.42-community.

    What I did to solve it was to create manually the table and reactivate the plugin. Table columns were taken from the plugin code, but I had to remove the " default '' " clause on the TEXT columns.

    Here's the code I've use to create the table, now it works fine.
    Thank You

    CREATE TABLE IF NOT EXISTS wp_useronline (
    timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    user_type varchar(20) NOT NULL default 'guest',
    user_id bigint(20) NOT NULL default 0,
    user_name varchar(250) NOT NULL default '',
    user_ip varchar(20) NOT NULL default '',
    user_agent text NOT NULL ,
    page_title text NOT NULL ,
    page_url varchar(255) NOT NULL default '',
    referral varchar(255) NOT NULL default '',
    UNIQUE KEY useronline_id (timestamp, user_type, user_ip)
    )ENGINE=InnoDB DEFAULT CHARSET=utf8;

  18. scribu
    Member
    Posted 3 years ago #

    Hi momrach,

    What I did to solve it was to create manually the table and reactivate the plugin. Table columns were taken from the plugin code, but I had to remove the " default '' " clause on the TEXT columns.

    What error were you getting before removing default ''? What version of MySQL is installed on your server?

  19. scribu
    Member
    Posted 3 years ago #

    Oups, just saw the version number; nevermind. But I'm still curious about the error.

  20. momrach
    Member
    Posted 3 years ago #

    Hi scribu

    Then I get the error:
    #1101 - BLOB/TEXT column 'user_agent' can't have a default value
    for every TEXT column

    Thanks

  21. scribu
    Member
    Posted 3 years ago #

    I've made the change in the dev version. Thanks for the feedback.

Topic Closed

This topic has been closed to new replies.

About this Topic