Open arthurrschaefer opened 9 months ago
I did not test with nightly image, but on current main branch, I do not reproduce
Oh, I do have the error, but only on one of the graphs, not all.
[2023-12-04 06:54:35] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key 0 in /var/www/webapps/glpi/src/Dashboard/Widget.php at line 1056
Backtrace :
src/Dashboard/Widget.php:872 Glpi\Dashboard\Widget::getBarsGraph()
src/Dashboard/Widget.php:884 Glpi\Dashboard\Widget::simpleBar()
: Glpi\Dashboard\Widget::simpleHbar()
src/Dashboard/Grid.php:969 call_user_func()
ajax/dashboard.php:194 Glpi\Dashboard\Grid->getCardHtml()
public/index.php:82 require()
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.
Undefined array key 0
persists.
Code of Conduct
Is there an existing issue for this?
Version
10.1.0 - main
Bug description
When using the
main
nightly image, after a fresh installation, all the bar graphs on Dashboards have the same error:Warning: Undefined array key 0 in /var/www/glpi/src/Dashboard/Widget.php on line 1056
If I just change the widget to other types like, Summary numbers, pies, it works fine.
Relevant log output
No response
Page URL
No response
Steps To reproduce
Your GLPI setup information
GLPI information
Server
GLPI constants
Libraries
SQL replicas
Notifications
Anything else?
I'm testing things in this version. Not urgent, since I could just change the widget type.