Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Aug 20, 2018 12:03 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: THOLD redeclares png2jpg
PostPosted: Sun Jul 23, 2017 9:43 pm 
Offline
Cacti User
User avatar

Joined: Fri Nov 04, 2005 3:37 pm
Posts: 255
Location: Ca US
We're attempting to migrate from 0.8.8h to 1.1.13. When we installed the THOLD plugin (v 0.5), we get the following error.

Quote:
2017/07/23 16:56:28 - ERROR PHP COMPILE_ERROR in Plugin 'thold': Cannot redeclare png2jpeg() (previously declared in /usr/share/cacti/site/lib/reports.php:1244) in file: /usr/share/cacti/site/plugins/thold/thold_functions.php on line: 3054
2017/07/23 16:56:28 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'thold'

_________________
---------
The Glue Guy


Top
 Profile  
 
 Post subject: Re: THOLD redeclares png2jpg
PostPosted: Sun Jul 23, 2017 9:52 pm 
Offline
Cacti User
User avatar

Joined: Fri Nov 04, 2005 3:37 pm
Posts: 255
Location: Ca US
So I commented out that redundant function. I am now getting hung up on an undeclared function split() coming from thold/includes/polling.php
Quote:
2017/07/23 19:44:14 - ERROR PHP ERROR in Plugin 'thold': Uncaught Error: Call to undefined function split() in /usr/share/cacti/site/plugins/thold/includes/polling.php:28
2017/07/23 19:37:44 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'thold'

_________________
---------
The Glue Guy


Top
 Profile  
 
 Post subject: Re: THOLD redeclares png2jpg
PostPosted: Sun Jul 23, 2017 10:10 pm 
Offline
Cacti User
User avatar

Joined: Fri Nov 04, 2005 3:37 pm
Posts: 255
Location: Ca US
OK. Replaced split() with explode() per some bug reports I saw on the web regarding issues with Debian and PHP 7.

THOLD now seems to be working. Do this:

  • Comment out png2jpg
  • Replace split() with explode()

_________________
---------
The Glue Guy


Top
 Profile  
 
 Post subject: Re: THOLD redeclares png2jpg
PostPosted: Mon Jul 24, 2017 12:59 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2717
Location: B/CS Texas
If you are using the 1.X releases of Cacti, you need to be using the latest version of Thold.
https://github.com/Cacti/plugin_thold/
The old version 0.5 isn't compatible with the latest Cacti, not sure how you even got past the Plugin Management page to install it, as it shouldn't have let you.

_________________
Report a bug
Download Releases
1.X Compatible Plugins


Top
 Profile  
 
 Post subject: Re: THOLD redeclares png2jpg
PostPosted: Mon Jul 24, 2017 1:31 pm 
Offline
Cacti User
User avatar

Joined: Fri Nov 04, 2005 3:37 pm
Posts: 255
Location: Ca US
Sheesh. I must have missed the memo on this. I will say that I had to do some editing of THOLD to get it to run.

It fell on its face again after I wrote my last entry on this. I'll D/L the new THOLD and see how it goes.

Thanks Jimmy!

_________________
---------
The Glue Guy


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group