[Vtigercrm-commits] [vtiger development] #96: PDF-generation (invoice) sometimes fails

vtiger development vtiger-tickets at vtiger.fosslabs.com
Thu Apr 13 03:16:31 EDT 2006


#96: PDF-generation (invoice) sometimes fails
-------------------------------------+--------------------------------------
 Reporter:  hpw at softechmatrix.nl     |       Owner:  developer
     Type:  defect                   |      Status:  new      
 Priority:  major                    |   Milestone:           
Component:  vtigercrm                |     Version:  4.2.3    
 Keywords:  error pdf invoice order  |  
-------------------------------------+--------------------------------------
 When generating a PDF from a order, then generating an invoice from the
 order and then generating a PDF from the invoice, the following error is
 thrown:

 ---- start error ----
 Warning: Invalid argument supplied for foreach() in C:\Program
 Files\xampp\htdocs\vtiger_crm\modules\Invoice\CreatePDF.php on line 375

 Warning: Cannot modify header information - headers already sent by
 (output started at C:\Program
 Files\xampp\htdocs\vtiger_crm\modules\Invoice\CreatePDF.php:375) in
 C:\Program Files\xampp\htdocs\vtiger_crm\include\fpdf\fpdf.php on line
 1037

 Warning: Cannot modify header information - headers already sent by
 (output started at C:\Program
 Files\xampp\htdocs\vtiger_crm\modules\Invoice\CreatePDF.php:375) in
 C:\Program Files\xampp\htdocs\vtiger_crm\include\fpdf\fpdf.php on line
 1038

 Warning: Cannot modify header information - headers already sent by
 (output started at C:\Program
 Files\xampp\htdocs\vtiger_crm\modules\Invoice\CreatePDF.php:375) in
 C:\Program Files\xampp\htdocs\vtiger_crm\include\fpdf\fpdf.php on line
 1039
 FPDF error: Some data has already been output to browser, can't send PDF
 file
 ---- end error ----

 When going to invoices overview and then opening the generated invoice,
 the PDF can be generated without problems. It seems clear from the error
 that the fact that a PDF is generated twice is creating the error.

-- 
Ticket URL: <http://vtiger.fosslabs.com/cgi-bin/trac.cgi/ticket/96>
vtiger development <http://vtiger.fosslabs.com/>
vtigerCRM


More information about the vtigercrm-commits mailing list