Support » Plugin: WP-Piwik » Undefined index nb_visits

  • Hi.

    I’ve 3 notices when I’m on my website dashboard (I think it’s because I have no recorded stats) :

    Notice: Undefined index: nb_visits in /Sites/estienne/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Overview.php on line 35
    
    Notice: Undefined index: nb_visits in /Sites/estienne/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Overview.php on line 36
    
    Notice: Undefined index: nb_visits in /Sites/estienne/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Overview.php on line 37

    I just change L.27 of this Overview.php file from
    $result = array();
    to
    $result = array( 'nb_visits' => 0 );

    Thank you for your plugin.
    Have a nice day.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author braekling

    (@braekling)

    Yes, this should disappear if stats are recorded.

    I’ll make sure the notices won’t appear in the future anymore. Please also keep in mind that you should not run a productive system in debug mode.

    Plugin Author braekling

    (@braekling)

    Issue is fixed in 1.0.16, release soon.

    • This reply was modified 5 months ago by  braekling.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.