WordPress.org

Ready to get started?Download WordPress

Forums

WP Statistics
[Plugin: WP-Statistics] Fatal error when using shortcodes (2 posts)

  1. Jeffrey Driver
    Member
    Posted 2 years ago #

    I inserted the shortcodes into page (without the premium version codes) and it returns this error:

    "Fatal error: Cannot access empty property in .../wp-content/plugins/wp-statistics/wp-statistics.php on line 429"

    http://wordpress.org/extend/plugins/wp-statistics/

  2. Mostafa Soufi
    Member
    Plugin Author

    Posted 2 years ago #

    hi, open the wp-statistics.php and goto 426 line
    replace:

    function wp_statistics_countposts()
    {
    	$count_posts = wp_count_posts('post');
    	return $count_posts->publish;
    }

    thanks :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic