Thruk - Create Report - Error when Loaded

error-on-page
(Marcus Rochelle) #1

After upgrading from Thruk 2.26.2 to 2.30.3 and 2.31~20190828, when attempting to create a report, the icon for a bug displays on the page. When I attempt to select hosts or services from the drop down, the page refreshes back to the initial load with no options. When I click on the bug icon, the following information in the email is indicated:
Version: 2.31~20190828
Release: August 28, 2019
Url: /thruk/cgi-bin/reports2.cgi??action=edit&report=new
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Backends: uname: Linux 2.6.32-696.30.1.el6.x86_64 #1 SMP Tue May 22 03:28:18 UTC 2018 x86_64
release: CentOS release 6.9 (Final)
Error List:
Url: https://server/thruk/plugins/reports2/reports.js Line 113
Error: Uncaught TypeError: form.find(…).size is not a function
Full Stacktrace:
TypeError: form.find(…).size is not a function
at reports_update_affected_sla_objects (https://server/thruk/plugins/reports2/reports.js:113:68)
at https://server/thruk/cgi-bin/reports2.cgi?action=edit&report=new:2474:1
Source:

I have a work-a-round where if you do not use the drop downs and paste in your values and save immediately you can create the report. Any recommendations or comments will be appreciated.

(Marcus Rochelle) #2

Ok, update, the recent version did correct the problem. I just needed to clear all cache data. There remains a minor insignificant bug from my perspective but since I’ve started this post, I will mention it below:
Version: 2.31~20190828
Release: August 28, 2019
Url: /thruk/cgi-bin/reports2.cgi??action=edit&report=new
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Backends: uname: Linux server 2.6.32-696.30.1.el6.x86_64 #1 SMP Tue May 22 03:28:18 UTC 2018 x86_64
release: CentOS release 6.9 (Final)
Error List:
Url: https://server/thruk/plugins/reports2/reports.js Line 71
Error: Uncaught TypeError: $ is not a function
Full Stacktrace:
TypeError: $ is not a function
at update_reports_type_step2 (https://server/thruk/plugins/reports2/reports.js:71:20)
Source:

(Sven Nierlein) #3

fixed that one as well, thanks for reporting this.