Fatal error: Call to undefined function loadXML()

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Fatal error: Call to undefined function loadXML()

Postby fgtamez » 12. November 2008 20:56

How can I activate PHP DOM XML class functions?
fgtamez
 
Posts: 3
Joined: 12. November 2008 20:49
Location: Monterrey, N.L.

Postby Sharley » 12. November 2008 23:16

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.
Last edited by Sharley on 13. November 2008 00:54, edited 1 time in total.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Fatal error: Call to undefined function loadXML()

Postby fgtamez » 13. November 2008 00:27

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.
fgtamez
 
Posts: 3
Joined: 12. November 2008 20:49
Location: Monterrey, N.L.

Postby Sharley » 13. November 2008 01:01

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Postby fgtamez » 13. November 2008 14:03

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
fgtamez
 
Posts: 3
Joined: 12. November 2008 20:49
Location: Monterrey, N.L.

Postby Sharley » 13. November 2008 23:09

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?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 108 guests