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

  1. fehwuhi
    Posted 1 year ago #

    Error one:

    Error two:

    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
    Plugin Author

    Posted 1 year ago #

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

  3. fehwuhi
    Posted 1 year ago #


  4. Greg Ross
    Plugin Author

    Posted 1 year 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
    Posted 1 year 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
    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
    Posted 1 year ago #

    This is fixed now, sorry about that!

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

  7. Greg Ross
    Plugin Author

    Posted 1 year ago #

    Ok, no problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Statistics
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.