VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Renata on November 19, 2018, 13:57:13 PM

Title: TCPDF ERROR unable to create output file vminvoice ....
Post by: Renata on November 19, 2018, 13:57:13 PM
Dear all,

VM 3.4.2
Joomla 3.9.0
PHP 7

above error we get if:


This is confusing for the customer. How can i solve that?
I hope to hear from you soon,
Kind regards
Renata
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: GJC Web Design on November 19, 2018, 14:27:47 PM
you need to find WHY tcpdf cannot produce a pdf invoice

errors, logs, tests etc
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: Renata on November 19, 2018, 14:37:38 PM
Thanks for your reply.

A normal invoice is issued, so no problem there.

But we only get this error message after the customer is returning to the website after ordered and paid for the product. The customer should return to the website without error message.

Kind regards
Renata
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: GJC Web Design on November 19, 2018, 14:52:57 PM
but the error IS  -- can't produce a pdf ....
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: Jörgen on November 19, 2018, 14:56:43 PM
Multiple order states producing invoice perhaps ?

Jörgen @ Kreativ Fotografi
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: Renata on November 19, 2018, 15:06:55 PM
@GJC Web Design: exactly! I don't know where to look? The invoice is issued, but the customer gets to see the errorpage instead of returning to the website.
@Jörgen: do not understand what you mean and where i can find that?
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: Jörgen on November 19, 2018, 15:26:55 PM
Maybe thought that multiple creations of invoice would create this issue. You have the setting in VM back end, configuration -> emails

Jörgen @ Kreativ Fotografi
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: Renata on November 19, 2018, 17:08:20 PM
There are a lot of choises there (see attachment), what should i change? Can you pls advice?
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: GJC Web Design on November 19, 2018, 17:15:04 PM
just use one state in the produce invoice selection
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: Renata on November 19, 2018, 17:19:59 PM
oke thank you
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: GJC Web Design on November 19, 2018, 19:02:32 PM
did that fix it?
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: Renata on November 21, 2018, 01:45:05 AM
unfortunately that did not fix it. i also increased php memory limit which i read in another topic. We still get the error message after payment.

If i cancel my payment, so i order, check out, directed to the payment page itself and overthere i cancel, than all is oke, no error message.

I have searched a lot for a solution, I can't find it. I hope you have more suggestions?

Kind regards
Renata

Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: Jörgen on November 21, 2018, 07:00:38 AM
Creating the invoice seems to be the problem, not double creation, are you sure that You really get an invoice created ?
By the way, check Your server and see that You have tcpdf only in this library:
/libraries/vendor/tecnickcom/tcpdf
An that these libraries do not exist:
/administrator/components/com_tcpdf/libraries
/libraries/joomla/pdf
/libraries/tcpdf

Just to check that the tcpdf is correctly installed.

Turn off creating invoice, no status checked and see if the error goes away. If error is gone, you can confirm if there is a problem
with creating the invoice and You got to work from there. 

Does the problem with invoices only appear with ideal ?
Does manual triggering of status confirm and creating an invoice create the tcpdf error ?

Jörgen @ Kreativ Fotografi

[edit, mixed up the file paths, corrected]
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: Renata on November 22, 2018, 17:38:05 PM
Dear Jörgen

According to this topic reply (http://forum.virtuemart.net/index.php?topic=141368.msg497910#msg497910) it should be installed in JOOMLAROOT\libraries\vendor\tecnickcom\tcpdf\  (confirmed by JenkinHill)

My TCPDF is installed correctly.

Kind regards
Renata
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: Jörgen on November 22, 2018, 19:37:20 PM
You are absolutely right, i misread the script file.

But there should be no other installs, they should all have been deleted by the install script.

Jörgen @ Kreativ Fotografi
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: domir21 on September 14, 2021, 08:00:45 AM
Hi,
I have the same problem. My sytuation:
- public_html/components/com_tcpdf   is empty
- /libraries/vendor/tecnickcom/tcpdf        includes files - everything
- /administrator/components/com_tcpdf/           none catalog /libraries but have 3 files: script.tcpdf.php, tcpdf.php, tcpdf.xml
- /libraries/joomla/        none catalog   /pdf
- /libraries                 none catalog    /tcpdf

After instalation com_tcpdf_1.0.9 i get: TCPDF 6.2.26 by Nicola Asuni. Joomla Installer by the VirtueMart Team and updated for php7.4

I will be very grateful for your help. I am not so fluent with this things...
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: jenkinhill on September 15, 2021, 11:23:53 AM
Correct.  http://forum.virtuemart.net/index.php?topic=143419.msg506811#msg506811
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: domir21 on September 17, 2021, 07:15:17 AM
Hi,
so there is no solution still? The change of those files do anything to run TCPDF?
Title: Re: TCPDF ERROR unable to create output file vminvoice ....
Post by: jenkinhill on September 17, 2021, 11:36:00 AM
TCPDF is "run" by VM when preparing an invoice or shipping note.  It is not run separately.