Title: Error: Class &#8216;DOMDocument&#8217; not found
Last modified: February 5, 2021

---

# Error: Class ‘DOMDocument’ not found

 *  Resolved [easinewe](https://wordpress.org/support/users/easinewe/)
 * (@easinewe)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-class-domdocument-not-found-2/)
 * Hello, I am getting the following error when I try to manually download or publish
   an article via the plugin.
 *     ```
       Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/html/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/class-exporter-content.php:228 
   
       Stack trace: 
       #0 /var/www/html/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/builders/class-builder.php(123): Apple_Exporter\Exporter_Content->nodes() 
       #1 /var/www/html/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/builders/class-components.php(793): Apple_Exporter\Builders\Builder->content_nodes() 
       #2 /var/www/html/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/builders/class-components.php(42): Apple_Exporter\Builders\Components->split_into_components() 
       #3 /var/www/html/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/builders/class-builder.php(66): Apple_Exporter\Builders\Components->build() 
       #4 /var/www/html/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/class-exporter.php(216): Apple_Exporter\Builders\Builder->to_array() 
       #5 /var/www/html/wp-content/plugins/publish in /var/www/html/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/class-exporter-content.php on line 228
   
       There has been a critical error on your website. Please check your site admin email inbox for instructions.
       ```
   
 * Any suggestions for what I can do to alleviate this.

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

 *  Thread Starter [easinewe](https://wordpress.org/support/users/easinewe/)
 * (@easinewe)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-class-domdocument-not-found-2/#post-14018025)
 * Was able to fix this by installing php-dom.
 *  Plugin Author [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * (@kevinfodness)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-class-domdocument-not-found-2/#post-14119506)
 * Glad you were able to get it fixed!

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

The topic ‘Error: Class ‘DOMDocument’ not found’ is closed to new replies.

 * ![](https://ps.w.org/publish-to-apple-news/assets/icon-256x256.png?rev=3017580)
 * [Publish To Apple News](https://wordpress.org/plugins/publish-to-apple-news/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/publish-to-apple-news/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/publish-to-apple-news/)
 * [Active Topics](https://wordpress.org/support/plugin/publish-to-apple-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/publish-to-apple-news/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/publish-to-apple-news/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/error-class-domdocument-not-found-2/#post-14119506)
 * Status: resolved