• Resolved Ben

    (@ben69007)


    Hello

    When I try to download the customer invoice in my backend I have a white screen with the following error message:

    “A critical error has occurred on this site. Please check your site administration email inbox for more information.”

    In the email sent by WordPress it says:
    WordPress has found an error with one of your plugins, “Booster for WooCommerce”.

    WordPress version 6.6.1
    Active theme: Storefront (version 4.6.0)
    Current plugin: Booster for WooCommerce (version 7.2.2)
    PHP version 8.1.29

    Can you fix this error that is blocking me from downloading my invoices?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support David G

    (@gravid7)

    Hi @ben69007

    Thanks for reaching out to us.

    PDF invoices cannot be opened properly on some servers due to an error log conflict. So add below code on your wp-config.php. The query plugin also follows this method.

    @ini_set( ‘log_errors’, ‘On’ );
    @ini_set( ‘display_errors’, ‘Off’ );
    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );

    Thread Starter Ben

    (@ben69007)

    I added the code lines in my wp-config.php
    Here is the detailed error I received in my emails regarding this error.
    I downgraded my version from 7.2.2 to 7.2.1 to be able to download my invoices again.
    I never had this problem before. I didn’t changed anything with my website and my host.
    How to fix it please?

    Détails de l’erreur
    ======================
    Une erreur de type E_ERROR a été causée dans la ligne 1408 du fichier /homepages/2/d324813011/htdocs/dev/wp-content/plugins/woocommerce-jetpack/includes/shortcodes/class-wcj-orders-shortcodes.php. Message d’erreur?: Uncaught TypeError: round(): Argument #2 ($precision) must be of type int, string given in /homepages/2/d324813011/htdocs/dev/wp-content/plugins/woocommerce-jetpack/includes/shortcodes/class-wcj-orders-shortcodes.php:1408
    Stack trace:
    #0 /homepages/2/d324813011/htdocs/dev/wp-content/plugins/woocommerce-jetpack/includes/shortcodes/class-wcj-orders-shortcodes.php(1408): round()
    #1 /homepages/2/d324813011/htdocs/dev/wp-content/plugins/woocommerce-jetpack/includes/classes/class-wcj-shortcodes.php(379): WCJ_Orders_Shortcodes->wcj_order_total_tax_percent()
    #2 /homepages/2/d324813011/htdocs/dev/wp-includes/shortcodes.php(434): WCJ_Shortcodes->wcj_shortcode()
    #3 [internal function]: do_shortcode_tag()
    #4 /homepages/2/d324813011/htdocs/dev/wp-includes/shortcodes.php(273): preg_replace_callback()
    #5 /homepages/2/d324813011/htdocs/dev/wp-content/plugins/woocommerce-jetpack/includes/classes/class-wcj-pdf-invoice.php(260): do_shortcode()
    #6 /homepages/2/d324813011/htdocs/dev/wp-content/plugins/woocommerce-jetpack/includes/classes/class-wcj-pdf-invoice.php(281): WCJ_PDF_Invoice->get_html()
    #7 /homepages/2/d324813011/htdocs/dev/wp-content/plugins/woocommerce-jetpack/includes/class-wcj-pdf-invoicing.php(567): WCJ_PDF_Invoice->get_pdf()
    #8 /homepages/2/d324813011/htdocs/dev/wp-includes/class-wp-hook.php(324): WCJ_PDF_Invoicing->generate_pdf_on_init()
    #9 /homepages/2/d324813011/htdocs/dev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #10 /homepages/2/d324813011/htdocs/dev/wp-includes/plugin.php(517): WP_Hook->do_action()
    #11 /homepages/2/d324813011/htdocs/dev/wp-settings.php(700): do_action()
    #12 /homepages/2/d324813011/htdocs/wp-config.php(98): require_once('/homepages/2/d3...')
    #13 /homepages/2/d324813011/htdocs/dev/wp-load.php(55): require_once('/homepages/2/d3...')
    #14 /homepages/2/d324813011/htdocs/dev/wp-admin/admin.php(34): require_once('/homepages/2/d3...')
    #15 /homepages/2/d324813011/htdocs/dev/wp-admin/edit.php(10): require_once('/homepages/2/d3...')
    #16 {main}
    ? thrown
    • This reply was modified 2 months, 3 weeks ago by Ben.
    Plugin Support David G

    (@gravid7)

    Hi @ben69007,

    Thanks for reaching out to us.

    If possible you can contact us from our website. So, we can take a deeper look and help you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.