Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Nov 2008
    Posts
    34
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Call to undefined method domdocument::loadXML() Error

    Fatal error: Call to undefined method domdocument::loadXML()..

    I am running windows, with the php_domxml.dll extension turn On in the php.ini

    How do i solve it? Thanks

  2. #2
    Regular Coder lokeshshettyk's Avatar
    Join Date
    Aug 2008
    Location
    On the way to the moon!
    Posts
    157
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Try commenting out the line below in your php.ini
    extension=php_domxml.dll
    Then,
    Stop and start/restart Apacheserver.


    And keep this in mind as well...

    From the manual:
    DOMDocument->load() - Load XML from a file
    DOMDocument->loadXML() - Load XML from a string

    So, either something like:
    $dom->loadXML("<root><node>foo</node></root>");
    or:
    $dom->load("./memberroster.xml");
    Last edited by lokeshshettyk; Feb 16th, 2009 at 04:18 AM.
    _______________________________________________________________________________________
    Thank the user for his/her helpful post by clicking on the button below the post :)

    Cheers :)
    ~ LSK ~

  3. #3
    New Coder
    Join Date
    Nov 2008
    Posts
    34
    Thanks
    15
    Thanked 0 Times in 0 Posts
    yes, i have tried but it doesn't seems to solve the problem.

  4. #4
    Senior Coder Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,651
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Make a page with this in it:
    PHP Code:
    <?php
    phpinfo
    ();
    ?>
    Upload it to the same folder your code is in(or place it in the same folder if you're running it locally), and load it in your browser. When the page is rendered look in the extensions section to see if the DOM extension was loaded.

  5. #5
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Inigoesdr View Post
    Make a page with this in it:
    PHP Code:
    <?php
    phpinfo
    ();
    ?>
    Upload it to the same folder your code is in(or place it in the same folder if you're running it locally), and load it in your browser. When the page is rendered look in the extensions section to see if the DOM extension was loaded.

    Comment Below in php.ini
    extension=php_domxml.dll
    restart apache ..

  6. #6
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    17,025
    Thanks
    4
    Thanked 2,668 Times in 2,637 Posts
    Do you have libxml.dll located in a system pathed directory (usually system32)? Without it, the extension will not load.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •