PHP Classes

undefined method SimpleXMLElement::addChild()

Recommend this page to a friend!

      Site Map Generator  >  All threads  >  undefined method...  >  (Un) Subscribe thread alerts  
Subject:undefined method...
Summary:help with error please
Messages:3
Author:rob webster
Date:2008-01-10 19:40:40
Update:2008-01-11 18:27:40
 

  1. undefined method...   Reply   Report abuse  
Picture of rob webster rob webster - 2008-01-10 19:40:40
What does this imply?

PHP Fatal error: Call to undefined method SimpleXMLElement::addChild() in /home/y/o/york/public_html/SiteMapGenerator.class.php on line 175

phpinfo says:
Simplexml support - $Revision: 1.151.2.10 $

  2. Re: undefined method...   Reply   Report abuse  
Picture of Felipe Ribeiro Felipe Ribeiro - 2008-01-11 01:12:10 - In reply to message 1 from rob webster
Hi Rob,

Which PHP version are you using? I took a look at the documentation and found this:
SimpleXMLElement->addChild()

(PHP 5 >= 5.1.3)

php.net/manual/en/function.simplexm ...

  3. Re: undefined method...   Reply   Report abuse  
Picture of rob webster rob webster - 2008-01-11 18:27:40 - In reply to message 2 from Felipe Ribeiro
Many thanks for responding. That will probably be the answer, my host is on 5.1.2