Title: [Plugin: WordPress.com Stats] Fatal Error while installing WP Stats
Last modified: August 19, 2016

---

# [Plugin: WordPress.com Stats] Fatal Error while installing WP Stats

 *  [rjdotorg1](https://wordpress.org/support/users/rjdotorg1/)
 * (@rjdotorg1)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-fatal-error-while-installing-wp-stats/)
 * Hi, when trying to add my API for WP stats, I get the following message:
    Fatal
   error: Call to undefined function xml_parser_create() in /home/(blogname)/public_html/
   wp-includes/class-IXR.php on line 165
 * Does anyone have any idea how to resolve this? I can’t readily see anyone else
   having the same problem…
 * [http://wordpress.org/extend/plugins/stats/](http://wordpress.org/extend/plugins/stats/)

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

 *  [freshy](https://wordpress.org/support/users/freshy/)
 * (@freshy)
 * [17 years ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-fatal-error-while-installing-wp-stats/#post-1073247)
 * I get the same error here. Only mine is on line 434
    Anybody please?
 *  [geminirai](https://wordpress.org/support/users/geminirai/)
 * (@geminirai)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-fatal-error-while-installing-wp-stats/#post-1073304)
 * The most likely issue(it was mine) is that you are missing the xml extension 
   for php. [http://www.php.net/manual/en/book.xml.php](http://www.php.net/manual/en/book.xml.php)
 * You may need to ask your server administrator to add xml support for php.
 * Php may also need to be recompiled for this, though it might be possible to just
   compile the xml extension.
 * Using gentoo, I was able to resolve the issue by adding xml to my use flags and
   recompiling php with –newuse.
 * Note that regardless of how you do this, you will need to reload/restart apache
   for it to take effect, as I had to too 🙂

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

The topic ‘[Plugin: WordPress.com Stats] Fatal Error while installing WP Stats’ 
is closed to new replies.

## Tags

 * [Stats](https://wordpress.org/support/topic-tag/stats/)

 * 2 replies
 * 3 participants
 * Last reply from: [geminirai](https://wordpress.org/support/users/geminirai/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-fatal-error-while-installing-wp-stats/#post-1073304)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
