Issues with cacti 1.2.24

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Lalbee99
Cacti User
Posts: 135
Joined: Mon Mar 03, 2008 2:07 pm

Issues with cacti 1.2.24

Post by Lalbee99 »

Since I upgraded from cacti 1.2.23 to 1.2.24 I noticed the following (2) issues that were not present in 1.2.23


I am not able to add a new graph on an existing device. I get the following errors in the cacti log.

2023/03/29 10:14:36 - CMDPHP PHP ERROR WARNING Backtrace: (/graphs_new.php[42]:form_save(), /graphs_new.php[164]:html_graph_new_graphs(), /lib/html_graph.php[465]:host_new_graphs_save(), /graphs_new.php[269]:CactiErrorHandler())
2023/03/29 10:14:36 - ERROR PHP WARNING: Invalid argument supplied for foreach() in file: /cacti/cacti/graphs_new.php on line: 269
2023/03/29 10:14:36 - CMDPHP PHP ERROR WARNING Backtrace: (/graphs_new.php[42]:form_save(), /graphs_new.php[164]:html_graph_new_graphs(), /lib/html_graph.php[465]:host_new_graphs_save(), /graphs_new.php[196]:unserialize(), CactiErrorHandler())
2023/03/29 10:14:36 - ERROR PHP WARNING: unserialize() expects exactly 1 parameter, 2 given in file: /cacti/cacti/graphs_new.php on line: 196
2023/03/29 10:14:14 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[72]:form_actions(), /host.php[302]:sanitize_unserialize_selected_items(), /lib/functions.php[4466]:unserialize(), CactiErrorHandler())
2023/03/29 10:14:14 - ERROR PHP WARNING: unserialize() expects exactly 1 parameter, 2 given in file: /cacti/cacti/lib/functions.php on line: 4466


I am not able to delete a device. The device delete process in the gui looks normal with the typical prompt "Delete all associated Graph(s) and Data Source(s)." but when you hit continue
it just repaints the device page with the host still listed. I get the following errors in the cacti log.

2023/03/29 10:16:25 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[72]:form_actions(), /host.php[302]:sanitize_unserialize_selected_items(), /lib/functions.php[4466]:unserialize(), CactiErrorHandler())
2023/03/29 10:16:25 - ERROR PHP WARNING: unserialize() expects exactly 1 parameter, 2 given in file: /cacti/cacti/lib/functions.php on line: 4466
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Issues with cacti 1.2.24

Post by macan »

Trying on fresh updated 1.2.24 and creating/delete graph is without any issue.

It is PHP version problem. I expecting that you have version < 7.0. You have to update PHP
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests