Page 1 of 1

Fatal error: Call to undefined function loadXML()

PostPosted: 12. November 2008 20:56
by fgtamez
How can I activate PHP DOM XML class functions?

PostPosted: 12. November 2008 23:16
by Sharley
What have you tried already?

Look in .\xampp\apache\bin\php.ini for this line:
;extension=php_domxml.dll

If it is uncommented add the comment so it looks like the above.

Save the file and restart Apache.

Fatal error: Call to undefined function loadXML()

PostPosted: 13. November 2008 00:27
by fgtamez
Sharley, I did it. But didn't work. I was traing to install some GNU CMS, Mapix and Sapid. Always I find the same problem. I followed the sugestions for install, but the problem seems PHP didnĀ“t find DOMXML class. Thanks for your faster answer.

PostPosted: 13. November 2008 01:01
by Sharley
The correct setting, perhaps the default now, in the php.ini file is to have the extension commented out:
http://community.apachefriends.org/f/viewtopic.php?t=30393
http://community.apachefriends.org/f/viewtopic.php?t=31289

So make sure the extension looks like this in .\xampp\apache\bin\php.ini:
;extension=php_domxml.dll
Save the file and restart Apache (that's stop and then start Apache) - did you do this step also?

Check that it is disabled in the phpinfo() from the XAMPP welcome page at http://localhost

I have edited my first reply to reflect this.

Other related extensions in the php.ini file - these are from my php.ini file and how they are configured, if that helps any:
;extension=php_xmlreader.dll
extension=php_xmlrpc.dll
;extension=php_xmlwriter.dll
extension=php_xsl.dll


Can you paste here any specific error messages please?

In this Google Search is there anything of interest for your issue?
And this Google Search

From the above search results:
http://www.theregister.co.uk/2008/08/15 ... g_xml_php/

..and I am sure perhaps there is some info in the official php manual.
http://www.php.net/docs.php
http://se2.php.net/results.php?q=domxml&l=en&p=all

Also you could try making inquiries at the web sites of the scripts you are trying to install.

Your scripts may not be compatible with php5.

Others have had success by uninstalling then reinstalling the scripts again.

PostPosted: 13. November 2008 14:03
by fgtamez
Sharley. I did all your sugestions. but the trouble persist. I disabled php_domxml.dll with ";", but phpinfo() say that it is enable. I used php.ini in /bin of /apache.
this is "Fatal error: Call to undefined function loadXML() in C:\Documents and Settings\fgtamez\Mis documentos\xampp\htdocs\mapix\include\mapix.php on line 157"

I think that somthing is wrong in the includes class libreries. becouse phpinfo() say it is enabeld, when it was desabled.

Thanks.

Federico

PostPosted: 13. November 2008 23:09
by Sharley
fgtamez wrote:I disabled php_domxml.dll with ";", but phpinfo() say that it is enable. I used php.ini in /bin of /apache.

Apache is not using the php.ini file that is in the apache\bin folder perhaps - have you had a previous PHP install that has left a copy of the php.ini file in the Windows folder - have a look?

If so then rename it to php.ini.bak for example and then restart Apache and try again.

To check which php.ini file is being used, go to phpinfo() page from here:
http://localhost/xampp/phpinfo.php
and look for this line:
Loaded Configuration File
What path does it tell you?