Closed nicoinn closed 6 years ago
Thanks for spotting @nicoinn, should be fixed now https://github.com/emoncms/graph/commit/818ae9402b4f5014bb8f1940926162880c303a68
I'm still getting the error at line 22 now...
I was maybe a little too fast to conclude above.
Another attempt to fix the thing in: https://github.com/emoncms/graph/pull/14
Thanks, graph PR has been merged 👍
Hi!
I'm getting the following errors while trying to edit or view dashboards.
Notice: Undefined index: groups in /var/www/html/Modules/graph/widget/graph_widget.php on line 21
Warning: Invalid argument supplied for foreach() in /var/www/html/Modules/graph/widget/graph_widget.php on line 21
I looked at the faulty piece of code
Based on the content of my database, the query in group_module_installed() returns 0 rows and the function returns true. However, my image doesn't seem to have group_model.php anywhere, an error occurs and $group is not defined when used later on, causing the message.
Is it a bug or am I doing something wrong ? :-/
Note that the dashboard and widgets are working perfectly fine despite that error message!