minor Issue related to Left Top Tag(s)

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
dengs
Posts: 4
Joined: Sun Jun 18, 2023 11:47 pm

minor Issue related to Left Top Tag(s)

Post by dengs »

I don't know If anyone raised this issue before, I don't find related issue in the forums.
The problem I met is as below:
1. Create a new user account
2.Logging in Cacti using new account
after above steps done, everything goes fine. But I found some log information, please refer to attached file named as null_tag.jpg( error messages)

3.After some testing, I found that this issue seems caused by not dealing with "Null" or "empty" object of Left-Top tab, since after setting user permissions "graph" enabled, this problem is gone.


forgot to paste my system info.
++++++++++++
OS: Ubuntu 22.04
Cacti ver.: 1.2.25
DB: 10.6.16-MariaDB-0ubuntu0.22.04.1
++++++++++++


Some Error log with Text
==============================================================================
2024-03-01 11:07:39 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php[242]:top_graph_header(), /lib/functions.php[4657]:include_once(), /include/top_graph_header.php[39]:html_show_tabs_left(), /lib/html.php[1932]:CactiErrorHandler())
2024-03-01 11:07:39 - ERROR PHP WARNING: foreach() argument must be of type array|object, null given in file: /var/www/html/cacti/lib/html.php on line: 1932
2024-03-01 11:07:39 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php[242]:top_graph_header(), /lib/functions.php[4657]:include_once(), /include/top_graph_header.php[39]:html_show_tabs_left(), /lib/html.php[1912]:CactiErrorHandler())
2024-03-01 11:07:39 - ERROR PHP WARNING: foreach() argument must be of type array|object, null given in file: /var/www/html/cacti/lib/html.php on line: 1912
2024-03-01 11:07:38 - AUTH LOGIN: User 'teng' authenticated
2024-03-01 11:07:36 - SYSTEM MONITOR STATS: Time:0.01 Reboots:0 DownDevices:0 Notifications:0 Purges:0
2024-03-01 11:07:36 - SYSTEM THOLD STATS: Time:0.0099 Tholds:0 TotalDevices:31 DownDevices:0 NewDownDevices:0
Attachments
permissions.jpg
permissions.jpg (265.67 KiB) Viewed 372 times
empty object.jpg
empty object.jpg (66.6 KiB) Viewed 372 times
null_tag.jpg
null_tag.jpg (331.44 KiB) Viewed 372 times
permission set.jpg
permission set.jpg (255.23 KiB) Viewed 372 times
log(no error).jpg
log(no error).jpg (267.15 KiB) Viewed 372 times
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: minor Issue related to Left Top Tag(s)

Post by macan »

cannot reproduce this on actual 1.2.x version. Please update to 1.2.26 or actual 1.2.x branch from https://github.com/Cacti/cacti/tree/1.2.x

Let me know, if it helps
Let the Cacti grow!
dengs
Posts: 4
Joined: Sun Jun 18, 2023 11:47 pm

Re: minor Issue related to Left Top Tag(s)

Post by dengs »

Thanks macan, upgrading to 1.2.26 solved my problem, thank you for the info.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: minor Issue related to Left Top Tag(s)

Post by TheWitness »

Keep up the good work Petr!
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest