Host: Localhost Fatal error: Call to undefined function

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

Moderators: Developers, Moderators

Post Reply
Gessy
Posts: 1
Joined: Tue Jun 28, 2005 10:53 am

Host: Localhost Fatal error: Call to undefined function

Post by Gessy »

Hi,

I'm trying install cacti on my system.
I'm using gentoo linux with apache-2.0.54-r7 mysql-4.0.24 and cacti-0.8.6e
I make configurations mencioned in the web documentation and the login section, settings, System Utilities works fine but section like DEVICE and GRAPH dosn't work. The follow message is showed when i click on DEVICE:

Fatal error: Call to undefined function: input_validate_input_number() in /var/www/localhost/htdocs/cacti/host.php on line 658

Somebody knows i can ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Um....

Sounds like gentoo package might be broken... :(

I will email the maintainer.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
ramereth
Posts: 11
Joined: Wed Jan 28, 2004 8:46 am

Post by ramereth »

Can you please file a bug on bugs.gentoo.org and assign it to the netmon@gentoo.org address? I'll see if I can troubleshoot this later tonight.

Any ideas whats wrong?
ramereth
Posts: 11
Joined: Wed Jan 28, 2004 8:46 am

Post by ramereth »

Ok, I found out that the tarball I have digested for 0.8.6e isn't the same as the site. Somehow that got changed when we moved it up. I did a diff on the two tarballs and didn't see anything. The only thing that was different was that the tarball we have is a few bytes smaller than the official one.

I just committed new digests and uploaded a new tarball for the mirrors. Give that about 4-6 hours to catch up (Or just manually grab the tarball from the cacti site), and see if that fixes your problem.

Cheers-
keithpiepho
Posts: 1
Joined: Wed Jul 06, 2005 8:33 am

Solution

Post by keithpiepho »

Greetings,
I had this same problem and just found the following problem/solution:

The gentoo update does not overwrite your include/config.php file because it includes your database login info.

Unfortunately, it also has another change that adds an include for lib/html_validate.php, which is where the input_validate_blah_blah function is. I copied the version of config.php out of the tarball, then re-added my db login info, and all was right with the world.

-- - keith
ramereth
Posts: 11
Joined: Wed Jan 28, 2004 8:46 am

Post by ramereth »

Are you using webapp-config to install cacti? If not, you should really consider using it because it would have saved that issue from happening. It acts like a secondary package manager for multiple sites.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Did you rename the include/config.php.dist to include/config.php and reconfigure your database settings again. Does this solve the problem?

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?
ramereth
Posts: 11
Joined: Wed Jan 28, 2004 8:46 am

Post by ramereth »

Also, check the permissions for config.php. I noticed that the recent upgrade changed the permissions and apache couldn't see the file.
sbecker
Posts: 3
Joined: Fri Jul 15, 2005 11:54 pm

Re: Solution

Post by sbecker »

keithpiepho wrote:Greetings,
I copied the version of config.php out of the tarball, then re-added my db login info, and all was right with the world.
This is what fixed it for me as well :D
uvoguine
Posts: 1
Joined: Fri Jun 09, 2006 2:54 am
Location: France

Re: Host: Localhost Fatal error: Call to undefined funct

Post by uvoguine »

Gessy wrote:Hi,

I'm trying install cacti on my system.
I'm using gentoo linux with apache-2.0.54-r7 mysql-4.0.24 and cacti-0.8.6e
I make configurations mencioned in the web documentation and the login section, settings, System Utilities works fine but section like DEVICE and GRAPH dosn't work. The follow message is showed when i click on DEVICE:

Fatal error: Call to undefined function: input_validate_input_number() in /var/www/localhost/htdocs/cacti/host.php on line 658

Somebody knows i can ?

Hi, sorry for my English, I m just french (lol)
I have the same problem as you. But for resolve it, i modify /etc/cacti.conf. In the include path, i add include_once($config["library_path"] . "/html_validate.php");

After Cacti run normally
Bye, guy
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest