Jump to content
  • 0

Tcpdf Error - Cannot Open Pdf


Doctrine

Question

3 answers to this question

Recommended Posts

  • 0

There may be an error just prior to trying to render the PDF invoice, or something else. Try enabling error reporting and see if any errors are displayed.

 

To enable error reporting, edit /config/blesta.php and change
 
Configure::errorReporting(0);
 
to
 
Configure::errorReporting(-1);
Link to comment
Share on other sites

  • 0

 

There may be an error just prior to trying to render the PDF invoice, or something else. Try enabling error reporting and see if any errors are displayed.

 

To enable error reporting, edit /config/blesta.php and change
 
Configure::errorReporting(0);
 
to
 
Configure::errorReporting(-1);

 

 

Call to a member function download() on a non-object on line 233 in /components/invoice_delivery/invoice_delivery.php

 

233 line:         $this->buildInvoices($invoices)->download();

Link to comment
Share on other sites

  • 0

You may want to check that your invoice templates exist on the file system and that the template set for the company is correctly set to one of those.

 

In Blesta, under [settings] -> [Company] -> [billing/Payment] -> [invoice Customization], the setting "Invoice Template" should be set to Default or Quickbooks. Try re-saving these values.

 

These files should exist:

/components/invoice_templates/default_invoice/
    /components/invoice_templates/default_invoice/language/
        /components/invoice_templates/default_invoice/language/en_us/
            /components/invoice_templates/default_invoice/language/en_us/default_invoice.php
    /components/invoice_templates/default_invoice/default_invoice.php
    /components/invoice_templates/default_invoice/default_invoice_pdf.php
/components/invoice_templates/quickbooks_invoice/
    /components/invoice_templates/quickbooks_invoice/language/
        /components/invoice_templates/quickbooks_invoice/language/en_us/
            /components/invoice_templates/quickbooks_invoice/language/en_us/quickbooks_invoice.php
    /components/invoice_templates/quickbooks_invoice/quickbooks_invoice.php
    /components/invoice_templates/quickbooks_invoice/quickbooks_invoice_pdf.php
/components/invoice_templates/invoice_template.php
/components/invoice_templates/invoice_templates.php
/components/invoice_templates/tcpdf_wrapper.php

If everything looks good, then it would be helpful to know where and what action you performed in Blesta that led to this issue.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...