Cacti / plugin_reportit

ReportIt Plugin for Cacti
GNU General Public License v2.0
7 stars 8 forks source link

plugin crash on cacti/develop when adding a new report #106

Closed sgvfr closed 4 months ago

sgvfr commented 5 months ago

Describe the bug

2024-02-08 12:00:09 - PHP ERROR Backtrace: (CactiShutdownHandler())
2024-02-08 12:00:09 - ERROR PHP ERROR: Uncaught TypeError: resolve_navigation_variables(): Argument #1 ($text) must be of type string, null given, called in /var/www/html/cacti/lib/functions.php on line 4068 and defined in /var/www/html/cacti/lib/functions.php:4247 Stack trace: #0 /var/www/html/cacti/lib/functions.php(4068): resolve_navigation_variables() #1 /var/www/html/cacti/include/top_header.php(27): draw_navigation_text() #2 /var/www/html/cacti/lib/functions.php(5070): include_once('...') #3 /var/www/html/cacti/plugins/reportit/reports.php(54): top_header() #4 {main} thrown in file: /var/www/html/cacti/lib/functions.php on line: 4247
2024-02-08 12:00:09 - PHP ERROR WARNING Backtrace: (/plugins/reportit/reports.php[54]:top_header(), /lib/functions.php[5070]:include_once(), /include/top_header.php[27]:draw_navigation_text(), /lib/functions.php[4068]:CactiErrorHandler())
2024-02-08 12:00:09 - ERROR PHP WARNING: Trying to access array offset on value of type null in file: /var/www/html/cacti/lib/functions.php on line: 4068
2024-02-08 12:00:09 - PHP ERROR WARNING Backtrace: (/plugins/reportit/reports.php[54]:top_header(), /lib/functions.php[5070]:include_once(), /include/top_header.php[27]:draw_navigation_text(), /lib/functions.php[4068]:CactiErrorHandler())
2024-02-08 12:00:09 - ERROR PHP WARNING: Undefined array key "?" in file: /var/www/html/cacti/lib/functions.php on line: 4068

To Reproduce Steps to reproduce the behavior:

  1. Go to Management/Reports
  2. Click on '+'
  3. See error

Expected behavior Able to add a report.

Screenshots If applicable, add screenshots to help explain your problem.

Plugin (please complete the following information):

Additional context on older cacti develop due to ping bug. 4563aaa1d (HEAD -> develop) Deleted translation using Weblate (English (Old))