Jump to content
  • 0

Tcpdf Error - Cannot Open Pdf


Question

Posted

Hello,

 

Not uploaded logo or invoice background. When i want to click to view... i got this error: TCPDF ERROR: Some data has already been output, can't send PDF file

 

Any suggestion?

3 answers to this question

Recommended Posts

  • 0
Posted

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);
  • 0
Posted

 

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();

  • 0
Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...