• Resolved Geoffrey

    (@geoffrey1963)


    Hi there,
    I am using version 2.8.1 and when I go to print invoice I am getting this fatal error message as follows;
    Fatal error: Call to undefined function Dompdf\Css\ctype_xdigit()
    #0 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Color.php(197): Dompdf\Css\Color::getArray(‘0000FF’)
    #1 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Style.php(817): Dompdf\Css\Color::parse(‘blue’)
    #2 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Style.php(1849): Dompdf\Css\Style->munge_color(‘blue’)
    #3 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Style.php(1717): Dompdf\Css\Style->set_prop_color(‘border_top_colo…’, ‘blue’)
    #4 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Style.php(1735): Dompdf\Css\Style->_set_style_side_type(‘border’, ‘top’, ‘color’, ‘blue’, false)
    #5 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Style.php(1754): Dompdf\Css\Style->_set_style_sides_type(‘border’, ‘blue’, ‘blue’, ‘blue’, ‘blue’, ‘color’, false)
    #6 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Style.php(1775): Dompdf\Css\Style->_set_style_type(‘border’, ‘color’, ‘blue’, false)
    #7 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Style.php(2665): Dompdf\Css\Style->_set_style_type_important(‘border’, ‘color’, ‘blue’)
    #8 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Style.php(894): Dompdf\Css\Style->set_border_color(‘blue’)
    #9 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Stylesheet.php(1638): Dompdf\Css\Style->__set(‘border_color’, ‘blue’)
    #10 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Stylesheet.php(1671): Dompdf\Css\Stylesheet->_parse_properties(‘display: block;…’)
    #11 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Stylesheet.php(1415): Dompdf\Css\Stylesheet->_parse_sections(‘blockquote[type…’)
    #12 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Stylesheet.php(420): Dompdf\Css\Stylesheet->_parse_css(‘/**\r\n * dompdf …’)
    #13 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(599): Dompdf\Css\Stylesheet->load_css_file(‘/hermes/bosnacw…’, 1)
    #14 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(761): Dompdf\Dompdf->processHtml()
    #15 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(54): Dompdf\Dompdf->render()
    #16 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(712): WPO\WC\PDF_Invoices\PDF_Maker->output()
    #17 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(747): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #18 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(360): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’)
    #19 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-includes/class-wp-hook.php(287): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
    #20 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #21 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #22 /hermes/bosnacweb05/bosnacweb05ag/b2831/nf.thenuthouse1/public_html/wp-admin/admin-ajax.php(184): do_action(‘wp_ajax_generat…’)
    #23 {main}

    PS I just did very latest update for plugin but this error occurred before I updated. Any help would be grateful.

    Thanks
    Geoff

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi Geoff,
    This means the CType extension is missing on your PHP installation. Your host should be able to help with this, it’s a very common PHP extension.

    Thread Starter Geoffrey

    (@geoffrey1963)

    Hello Ewout,
    Thank you for such a fast reply. I will contact my hosts immediately.

    Thanks
    GEoff

    Thread Starter Geoffrey

    (@geoffrey1963)

    Hello Ewout, I have been onto my webhost and they have installed Ctype extension on the server. If I check the php file on my server I can see the Ctype extension code, but I am still getting the same fatal error. I have cleared cache etc, but the error persists. Anything else I can do from my end?

    Thanks
    Geoff
    PS the php code on my server reads…
    PHP 7.4: cType()
    ; Local Variables:
    ; tab-width: 4
    ; End:
    extension=propro.so
    extension=raphf.so
    extension=ctype.so

    • This reply was modified 4 years, 1 month ago by Geoffrey.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when trying to print invoice’ is closed to new replies.