Cacti 1.2.24 Issue unable to create Graph

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

Moderators: Developers, Moderators

Post Reply
Rikii16
Posts: 16
Joined: Fri Jan 03, 2020 3:25 pm

Cacti 1.2.24 Issue unable to create Graph

Post by Rikii16 »

Hello Team,

We upgraded Cacti from 1.2.9 to 1.2.24 but we have an issue when we are creating a new graph, this is the logs from Deveops console.

Do you have any idea to fix this?

Best
Attachments
cacti error.PNG
cacti error.PNG (102.63 KiB) Viewed 542 times
Rikii16
Posts: 16
Joined: Fri Jan 03, 2020 3:25 pm

Re: Cacti 1.2.24 Issue unable to create Graph

Post by Rikii16 »

I attached the cacti clogs
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())
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti 1.2.24 Issue unable to create Graph

Post by TheWitness »

What version of PHP? If it's 5.x, upgrade it to 7.x. Upgrading is easy on Linux, just use the REMI repos.
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?
Rikii16
Posts: 16
Joined: Fri Jan 03, 2020 3:25 pm

Re: Cacti 1.2.24 Issue unable to create Graph

Post by Rikii16 »

Hello,

Yes, probably the version of php (5.4) that we have installed on our Centos 7 server has some incompatibility with the latest versions of cacti.
But at the time of updating we had to solve with the following solution

We copy the last version(1.2.9) file graphs_new.php to the production path and that resolve the issue of graphs creation.

After that we identify another error related to place graphs on a trees, so we modify the following

/var/www/html/cacti/lib/funtcions.php

From: $items = unserialize($unstripped, array('allowed_classes' => false));
To: $item = unserialize($unstripped);

Best,
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti 1.2.24 Issue unable to create Graph

Post by TheWitness »

I would migrate to the Remi distro's and get yourself upgraded to either PHP 7.4 or 8.2. Cacti 1.2.24+ supports both versions quite well, and they use less memory.
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 2 guests