I am using views calc apart of Time Tracker and am having tons of errors pop up. The functionally is working just fine, but it is reporting errors when I try display a view of the user's clock-in's.

Any ideas?

Notice: Undefined index: uid in views_calc_table->get_calc_fields() (line 280 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views_calc_table.inc).
Notice: Undefined index: start in views_calc_table->get_calc_fields() (line 280 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views_calc_table.inc).
Notice: Undefined index: end in views_calc_table->get_calc_fields() (line 280 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views_calc_table.inc).
Notice: Undefined index: uid in include() (line 26 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: start in include() (line 26 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: end in include() (line 26 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: uid in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: start in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: end in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: uid in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: start in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: end in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: uid in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: start in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: end in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: uid in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: start in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: end in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: uid in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: start in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: end in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: uid in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: start in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: end in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: uid in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: start in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: end in include() (line 36 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: uid in include() (line 47 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: start in include() (line 47 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: end in include() (line 47 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: uid in include() (line 56 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: start in include() (line 56 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).
Notice: Undefined index: end in include() (line 56 of E:\htdocstls\RA\emra_drupal\sites\all\modules\views_calc\views-calc-table.tpl.php).

Comments

dev25 created an issue. See original summary.

yash_khandelwal’s picture

If you ever notice this strange issue just switch to other layout type (Switched to table) and than back to views calc. It recreates indexes of all fields. And then issue will solve.

Huelfe’s picture

#2 thank you for your comment. Helped me a lot. :)

yash_khandelwal’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

asb’s picture

This seems to happen every time a field is added to a 'views_calc' view.

Confirming that the workaround from #2 helps to get rid of the error messages.

However, a proper fix would be desirable.

James Feng’s picture

I also encountered the same problem. yash_khandelwal's method is very good. Thank you very much.