WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: kStats Reloaded] warning error on latest version (4 posts)

  1. E71meister
    Member
    Posted 4 years ago #

    hello there,
    since upgrading kstats this morning i now get this message at the top of my site...

    warning: strpos() [function.strpos] empty delimeter ***/***/kstats-reloaded/lib/funtions.php on line 117

    any ideas?

    http://wordpress.org/extend/plugins/kstats-reloaded/

  2. Mark Waterous
    Member
    Posted 4 years ago #

    While I thought there shouldn't be any empty strings spit out by the ignore list, I should have added a check to make sure either way.

    I'll add this to the bugfix list for the next release (due out today), but if you want to get rid of the warning produced, the following should fix it. Open lib/functions.php and go to line 117, it will look like (with the lines on either side for clarity);

    foreach ( $kstats->config['ignore']['ignore_list'] as $ignore )
    		if ( strpos( $ip, $ignore ) !== FALSE )
    			return TRUE;

    Change the if statement to the following;

    if ( ! empty( $ignore ) && strpos( $ip, $ignore ) !== FALSE )

    I normally run with WP_DEBUG set to on for a couple days before release, but in this case I had turned it off since MU itself has been producing more warnings than my plugin was. My fault for not running it on before tagging that release though, sorry.

  3. E71meister
    Member
    Posted 4 years ago #

    Many thanks for your work...

  4. Mark Waterous
    Member
    Posted 4 years ago #

    0.6.9 is out tonight, which includes this bug fix amongst others. Thank you for bringing it to my attention!

Topic Closed

This topic has been closed to new replies.

About this Topic