Ad Widget

Collapse

Error when trying to change or create dashboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ascarneiro
    Junior Member
    • Oct 2019
    • 2

    #1

    Error when trying to change or create dashboard

    My Zabbix is ​version 7.4.2, running on AlmaLinux 8.1, with PHP 8.2.

    When I try to change a dashboard item or even create a new dashboard, the error appears:

    Unexpected server error.

    It's a PHP error that logs:


    Code:
    [16-Sep-2025 06:38:47] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function CWidgetFieldMultiSelectGroupView::__construct(), 1 passed in /home/monitor/public_html/widgets/topitems/views/widget.edit.php on line 29 and exactly 2 expected in /home/monitor/public_html/include/classes/html/widgets/CWidgetFieldMultiSelectGroupView.php:26
    Stack trace:
    #0 /home/monitor/public_html/widgets/topitems/views/widget.edit.php(29): CWidgetFieldMultiSelectGroupView->__construct(Object(Zabbix\Widgets\Fields\CWidgetFieldMultiSelectGroup))
    #1 /home/monitor/public_html/include/classes/mvc/CView.php(128): include('/home/monitor/p...')
    #2 /home/monitor/public_html/include/classes/core/ZBase.php(727): CView->getOutput()
    #3 /home/monitor/public_html/include/classes/core/ZBase.php(651): ZBase->processResponseFinal(Object(CRouter), Object(CControllerDashboardWidgetEdit))
    #4 /home/monitor/public_html/include/classes/core/ZBase.php(228): ZBase->processRequest(Object(CRouter))
    #5 /home/monitor/public_html/include/config.inc.php(20): ZBase->run('default')
    #6 /home/monitor/public_html/zabbix.php(17): require_once('/home/monitor/p...')
    #7 {main}
      thrown in /home/monitor/public_html/include/classes/html/widgets/CWidgetFieldMultiSelectGroupView.php on line 26
    ​

    Any suggestions for a solution?

    I've already disabled all server security layers, such as mod_security, which could be affecting parameter transfer or something like that, but it didn't work.

    My installation is up to date, and everything works fine, except for this issue with changing/including widgets on the dashboard.

    Thank you.​
Working...