Support » Plugin: Flexible PDF Invoices for WooCommerce & WordPress » Can’t download or see any invoice – 500 error

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support ospiotr

    (@ospiotr)

    Hello Ricardo,

    What PHP version are you using? Please send us a WooCommerce system status. Here’s a screenshot showing how to get it.

    Thread Starter ricardo.araujo330

    (@ricardoaraujo330)

    Ok, here it is.:
    https://pastebin.com/fFCWkfdj

    Thank you

    Plugin Support ospiotr

    (@ospiotr)

    Thanks. Please activate WP DEBUG LOG in your WordPress and replicate the issue. Check the log file and if there are any errors, please paste them in this thread.

    Thread Starter ricardo.araujo330

    (@ricardoaraujo330)

    Tested a couple of errors that show up:

    [22-Aug-2018 10:26:01 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787
    Stack trace:
    #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8')
    #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4')
    #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(923): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce))
    #3 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(855): invoicePostType->getInvoicePdf('3610')
    #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->getInvoicePdfAction('3610')
    #5 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #6 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action( in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787
    [22-Aug-2018 10:26:04 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787
    Stack trace:
    #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8')
    #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4')
    #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(923): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce))
    #3 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(855): invoicePostType->getInvoicePdf('3610')
    #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->getInvoicePdfAction('3610')
    #5 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #6 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action( in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787
    [22-Aug-2018 10:26:10 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787
    Stack trace:
    #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8')
    #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4')
    #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(923): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce))
    #3 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(855): invoicePostType->getInvoicePdf('3610')
    #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->getInvoicePdfAction('3610')
    #5 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #6 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action( in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787
    [22-Aug-2018 10:26:13 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787
    Stack trace:
    #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8')
    #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4')
    #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(923): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce))
    #3 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(855): invoicePostType->getInvoicePdf('3610')
    #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->getInvoicePdfAction('3610')
    #5 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #6 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action( in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787
    [22-Aug-2018 10:26:21 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787
    Stack trace:
    #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8')
    #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4')
    #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(923): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce))
    #3 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(855): invoicePostType->getInvoicePdf('3610')
    #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->getInvoicePdfAction('3610')
    #5 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #6 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action( in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787
    [22-Aug-2018 10:29:45 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787
    Stack trace:
    #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8')
    #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4')
    #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(923): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce))
    #3 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(855): invoicePostType->getInvoicePdf('3610')
    #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->getInvoicePdfAction('3610')
    #5 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #6 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action( in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787
    [22-Aug-2018 10:29:48 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787
    Stack trace:
    #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8')
    #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4')
    #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(923): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce))
    #3 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(855): invoicePostType->getInvoicePdf('3610')
    #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->getInvoicePdfAction('3610')
    #5 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #6 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action( in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787
    [22-Aug-2018 10:29:55 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787
    Stack trace:
    #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8')
    #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4')
    #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(923): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce))
    #3 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(855): invoicePostType->getInvoicePdf('3610')
    #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->getInvoicePdfAction('3610')
    #5 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #6 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action( in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787
    [22-Aug-2018 10:30:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787
    Stack trace:
    #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8')
    #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4')
    #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(923): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce))
    #3 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(855): invoicePostType->getInvoicePdf('3610')
    #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->getInvoicePdfAction('3610')
    #5 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #6 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action( in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787
    [22-Aug-2018 10:31:43 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787
    Stack trace:
    #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8')
    #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4')
    #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(83): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce))
    #3 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->updatePdfInvoiceAction(3610, Object(WP_Post), true)
    #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #5 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #6 /home/floresno/public_html/wp-includes/post.php(3673): do_action('save_post', 3610, Object(WP_Post), tr in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787

    Also, this came up when I tried to update one of my invoices:

    Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php:1787 Stack trace: #0 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php(1232): mPDF->setMBencoding('UTF-8') #1 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(878): mPDF->__construct('pl-PL', 'A4') #2 /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/invoicePostType.php(83): invoicePostType->generatePdfFileContent(Object(InvoicePostWoocommerce)) #3 /home/floresno/public_html/wp-includes/class-wp-hook.php(286): invoicePostType->updatePdfInvoiceAction(3610, Object(WP_Post), true) #4 /home/floresno/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #5 /home/floresno/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #6 /home/floresno/public_html/wp-includes/post.php(3673): do_action('save_post', 3610, Object(WP_Post), tr in /home/floresno/public_html/wp-content/plugins/flexible-invoices/class/mpdf/mpdf.php on line 1787

    Thread Starter ricardo.araujo330

    (@ricardoaraujo330)

    Updated php version from 7.0 to 7.2 and it’s showing the invoices now…
    Its solved for the moment. Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t download or see any invoice – 500 error’ is closed to new replies.