Dashbord-Bug "Notice: Undefined index: nb_users in"


#1

Hi all,

the latest version displays a Notice on the dashboard. Whilst Notices are not dangerous or anything it shows that a function is not written properly.

Please fix this in the next update! I’d be very glad.

Please do not tell me to “hide Notices” - to hide a obviously error is not the way to solve a problem.

Do you need any further details from my Wordpress installation? Let me know it!

Thanks, have a great week,
Max


#2

Hi guys,

here’s a quickfix for everyone that is having the same problem:

Edit overview.php
Edit the first array, change on Line 5-17:

Original:


	$aryTmp = array(
		'bounce_count' => 0,
		'max_actions' => 0,
		'nb_actions' => 0,
		'nb_uniq_visitors' => 0,
		'nb_visits' => 0,
		'nb_visits_converted' => 0,
		'sum_visit_length' => 0,
		'bounce_rate' => 0,
		'nb_actions_per_visit' => 0,
		'avg_time_on_site' => 0
	);

to:


	$aryTmp = array(
		'nb_users' => 0,
		'bounce_count' => 0,
		'max_actions' => 0,
		'nb_actions' => 0,
		'nb_uniq_visitors' => 0,
		'nb_visits' => 0,
		'nb_visits_converted' => 0,
		'sum_visit_length' => 0,
		'bounce_rate' => 0,
		'nb_actions_per_visit' => 0,
		'avg_time_on_site' => 0
	);

This solve the problem, I’m not sure if this totally fixes the Bug, Piwik team still needs to take a short look at this, please!


(Matthieu Aubry) #3

Hi Max,

can you please create an issue in Piwik tracker? Issues · matomo-org/piwik · GitHub
please paste the full error message there as otherwise we don’t know how to fix it


#4

Yes, I’ll do that asap! Thanks matt.