WordPress.org

Ready to get started?Download WordPress

Forums

WP-Stats-Dashboard
Technorati Rank PHP Error (2 posts)

  1. ljmac
    Member
    Posted 1 year ago #

    Hi,

    This is a totally awesome plug-in, but I'm getting a PHP error with it:

    [14-Feb-2013 10:18:48 UTC] PHP Warning: number_format() expects parameter 1 to be double, string given in [URL REMOVED]/wp-content/plugins/wp-stats-dashboard/classes/util/metrics/WPSDTechnoratiRank.php on line 59

    Also, is it really necessary to have 130+ entries in the options table?

    Regards,
    Lee

    http://wordpress.org/extend/plugins/wp-stats-dashboard/

  2. Adding the "empty check" line to the set() method in ./classes/util/metrics/WPSDTechnoratiRank.php fixes the problem:

    //Set the rank.
    if (empty($rankvalue)) { $rankvalue=0; }
    $this->values['rank'] = number_format($rankvalue); //$matches[0];

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.