Title: Export PDF not working
Last modified: May 16, 2019

---

# Export PDF not working

 *  Resolved [expia](https://wordpress.org/support/users/expia/)
 * (@expia)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/export-pdf-not-working/)
 * Export PDF not working in admin.Working fine on my staging but on live Export
   PDF issue.
    I am using WordPress 5.1.1 and PHP 7.2. Advanced CF7 DB Version 1.6.1
    -  This topic was modified 6 years, 11 months ago by [expia](https://wordpress.org/support/users/expia/).
    -  This topic was modified 6 years, 11 months ago by [expia](https://wordpress.org/support/users/expia/).

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

 *  Thread Starter [expia](https://wordpress.org/support/users/expia/)
 * (@expia)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/export-pdf-not-working/#post-11541524)
 * While Exporting PDF getting following Fatal error..
 * Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/wp-
   content/plugins/advanced-cf7-db/admin/pdfgenerate/dompdf/src/Dompdf.php:488 Stack
   trace: #0 /var/www/html/wp-content/plugins/advanced-cf7-db/admin/class-advanced-
   cf7-db-admin.php(1312): Dompdf\Dompdf->loadHtml(‘<!DOCTYPE HTML …’) #1 /var/www/
   html/wp-content/plugins/advanced-cf7-db/admin/class-advanced-cf7-db-admin.php(
   816): vsz_cf7_export_to_pdf(2340, ”) #2 /var/www/html/wp-includes/class-wp-hook.
   php(286): Advanced_Cf7_Db_Admin->vsz_cf7_save_setting_callback(”) #3 /var/www/
   html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #
   4 /var/www/html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #5 /var/
   www/html/wp-admin/admin.php(169): do_action(‘admin_init’) #6 {main} thrown in/
   var/www/html/wp-content/plugins/advanced-cf7-db/admin/pdfgenerate/dompdf/src/
   Dompdf.php on line 488
 *  Thread Starter [expia](https://wordpress.org/support/users/expia/)
 * (@expia)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/export-pdf-not-working/#post-11542814)
 * After debugging found following solution. Try following commands.
    sudo yum install
   php-xml sudo yum install php-dom sudo yum install php-mbstring
 * sudo systemctl restart httpd
    sudo service httpd restart sudo systemctl restart
   php-fpm
 * In most cases php-xml and systemctl restart httpd will resolved issue but in 
   my case i have tried all commands.
 * My issue specific to AWS server if it is local or other then need to install 
   only php-xml and Apache restart.
 * Hope my solution help others.
    -  This reply was modified 6 years, 11 months ago by [expia](https://wordpress.org/support/users/expia/).

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

The topic ‘Export PDF not working’ is closed to new replies.

 * ![](https://ps.w.org/advanced-cf7-db/assets/icon-256x256.jpg?rev=1696186)
 * [Advanced Contact form 7 DB](https://wordpress.org/plugins/advanced-cf7-db/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-cf7-db/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-cf7-db/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-cf7-db/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-cf7-db/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-cf7-db/reviews/)

## Tags

 * [export pdf](https://wordpress.org/support/topic-tag/export-pdf/)

 * 2 replies
 * 1 participant
 * Last reply from: [expia](https://wordpress.org/support/users/expia/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/export-pdf-not-working/#post-11542814)
 * Status: resolved