Closed (fixed)
Project:
Drupal core
Version:
6.14
Component:
other
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
21 Nov 2009 at 18:15 UTC
Updated:
12 Jan 2010 at 04:30 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| common_methods1.txt | 10.44 KB | beamor |
Comments
Comment #1
don greco commentedgetting same error, same situation
Comment #2
erik.daniel commentedloadXML 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.
Comment #3
dave reidYou should created a DomDocument with content, then trying to load the same content into it. It doesn't make any sense.
Should be: