Error in Apache error_log: Undefined index

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

Moderators: Developers, Moderators

Post Reply
coactor
Posts: 4
Joined: Wed Sep 05, 2007 9:56 am

Error in Apache error_log: Undefined index

Post by coactor »

Hi Everybody,

my problem is an error in the apache error_log file which says:

[error] [client 10.49.241.52] PHP Notice: Undefined index: cacti_version in /cacti/include/auth.php on line 30, referer: http://10.1.2.2/host.php

Version is 0.8.6j
Plugin Architecture 1.1
and serveral plugins

OS:OpenSuSE 10.2

When i look in the sql db field: 'version' then there is no data in there. And to be honest I have no clue how that data is generated :-/

If anybody could help - thanks a lot in advance

Cheers

Coactor
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Login to mysql as cactiuser, "use cacti" and run

Code: Select all

mysql> select * from version;
+--------+
| cacti  |
+--------+
| 0.8.6j | 
+--------+
Reinhard
coactor
Posts: 4
Joined: Wed Sep 05, 2007 9:56 am

Post by coactor »

Hi Gandalf,

Thanks for your fast reply.

As I mentioned above: field contains no data :-/

here is the output:

# mysql -u cacti -p cacti
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8408 to server version: 5.0.26

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select * from version;
+-------+
| cacti |
+-------+
| |
+-------+
1 row in set (0.00 sec)

I don't get that - will it help filling that field by hand ?

Cheers

Coactor
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Is it a fresh install?
Reinhard
coactor
Posts: 4
Joined: Wed Sep 05, 2007 9:56 am

Post by coactor »

yes - installed today.

everythings running allright but that error.

coactor
coactor
Posts: 4
Joined: Wed Sep 05, 2007 9:56 am

Solved.

Post by coactor »

Hey there.

Problem was: Before doing the webinstall (after fresh install) I applied the patch files. --> That was a bit stupid. :-/

Now I just inserted the version by hand in the database. No errors any more.

Cheers

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

Post by TheWitness »

Yey! Source does sometimes work better...

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests