WordPress.org

Ready to get started?Download WordPress

Forums

WP Statistics
[resolved] PHP Error on WP Statistics (7 posts)

  1. fehwuhi
    Member
    Posted 6 months ago #

    Error one:
    http://i28.photobucket.com/albums/c216/NO2NSA/error_zpsb7568ae4.png

    Error two:
    http://i28.photobucket.com/albums/c216/NO2NSA/visitors_zps08f4be32.png

    Oh also the Browsers section is also empty :(

    Had this problem for awhile even before and after doing updates.
    Have no clue when it happened, just waited for the next update and thought it would fix it but still having the same error.

    Warning: arsort() expects parameter 1 to be array, null given in /home/no2nsax3/public_html/blog/wp-content/plugins/wp-statistics/includes/log/log.php on line 542

    Warning: Invalid argument supplied for foreach() in /home/no2nsax3/public_html/blog/wp-content/plugins/wp-statistics/includes/log/log.php on line 545

  2. Greg Ross
    Member
    Plugin Author

    Posted 6 months ago #

    How long have you had the error for? Before 7.0?

  3. fehwuhi
    Member
    Posted 6 months ago #

    yes

  4. Greg Ross
    Member
    Plugin Author

    Posted 6 months ago #

    The errors on line 542/545 are because no visitors are being returned from the database to calculate the top countries.

    Can you check your database and see how many rows are in the wp_statistics_visitor table?

  5. fehwuhi
    Member
    Posted 6 months ago #

    I've did the latest update now and the only thing that has changed is the error previously I posted before has gone now and the boxs are just blank instead.

    When I go to my database and find wp_statistics_visitor and then hit the plus button next to it, drops down "Columns" and when I click on that database It shows me...

    Space usage
    Data
    Total 0B

    Row statistics
    Rows 0

    When I click onto database wp_statistics_visitor I get this error.

    #145 - Table './no2nsax3_no2nsa/wp_statistics_visitor' is marked as crashed and should be repaired

    The sidebar of my website has the widget appearing and it is showing this Information about my website and the visitors.

    User Online: 1
    Today Visit: 68
    Yesterday Visit: 528
    Week Visit: 6920
    Month Visit: 18783
    Years Visit: 97593
    Total Visit: 97593
    Total Posts: 656
    Total Users: 97
    Average Posts: 4.37
    Average Users: 0.65
    Last Post Date: Aug 8, 2014

  6. fehwuhi
    Member
    Posted 6 months ago #

    This is fixed now, sorry about that!

    Had to do database repair and now everything is working :)

  7. Greg Ross
    Member
    Plugin Author

    Posted 6 months ago #

    Ok, no problem.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.