Title: Fatal error: Uncaught Error: Class &#8216;DOMDocument&#8217;
Last modified: May 9, 2019

---

# Fatal error: Uncaught Error: Class ‘DOMDocument’

 *  Resolved [Cedricmi](https://wordpress.org/support/users/cedricmi/)
 * (@cedricmi)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-domdocument/)
 * Hello,
 * I found this in the PHP error log, any idea how I can fix it please ?
 * Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/wp/
   wp-content/plugins/all-in-one-seo-pack/aioseop_class.php:4506
 * Stack Trace
    1. All_in_One_SEO_Pack->get_prev_next_links(Object(WP_Post)) /var/
   www/html/wp/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php:4056 2. 
   All_in_One_SEO_Pack->wp_head(”) /var/www/html/wp/wp-includes/class-wp-hook.php:
   286 3. WP_Hook->apply_filters(NULL, Array) /var/www/html/wp/wp-includes/class-
   wp-hook.php:310 4. WP_Hook->do_action(Array) /var/www/html/wp/wp-includes/plugin.
   php:465 5. do_action(‘wp_head’) /var/www/html/wp/wp-includes/general-template.
   php:2746 6. wp_head() /var/www/html/wp/wp-content/themes/valenti/header.php:146
   7. require_once(‘/var/www/html/w…’) /var/www/html/wp/wp-includes/template.php:
   722 8. load_template(‘/var/www/html/w…’, true) /var/www/html/wp/wp-includes/template.
   php:671 9. locate_template(Array, true) /var/www/html/wp/wp-includes/general-
   template.php:41 10. get_ in /var/www/html/wp/wp-content/plugins/all-in-one-seo-
   pack/aioseop_class.php on line 4506 /var/www/html/wp/wp-content/themes/valenti/
   single.php:2
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-error-class-domdocument%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-domdocument/#post-11513732)
 * You need to install the DOM extension. Your web developer or hosting company 
   should be able to help you with this.

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: Uncaught Error: Class ‘DOMDocument’’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-domdocument/#post-11513732)
 * Status: resolved