fatal errors after upgrading to 0.8.6b

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

Moderators: Developers, Moderators

Post Reply
mattswell
Posts: 1
Joined: Wed Nov 10, 2004 2:21 am

fatal errors after upgrading to 0.8.6b

Post by mattswell »

i've got a ton of fun errors, possibly because i'm running php5 (previous versions only had to edit that one class i forget which)

Code: Select all

Notice: Use of undefined constant DATA_INPUT_TYPE_SNMP - assumed 'DATA_INPUT_TYPE_SNMP' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 87

Notice: Use of undefined constant DATA_INPUT_TYPE_SNMP_QUERY - assumed 'DATA_INPUT_TYPE_SNMP_QUERY' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 88

Notice: Use of undefined constant DATA_INPUT_TYPE_SCRIPT - assumed 'DATA_INPUT_TYPE_SCRIPT' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 89

Notice: Use of undefined constant DATA_INPUT_TYPE_SCRIPT_QUERY - assumed 'DATA_INPUT_TYPE_SCRIPT_QUERY' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 90

Notice: Use of undefined constant DATA_INPUT_TYPE_PHP_SCRIPT_SERVER - assumed 'DATA_INPUT_TYPE_PHP_SCRIPT_SERVER' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 91

Notice: Use of undefined constant DATA_INPUT_TYPE_QUERY_SCRIPT_SERVER - assumed 'DATA_INPUT_TYPE_QUERY_SCRIPT_SERVER' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 92

Notice: Use of undefined constant DATA_QUERY_AUTOINDEX_NONE - assumed 'DATA_QUERY_AUTOINDEX_NONE' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 96

Notice: Use of undefined constant DATA_QUERY_AUTOINDEX_BACKWARDS_UPTIME - assumed 'DATA_QUERY_AUTOINDEX_BACKWARDS_UPTIME' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 97

Notice: Use of undefined constant DATA_QUERY_AUTOINDEX_INDEX_NUM_CHANGE - assumed 'DATA_QUERY_AUTOINDEX_INDEX_NUM_CHANGE' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 98

Notice: Use of undefined constant DATA_QUERY_AUTOINDEX_FIELD_VERIFICATION - assumed 'DATA_QUERY_AUTOINDEX_FIELD_VERIFICATION' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 99

Notice: Use of undefined constant AVAIL_SNMP_AND_PING - assumed 'AVAIL_SNMP_AND_PING' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 145

Notice: Use of undefined constant AVAIL_SNMP - assumed 'AVAIL_SNMP' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 146

Notice: Use of undefined constant AVAIL_PING - assumed 'AVAIL_PING' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 147

Notice: Use of undefined constant PING_ICMP - assumed 'PING_ICMP' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 150

Notice: Use of undefined constant PING_UDP - assumed 'PING_UDP' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 151

Notice: Use of undefined constant POLLER_VERBOSITY_NONE - assumed 'POLLER_VERBOSITY_NONE' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 154

Notice: Use of undefined constant POLLER_VERBOSITY_LOW - assumed 'POLLER_VERBOSITY_LOW' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 155

Notice: Use of undefined constant POLLER_VERBOSITY_MEDIUM - assumed 'POLLER_VERBOSITY_MEDIUM' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 156

Notice: Use of undefined constant POLLER_VERBOSITY_HIGH - assumed 'POLLER_VERBOSITY_HIGH' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 157

Notice: Use of undefined constant POLLER_VERBOSITY_DEBUG - assumed 'POLLER_VERBOSITY_DEBUG' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 158

Notice: Use of undefined constant TREE_ORDERING_NONE - assumed 'TREE_ORDERING_NONE' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 192

Notice: Use of undefined constant TREE_ORDERING_ALPHABETIC - assumed 'TREE_ORDERING_ALPHABETIC' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 193

Notice: Use of undefined constant TREE_ORDERING_NUMERIC - assumed 'TREE_ORDERING_NUMERIC' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 194

Notice: Use of undefined constant GT_LAST_HALF_HOUR - assumed 'GT_LAST_HALF_HOUR' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 377

Notice: Use of undefined constant GT_LAST_HOUR - assumed 'GT_LAST_HOUR' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 378

Notice: Use of undefined constant GT_LAST_2_HOURS - assumed 'GT_LAST_2_HOURS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 379

Notice: Use of undefined constant GT_LAST_4_HOURS - assumed 'GT_LAST_4_HOURS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 380

Notice: Use of undefined constant GT_LAST_6_HOURS - assumed 'GT_LAST_6_HOURS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 381

Notice: Use of undefined constant GT_LAST_12_HOURS - assumed 'GT_LAST_12_HOURS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 382

Notice: Use of undefined constant GT_LAST_DAY - assumed 'GT_LAST_DAY' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 383

Notice: Use of undefined constant GT_LAST_2_DAYS - assumed 'GT_LAST_2_DAYS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 384

