• Resolved expia

    (@expia)


    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.
    • This topic was modified 6 years, 11 months ago by expia.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter expia

    (@expia)

    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

    (@expia)

    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.
Viewing 2 replies - 1 through 2 (of 2 total)

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