WordPress.org

Support

Support » Plugins and Hacks » [Resolved] lot of undefined index or variables

[Resolved] lot of undefined index or variables

  • I installed your WP-Statistics plugin Version 4.5 on a WordPress 3.5.1
    When I select setting > Statistics > Overview
    I received a lots of error messages:
    Undefined index: type in /…/wp-statistics.php on line 254
    Undefined index: manage_option in /…/wp-statistics.php on line 97
    Undefined variable: search_query in /…/functions.php on line 209
    Undefined variable: search_query in /…/functions.php on line 226
    Undefined variable: search_query in /…/functions.php on line 219
    or > Optimisation
    Undefined index: populate in /…/optimization-geoip.php on line 89
    or > Parameters
    Undefined variable: option_list in /…/settings.php on line 138

    Many thanks for your help

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Greg Ross
    Participant

    @gregross

    You probably have debug mode enabled, they are warnings only and the plugin will function fine.

    Plugin Author Greg Ross
    Participant

    @gregross

    All known messages should now be resolved in version 4.6.

    Version 4.6 installed

    Again one error message on settings>Statistics>Overview or Navigator, Hits, …
    Undefined index: manage_option in /…/wp-statistics.php on line 109

    Plugin Author Greg Ross
    Participant

    @gregross

    Will be fixed in the next release.

    Plugin Author Greg Ross
    Participant

    @gregross

    If your desperate for a fix, replace line 109 in wp-stastics.php with:

    if( array_key_exists( $capability, $all_caps ) ) { return $capability; }
    Plugin Author Greg Ross
    Participant

    @gregross

    Closing topic.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] lot of undefined index or variables’ is closed to new replies.