Fatal error: Call to undefined function: xml_parser_create()

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

Moderators: Developers, Moderators

roy
Posts: 7
Joined: Sat Jun 04, 2005 9:59 am

Fatal error: Call to undefined function: xml_parser_create()

Post by roy »

Hi, i'm getting error while installing cacti:
Fatal error: Call to undefined function: xml_parser_create() in /var/www/html/cacti/lib/xml.php on line 31
Running:
Mandrake 10.2
php 4.3.2-devel

How i get this error:

first i get Cacti Installation Guide i choose next, then i choose new install and next. Then i verify that everything is correct and it is... then finish, thats when i get the error. Any one knows what causes it?
crisguille
Posts: 2
Joined: Mon Jun 27, 2005 8:05 am

Re: Fatal error: Call to undefined function: xml_parser_crea

Post by crisguille »

roy wrote:Hi, i'm getting error while installing cacti:
Fatal error: Call to undefined function: xml_parser_create() in /var/www/html/cacti/lib/xml.php on line 31
Running:
Mandrake 10.2
php 4.3.2-devel

How i get this error:

first i get Cacti Installation Guide i choose next, then i choose new install and next. Then i verify that everything is correct and it is... then finish, thats when i get the error. Any one knows what causes it?
I've mdk 10.1 and have the same error :-( ¿some sugerernce?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Make sure php is build with XML support:

"php -m" -> should have an "xml" line.

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?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Maybe you should install the php-xml package, for example ftp://ftp.free.fr/pub/Distributions_Lin ... k.i586.rpm
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
roy
Posts: 7
Joined: Sat Jun 04, 2005 9:59 am

Post by roy »

php -m gives me xml, urpmi php-xml says i have it already...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Uhm,

Just noticed your version of PHP 4.3.2-devel. Please upgrade to a more recent version. I would suggest 4.3.6++

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?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Odds are, you are actually using 'php432-devel-4.3.10' (Can't recall the exact reason for this).

Could you do the following:

rpm -qa|grep php

And are you using the tarball of Cacti, or the Mandriva RPM?
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
roy
Posts: 7
Joined: Sat Jun 04, 2005 9:59 am

Post by roy »

Yes i'm useing php432-devel 4.3.10 mandriva rpm, i have not found any other rpm that is newer.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Roy, please run "php -v" from the command line and return the output.

Larry
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?
roy
Posts: 7
Joined: Sat Jun 04, 2005 9:59 am

Post by roy »

[root@core ~]# php -v
PHP 4.3.10 (cli) (built: Mar 21 2005 15:55:05)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

there it is.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by 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?
roy
Posts: 7
Joined: Sat Jun 04, 2005 9:59 am

Post by roy »

hm. that didn't give me any clues... cause php/xml is not my strong side.. hehe
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Sorry,

You need to open a bug with the mandrake people. If "php -m" shows the XML line, then your RPM is hosed and the contributer who built your distribution needs to investigate.

TheWitness
Last edited by TheWitness on Fri Jul 01, 2005 5:21 pm, edited 1 time in total.
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?
roy
Posts: 7
Joined: Sat Jun 04, 2005 9:59 am

Post by roy »

hmmm ok, but thanks for the help guys!
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

I'm using Mandriva 2005 LE for production, so it should work just find.

If you could do the following, and post the output:

rpm -qa|grep php
rpm -qa|grep apache
rpm -qa|grep xml
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest