Bug 266408 - net-mgmt/icingaweb2-module-grafana: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters
Summary: net-mgmt/icingaweb2-module-grafana: Uncaught ArgumentCountError: array_merge(...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-14 07:00 UTC by O. Hartmann
Modified: 2023-03-20 09:29 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2022-09-14 07:00:03 UTC
The error shown below arise on FreeBSD 13.1-RELEASE-p2 jails (base host running same OS) when trying to access within icingaweb2 the configuration panel of the module net-mgmt/icingaweb2-module-grafana. The port is installed either from the official ports repository or from a poudriere home-grewn ports repository. Either way, Icingaweb2 drops always the same error as used on the conditions described initially.

[...]
Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /usr/local/www/icingaweb2/modules/grafana/library/Grafana/Helpers/Timeranges.php:137
Stack trace:
#0 [internal function]: array_merge()
#1 /usr/local/www/icingaweb2/modules/grafana/library/Grafana/Helpers/Timeranges.php(137): call_user_func_array()
#2 /usr/local/www/icingaweb2/modules/grafana/application/forms/Config/GeneralConfigForm.php(74): Icinga\Module\Grafana\Helpers\Timeranges::getTimeranges()
#3 /usr/local/www/icingaweb2/library/Icinga/Web/Form.php(770): Icinga\Module\Grafana\Forms\Config\GeneralConfigForm->createElements()
#4 /usr/local/www/icingaweb2/library/Icinga/Web/Form.php(1112): Icinga\Web\Form->create()
#5 /usr/local/www/icingaweb2/application/forms/ConfigForm.php(106): Icinga\Web\Form->populate()
#6 /usr/local/www/icingaweb2/library/Icinga/Web/Form.php(1200): Icinga\Forms\ConfigForm->onRequest()
#7 /usr/local/www/icingaweb2/modules/grafana/application/controllers/ConfigController.php(20): Icinga\Web\Form->handleRequest()
#8 /usr/local/www/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Grafana\Controllers\ConfigController->indexAction()
#9 /usr/local/www/icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch()
#10 /usr/local/www/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#11 /usr/local/www/icingaweb2/library/Icinga/Application/Web.php(300): Zend_Controller_Front->dispatch()
#12 /usr/local/www/icingaweb2/library/Icinga/Application/webrouter.php(99): Icinga\Application\Web->dispatch()
#13 /usr/local/www/icingaweb2/public/index.php(4): require_once('...')
#14 {main}
thrown
Comment 1 O. Hartmann 2022-09-14 07:08:25 UTC
The problem is well known, see here (back in 2021):

https://github.com/Mikesch-mp/icingaweb2-module-grafana/issues/274
Comment 2 O. Hartmann 2023-03-20 09:29:52 UTC
Is there any chance to get this problem resolved? FreeBSD's ports have moved onward with PHP 8 towards 8.1 now. As the linked page states the issue is solved in version 2 of the module.
Can we update, please?