this is the line in question
function art_menu_xml_parcer($content, $showSubMenus)
{
$doc = new DOMDocument();
$doc->loadXML($content);//this is the line in question
$parent = $doc->documentElement;
$elements = $parent->childNodes;
need help. my site worked fine on my localhost but when i uploaded it to my live server i keep getting this error
need help to recode line to match my hosting server.
im using php 5
i have attached the common_method file
please help

CommentFileSizeAuthor
common_methods1.txt10.44 KBbeamor

Comments

don greco’s picture

getting same error, same situation

erik.daniel’s picture

loadXML is not a Drupal method, it is a method of the DOMDocument class of PHP, part of the DOM PHP module. Your live server may not have this module active, hence the missing method.

dave reid’s picture

Status: Active » Fixed

You should created a DomDocument with content, then trying to load the same content into it. It doesn't make any sense.

Should be:

$doc = new DOMDocument();
$doc->loadXML($content);

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.