• Resolved lippiun

    (@lippiun)


    Hello,

    When on the checkout page, if i click the ‘Place order’ button an error appears ‘Internal Error’. If I disable the PDF Invoices plugin it works.

    When checking the error log this is what I’m getting:

    2018-01-12T16:38:48+00:00 CRITICAL Uncaught exception ‘MpdfException’ with message ‘Unable to create output file: /home/linweb18/h/hedgeplants.com/user/htdocs/wp-content/uploads/woocommerce-pdf-invoices/attachments/2018/2235-2018.pdf’ in /home/linweb18/h/hedgeplants.com/user/htdocs/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php:9442
    Stack trace:
    #0 /home/linweb18/h/hedgeplants.com/user/htdocs/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-document.php(204): mPDF->Output(‘/home/linweb18/…’, ‘F’)
    #1 /home/linweb18/h/hedgeplants.com/user/htdocs/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-invoice.php(321): BEWPI_Abstract_Document->generate(‘F’)
    #2 /home/linweb18/h/hedgeplants.com/user/htdocs/wp-content/plugins/woocommerce-pdf-invoices/includes/woocommerce-pdf-invoices.php(574): BEWPI_Abstract_Invoice->generate()
    #3 [internal function]: BE_WooCommerce_PDF_Invoices->attach_invoice_to_email(Array, ‘new_order’, Object(WC_Order))
    #4 /home/linweb18/h/hedgeplants.com/user/htdoc

    2018-02-02T12:16:48+00:00 CRITICAL Cannot access empty property

    2018-02-02T12:16:55+00:00 CRITICAL Cannot access empty property

    2018-02-02T12:19:40+00:00 CRITICAL Cannot access empty property

    2018-02-02T12:39:16+00:00 CRITICAL Cannot access empty property

    2018-02-02T12:43:08+00:00 CRITICAL Cannot access empty property

    I’ve searched the errors on this forum and can see others having the same issue. Suggestions were saying that manually creating the 2018 folder in the attachments directory fixed the problem. However, when trying this the issue still remains.

    can you help please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve had this happen too in the free version. It seemed to start when the plugin was updated. Try going into the Invoices settings, get rid of everything in “Attach to Emails”, then Save Changes. Then add them back in and Save Changes. It worked for me after that. I’ve had to do this every time the plugin was updated for several versions. This is definitely a bug. Isn’t it open source? If so, can’t someone fix it?

    If that doesn’t work, I’m seeing people having success with this error in this thread:

    https://www.ads-software.com/support/topic/cant-create-a-pdf-invoice-http-error-500/

    Also, I haven’t updated this plugin for the past 2-3 weeks, partly because of this problem. So I don’t know if a new issue has been introduced or if the above thread does the same thing my fix does. It’s definitely the same error you and I have had though. Really ANNOYING.

    Plugin Author Bas Elbers

    (@baaaaas)

    This error has been fixed in latest version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Internal Error when attempting to generate invoice’ is closed to new replies.