[ZBX-20763] I can no longer access the sla report page after upgrading from version 6.0.1 to 6.0.2 Created: 2022 Mar 17  Updated: 2022 Mar 24  Resolved: 2022 Mar 24

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 6.0.2
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Cesar Murilo da Silva Junior Assignee: Antons Sincovs
Resolution: Workaround proposed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File sla_select_output.png    

 Description   

Ubuntu 20.04.4 LTS
apache2 2.4.41-4ubuntu3.10
kernel 5.4.0-74-generic
php 7.4.3

Here are the apache logs:

 

PHP Fatal error: Uncaught Error: Call to a member function getTimestamp() on null in /var/www/html/zabbix/app/controllers/CControllerSlaReportList.php:164\nStack trace:\n#0 /var/www/html/zabbix/include/classes/mvc/CController.php(465): CControllerSlaReportList->doAction()\n#1 /var/www/html/zabbix/include/classes/core/ZBase.php(526): CController->run()\n#2 /var/www/html/zabbix/include/classes/core/ZBase.php(210): ZBase->processRequest()\n#3 /var/www/html/zabbix/include/config.inc.php(25): ZBase->run()\n#4 /var/www/html/zabbix/zabbix.php(22): require_once('/var/www/html/z...')\n#5
{main}
\n thrown in /var/www/html/zabbix/app/controllers/CControllerSlaReportList.php on line 164, referer: https://zbx.unipam.edu.br/zabbix.php?action=dashboard.view

 



 Comments   
Comment by Cesar Murilo da Silva Junior [ 2022 Mar 17 ]

I was able to view the sla report page with another user. I remember that with my user, in version 6.0.1, I had done a search with the date 2022/03/10 16:40 (something like that), because in the correct format there was no result. I even made this update to version 6.0.2 because I saw that the datetime picker had been fixed. But now I can't load the page with my user, even after clearing the browser cache. Should I clear apache cache with htcacheclean ?

Comment by Antons Sincovs [ 2022 Mar 22 ]

Hello, Cesar!

Could you, please, try clearing web browser cookies and cache?

Regards,

Antons

Comment by Cesar Murilo da Silva Junior [ 2022 Mar 22 ]

I cleared cache and cookies, and even reinstalled Google Chrome, and the error remains.

Comment by Antons Sincovs [ 2022 Mar 22 ]

I cleared cache and cookies, and even reinstalled Google Chrome, and the error remains.

Thank you for the update!

I was able to view the sla report page with another user

* Could you, please, elaborate, on that. Do I understand correctly, that after upgrading 6.0.2 you still can access the "SLA Report" section with some other user?

 

Comment by Cesar Murilo da Silva Junior [ 2022 Mar 22 ]
  • And this section which previously was accessible by your user is not accessible by it anymore?

With another user, who never tried to filter the report with the wrong date format, but it worked in version 6.0.1, it is possible to view the page today normally.

  • Is there any error message shown in the browser or just a blank page?

Just 'HTTP ERROR 500', but, But, as I already informed, in the apache log it appears:

PHP Fatal error: Uncaught Error: Call to a member function getTimestamp() on null in /var/www/html/zabbix/app/controllers/CControllerSlaReportList.php:164\nStack trace:\n#0 /var/www/html/zabbix/include/classes/mvc/CController.php(465): CControllerSlaReportList->doAction()\n#1 /var/www/html/zabbix/include/classes/core/ZBase.php(526): CController->run()\n#2 /var/www/html/zabbix/include/classes/core/ZBase.php(210): ZBase->processRequest()\n#3 /var/www/html/zabbix/include/config.inc.php(25): ZBase->run()\n#4 /var/www/html/zabbix/zabbix.php(22): require_once('/var/www/html/z...')\n#5
{main}
\n thrown in /var/www/html/zabbix/app/controllers/CControllerSlaReportList.php on line 164, referer: https://zbx.unipam.edu.br/zabbix.php?action=dashboard.view

In my user, there is no point in enabling it, because the error 500 is already generated, and the white page

Comment by Antons Sincovs [ 2022 Mar 23 ]

Ok, it seems that one of the probabilities is that an incorrect date filter setting has been saved for your user and now it prevents the SLA report section from proper functioning.

Could you, please, run the following SQL query and share its output:

select * from profiles where idx LIKE "%slareport%" AND userid=(SELECT userid FROM users WHERE username='<username>');

replace the "<username>" with your user name (mind the case sensitivity). This will show what filter settings are saved for your user in the "profiles" table regarding "SLA report" section.

 

Comment by Cesar Murilo da Silva Junior [ 2022 Mar 23 ]

Attached is the output:

Should I update these records?

Comment by Antons Sincovs [ 2022 Mar 24 ]

Let us try resetting the "value_str" values for "idx" entries "web.slareport.list.filter.date_from" and "web.slareport.list.filter.date_to" which supposedly have incorrect date format values:

 UPDATE profiles SET value_str="" WHERE idx="web.slareport.list.filter.date_from" AND userid=(SELECT userid FROM users WHERE username='<username>');
 UPDATE profiles SET value_str="" WHERE idx="web.slareport.list.filter.date_to" AND userid=(SELECT userid FROM users WHERE username='<username>');

replace the "<username>" with your user name (mind the case sensitivity). Try accessing the "SLA report" section.

Comment by Cesar Murilo da Silva Junior [ 2022 Mar 24 ]

The update in the database table profiles solved my problem. Thank you for the support!

Comment by Antons Sincovs [ 2022 Mar 24 ]

We are always glad to help!

Generated at Sat Apr 26 04:54:01 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.