Notice: Use of undefined constant GT_LAST_3_DAYS - assumed 'GT_LAST_3_DAYS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 385

Notice: Use of undefined constant GT_LAST_4_DAYS - assumed 'GT_LAST_4_DAYS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 386

Notice: Use of undefined constant GT_LAST_WEEK - assumed 'GT_LAST_WEEK' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 387

Notice: Use of undefined constant GT_LAST_2_WEEKS - assumed 'GT_LAST_2_WEEKS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 388

Notice: Use of undefined constant GT_LAST_MONTH - assumed 'GT_LAST_MONTH' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 389

Notice: Use of undefined constant GT_LAST_2_MONTHS - assumed 'GT_LAST_2_MONTHS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 390

Notice: Use of undefined constant GT_LAST_3_MONTHS - assumed 'GT_LAST_3_MONTHS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 391

Notice: Use of undefined constant GT_LAST_4_MONTHS - assumed 'GT_LAST_4_MONTHS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 392

Notice: Use of undefined constant GT_LAST_6_MONTHS - assumed 'GT_LAST_6_MONTHS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 393

Notice: Use of undefined constant GT_LAST_YEAR - assumed 'GT_LAST_YEAR' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 394

Notice: Use of undefined constant GT_LAST_2_YEARS - assumed 'GT_LAST_2_YEARS' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 395

Notice: Use of undefined constant GD_MO_D_Y - assumed 'GD_MO_D_Y' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 399

Notice: Use of undefined constant GD_MN_D_Y - assumed 'GD_MN_D_Y' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 400

Notice: Use of undefined constant GD_D_MO_Y - assumed 'GD_D_MO_Y' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 401

Notice: Use of undefined constant GD_D_MN_Y - assumed 'GD_D_MN_Y' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 402

Notice: Use of undefined constant GD_Y_MO_D - assumed 'GD_Y_MO_D' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 403

Notice: Use of undefined constant GD_Y_MN_D - assumed 'GD_Y_MN_D' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 404

Notice: Use of undefined constant GDC_HYPHEN - assumed 'GDC_HYPHEN' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 408

Notice: Use of undefined constant GDC_SLASH - assumed 'GDC_SLASH' in /var/www/localhost/htdocs/cacti/include/config_arrays.php on line 409

Fatal error: Call to undefined function read_config_option() in /var/www/localhost/htdocs/cacti/include/config_form.php on line 651
brendagies
Posts: 1
Joined: Wed Nov 10, 2004 4:13 pm

errors after upgrade

Post by brendagies »

I get the same errors after upgrading to the same version.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please replace your config.php with the config.php.dist and retry.

TheWitness
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?
guest

Post by guest »

I had the same problems when upgrading. I upgraded on gentoo so I did a emerge cacti.

I did not have a config.php.dist so I downloaded the .tar.gz and copied the config.php from there and changed the username/password section. That got rid of the errors but if I try to do an update I get the following error:

Error

Invalid Cacti version new_install, cannot upgrade to 0.8.6b

That is somewhat of a problem :) I'd hate to loose all my data since I had around 1900 measurements at the time I upgraded :S
Kybber
Posts: 24
Joined: Mon Jul 05, 2004 10:29 am

Post by Kybber »

I'm getting the exact same error:

Code: Select all

Error

Invalid Cacti version new_install, cannot upgrade to 0.8.6b
Also using gentoo linux. I did what was suggested in the
upgrade documentation, i.e.
Before cacti works you must upgrade the cacti database:
1. Backup the old cacti database:
shell> mysqlhotcopy --suffix=_old cacti
2. Drop the old cacti database:
shell> mysqladmin -p drop cacti
3. Create the new cacti database
shell> mysqladmin --user=root create cacti
4. Import the default cacti database:
shell> mysql cacti < /var/www/localhost/htdocs/cacti/cacti.sql
5. Edit /var/www/localhost/htdocs/cacti/include/config.php, and confirm that the MySQL user,
password and database is correct for your cacti configuration.

Example:
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";

6. Point your web browser to: http://your-server/cacti/
Select "Upgrade".
Make sure to fill in all of the path variables carefully and
correctly on the following screen.
After selecting "Upgrade from Cacti 0.8.x" in point 6 and
clicking next, the error appears. I was previously using
Cacti 0.8.5a.

Does anyone have a clue?
Kybber
Posts: 24
Joined: Mon Jul 05, 2004 10:29 am

Post by Kybber »

Hmm... I went back a few steps and copied the cacti_old
database to cacti after first getting rid of the blank new
cacti-database:

Code: Select all

>mysqladmin -drop cacti
>mysqlhotcopy cacti_old cacti
I then tried the upgrade procedure again and it seems
to have worked. Are the upgrade instructions faulty and
do we not have to upgrade the cacti database after all?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests