[Vtigercrm-commits] [vtiger development] #96: PDF-generation (invoice) sometimes fails
vtiger development
vtiger-tickets at vtiger.fosslabs.com
Mon Apr 24 04:42:20 EDT 2006
#96: PDF-generation (invoice) sometimes fails
-----------------------------------+----------------------------------------
Reporter: hpw at softechmatrix.nl | Owner: developer
Type: defect | Status: reopened
Priority: major | Milestone:
Component: vtigercrm | Version: 4.2.3
Resolution: | Keywords: error pdf invoice order
-----------------------------------+----------------------------------------
Changes (by hpw at softechmatrix.nl):
* resolution: fixed =>
* status: closed => reopened
Comment:
I think my explanation was indeed not suffucient. I'll try to elaborate
it:
The user first creates an order, and generates the PDF for that order. No
problem there. Next he generates an invoice from this order (NOTE that he
does not go to the order-list, everything happens in the order-screen so
far). The generated invoice appears and then the user generate the PDF for
the invoice. This is the point where the error occurs.
My diagnosis was based on this part of the error-message:
headers already sent by (output started at C:\Program
Files\xampp\htdocs\vtiger_crm\modules\Invoice\CreatePDF.php:375)
and this part:
FPDF error: Some data has already been output to browser, can't send PDF
file
It seems to me that the error occurs because the PDF-generation is not
reset completely after generating the PDF. Going to an overview screen
(like the orders list) seems to reset the problem as after that you can
generate the PDF for the invoice without problems.
NOTE: the problem is only happening when you generate a PDF for an order
and immediately generate the invoice and subsequently also generate the
PDF for the invoice. My client stumbled upon this while trying out the
functionality of vTiger. In normal daily use I think there will almost
always be a timespan between creating the order and creating the invoice.
I reopened the ticket so you might test the solution with my additional
information. I hope the solution is a sure fix. Thanks
--
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