Title: Call to undefined function:  xml_parser_create()
Last modified: August 18, 2016

---

# Call to undefined function: xml_parser_create()

 *  [geekdreams](https://wordpress.org/support/users/geekdreams/)
 * (@geekdreams)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/call-to-undefined-function-xml_parser_create/)
 * Using ecto to post to my site, I get the error “Fatal error: Call to undefined
   function: xml_parser_create() in /geekdreams.com/htdocs/wp-includes/class-IXR.
   php on line 146”.
 * This happened after upgrading my server to PHP5. But xml_parser_create() is supported
   in this version, so I don’t understand why I’m getting the error. Help?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [21 years ago](https://wordpress.org/support/topic/call-to-undefined-function-xml_parser_create/#post-184027)
 * my understanding is there’s a libxml2 library somewhere that you’re likely missing
   from your PHP installation…
 * -d
 *  [idbehold](https://wordpress.org/support/users/idbehold/)
 * (@idbehold)
 * [21 years ago](https://wordpress.org/support/topic/call-to-undefined-function-xml_parser_create/#post-184028)
 * **geekdreams**: I had this exact same problem, I’m guessing that your host is
   DreamHost. If so they are running PHP as CGI if you upgraded to PHP 5. This means
   that you cannot run `fopen()` which is vital to a lot of things in WordPress 
   such as reading in RSS feeds.
 * **davidchait**: Your CG-FeedReader has the same problem, since it uses `fopen()`
   to get the RSS feeds it does not work for anyone trying to use PHP 5 on DreamHost.
   From what I’ve read you need to use the `curl` method instead of the `fopen()`
   method.
    Also david, your CG-FeedReader causes validation problems, you cannot
   have an <h2> tag within a <span> tag. I had to go into cg-feedread.php myself
   to fix the problem.
 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [21 years ago](https://wordpress.org/support/topic/call-to-undefined-function-xml_parser_create/#post-184029)
 * 1. xml_parser_create the way I use it is in-memory only, not reading from a file.
   So even if fopen() is turned off, shouldn’t be a problem. Still needs the libxml2
   installation though.
 * 2. Actually, CG-FeedRead hasn’t had a problem with any of the fopen stuff for
   a long time now, as it uses sockets directly. FR works fine on DreamHost right
   now, as [http://www.realtechnews.com/blog/rtnews.php](http://www.realtechnews.com/blog/rtnews.php)
   is FR processing on DH.
 * 3. Grab the 1.5.2 release (out today, whenever my site comes back!), and the 
   spans should now be divs… I think… If not, let me know.
 * -d
 *  [idbehold](https://wordpress.org/support/users/idbehold/)
 * (@idbehold)
 * [21 years ago](https://wordpress.org/support/topic/call-to-undefined-function-xml_parser_create/#post-184030)
 * If they are using DreamHost as I am, I would like them to upgrade to PHP 5 to
   see if CG-FeedReader still works because I did the upgrade to PHP 5 and then 
   all of a sudden none of my FR stuff worked, as well as the WP Dashboard. I went
   into my DreamHost Panel and change my service back down to the previous version
   of PHP and then everything worked fine again, so if its not the PHP 5 then I 
   don’t understand why all of my FR and Dashboard stuff stopped working just after
   it was upgraded to PHP 5.
 *  [wsw70](https://wordpress.org/support/users/wsw70/)
 * (@wsw70)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/call-to-undefined-function-xml_parser_create/#post-184056)
 * I had exactly the same problem. Solved by re-emerging php with the ‘xml’ flag
   set (in /etc/make.conf)
 *  [whit](https://wordpress.org/support/users/whit/)
 * (@whit)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/call-to-undefined-function-xml_parser_create/#post-184058)
 * Odd, I just re-emerge php 4.4.2 with xml set (in /etc/portage/package.use – where
   Gentoo prefers php flags to be set now), and I still get the error.
 *  [dukecomputerwiz](https://wordpress.org/support/users/dukecomputerwiz/)
 * (@dukecomputerwiz)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/call-to-undefined-function-xml_parser_create/#post-184059)
 * I have no idea what your talking about and this is damn annoying. If this is 
   going to be an ongoing problem I would perfer to go back to the previous version.
 * Can someone pass along the fix in English please?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Call to undefined function: xml_parser_create()’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 6 participants
 * Last reply from: [dukecomputerwiz](https://wordpress.org/support/users/dukecomputerwiz/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/call-to-undefined-function-xml_parser_create/#post-184059)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
