• Resolved marc2307

    (@marc2307)


    Hello,

    I would like to report a critical error I receive on the Send PDF Options Page after choosing a contact form. It is in german but the main error is marked as bold:

    Ein Fehler vom Typ E_ERROR wurde in der Zeile 20273 der Datei /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php verursacht. Fehlermeldung: Uncaught DivisionByZeroError: Division by zero in /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php:20273
    Stack trace:
    
    0 /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php(856): Mpdf\Mpdf->_tableHeight()
    
    1 /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Tag.php(250): Mpdf\Tag\Table->close()
    
    2 /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(13664): Mpdf\Tag->CloseTag()
    
    3 /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(9752): Mpdf\Mpdf->WriteHTML()
    
    4 /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(9902): Mpdf\Mpdf->_puthtmlheaders()
    
    5 /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(2032): Mpdf\Mpdf->_enddoc()
    
    6 /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(9449): Mpdf\Mpdf->Close()
    
    7 /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/views/send-pdf-admin.php(614): Mpdf\Mpdf->Output()
    
    8 /MYWEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/classes/send-pdf.php(198): include('…')
    
    9 /MYWEBSPACE/wp-includes/class-wp-hook.php(308): cf7_sendpdf->wpcf7pdf_dashboard_html_page()
    
    10 /MYWEBSPACE/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    11 /MYWEBSPACE/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    12 /MYWEBSPACE/wp-admin/admin.php(259): do_action()
    
    13 {main}
    
    thrown

    I cannot open the settings page for a contact form that has been working properly before. Also on the frontend the contact form is not being send anymore. Therefore the issue is quite critical.

    Could you please look into this issue? If you need any more information I’m more than happy to assist you.

    Thank you and kind regards,
    Marc

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Florent Maillefaud

    (@florent73)

    Hi!

    Can you install the lastest version?

    Thanks

    Thread Starter marc2307

    (@marc2307)

    Hi, thank you for your response. Unfortunately the error remains. I remembered that I set some Margin or Padding Options to 0, which seem to cause this error (Division by Zero). But now I cannot revert that setting because of the Fatal error. Our PHP Version is 8.0.X.

    Fatal error: Uncaught DivisionByZeroError: Division by zero in /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php:20273 Stack trace:
    #0 /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php(856): Mpdf\Mpdf->_tableHeight()
    #1 /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Tag.php(250): Mpdf\Tag\Table->close()
    #2 /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(13664): Mpdf\Tag->CloseTag()
    #3 /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(9752): Mpdf\Mpdf->WriteHTML()
    #4 /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(9902): Mpdf\Mpdf->_puthtmlheaders()
    #5 /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(2032): Mpdf\Mpdf->_enddoc()
    #6 /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(9449): Mpdf\Mpdf->Close()
    #7 /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/views/send-pdf-admin.php(628): Mpdf\Mpdf->Output()
    #8 /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/classes/send-pdf.php(212): include(‘…’)
    #9 /MY_WEBSPACE/wp-includes/class-wp-hook.php(310): cf7_sendpdf->wpcf7pdf_dashboard_html_page()
    #10 /MY_WEBSPACE/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #11 /MY_WEBSPACE/wp-includes/plugin.php(517): WP_Hook->do_action()
    #12 /MY_WEBSPACE/wp-admin/admin.php(259): do_action()
    #13 {main} thrown in /MY_WEBSPACE/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/vendor/mpdf/mpdf/src/Mpdf.php on line 20273

    Plugin Author Florent Maillefaud

    (@florent73)

    Hi!

    I’m try margin 0 too. It’s works. I don’t know how help you…

    Try to change settings in table wp_postmeta, meta key _wp_cf7pdf for your ID form.

    Thanks

    Thread Starter marc2307

    (@marc2307)

    Hey, thank you for your help. I’ve managed to restore the functionality by deleting the entry in the _postmeta table. I also found the cause of the error after that. The error was caused by my html-code and a negative margin for a table (<table style=”margin-top: -20px;”>.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical Error PHP 8.0 mpdf’ is closed to new replies.