Call to undefined function: xml_parser_create()

marros

03-11-2004 13:31:16

I have downloaded and installed all of the required libraries, etc, for Mandrake 10.1. Whenever I try to connect to the site /netmrg, I get the above error, and when I run php index.php, I also get the error. I don't get errors anywhere else. The version of libxml2 is libxml2-2.6.13-1mdk, and php is PHP 4.3.8. Can anyone help?

The complete error is
Fatal error Call to undefined function xml_parser_create() in /usr/local/var/www/netmrg/lib/xml_to_array.php on line 81

Thanks

silfreed

03-11-2004 16:31:10

Does Mandrake have some sort of php-xml package available?

-Doug

marros

04-11-2004 10:20:57

Yes it does! So I installed it, and a couple of other xml related stuff....and still the same error.

silfreed

04-11-2004 10:34:51

You will probably have to restart httpd for php to reload its modules. If this doesn't help, you will have to find and edit your [b8555d92f97]php.ini[/b8555d92f97] to add something similar to this (and restart httpd).
[code18555d92f97]extension=xml.so[/code18555d92f97]
Although, I'm not sure what the module name is; it's compiled into Red Hat's default php package. Let us know if you continue to have problems.

-Doug

marros

04-11-2004 11:25:07

I found that php reads the contents of /etc/php.d for additional ini's...like xml, mysql, etc. There is also a directory called /etc/php that should contain the included ini files to be read, but it doesn't get read. I simlinked the 52_xml.ini found in the /etc/php/ to /etc/php.d/ restarted http and now it works. Thanks for your help.

This might be a bug with Mandrake 10.1.