Widget form data not saved correctly when too many inputs are submitted

XMLWordPrintable

    • Sprint candidates
    • 3

      Steps to reproduce:

      1. Start creating a new Scatter plot or Graph widget.
      2. In the 1st data set, select all hosts (in this case, 4 copies of Zabbix server) and choose items for both X and Y axes.
      3. Clone the 1st data set 4-6 times.
      4. Save your widget configuration form.
      5. Observe your widget.
      6. Click the Edit button on your widget.

      Result: 

      An error notification appears:

      Invalid parameter "Data set/4/y_axis_items": cannot be empty.

      PHP error logs:

      $ tail -f /var/log/apache2/error.log
      [Fri Oct 24 04:29:51.877821 2025] [php:warn] [pid 908] [client 192.168.120.28:53694] PHP Warning:  PHP Request Startup: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://dp-virtualbox/ZBXNEXT-9424-7.3/zabbix.php?action=dashboard.view&dashboardid=1&from=now-1h&to=now
      [Fri Oct 24 04:30:18.404850 2025] [php:warn] [pid 5623] [client 192.168.120.28:50389] PHP Warning:  PHP Request Startup: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://dp-virtualbox/ZBXNEXT-9424-7.3/zabbix.php?action=dashboard.view&dashboardid=1&from=now-1h&to=now
      

      Expected: The user should receive a warning about the limit being reached before saving the widget configuration form. An error message should appear if the limit is reached when form data is being submitted.

            Assignee:
            Dmitrijs Fofanovs
            Reporter:
            Deniss Ponomarenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: