Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

TCPDF ERROR when sending invoice
(1 viewing) (1) Guest
PDF Invoice generator and editor for Joomla and VirtueMart.

If your topic falls within one of the subcategories, then please post it directly there. Post to this parent category only if your question does not match any subcategory topic.
  • Page:
  • 1

TOPIC: TCPDF ERROR when sending invoice

TCPDF ERROR when sending invoice 13 years, 7 months ago #21448

Hello, I just updated VMINVOICE because of an TCPDF error. But now I get an error message when sending an invoice, creating the invoice is no problem!

I'm getting this error:

Warning: fopen(/home/daisy/domains/daisyluiten.nl/public_html/invoice_03-0014.pdf) [function.fopen]: failed to open stream: Permission denied in /home/daisy/domains/daisyluiten.nl/public_html/administrator/components/com_vminvoice/tcpdf/tcpdf.php on line 8123
TCPDF ERROR: Unable to create output file: /home/daisy/domains/daisyluiten.nl/public_html/invoice_03-0014.pdf

The file tcpdf.php is writable (777). For obvious reasons I can not make the root directory writable. Is there any solution for this?
The topic has been locked.

Re: TCPDF ERROR when sending invoice 13 years, 7 months ago #21449

I just found about this topic with almost the same error, but the location of the invoice is different:

TCPDF ERROR: Unable to create output file: /(/.../..../...//public_html/tmp/invoice_1.pdf

Why is my invoice in the root and not in the tmp directory? Should I change this and does anyone know how to do this?
The topic has been locked.

Re: TCPDF ERROR when sending invoice 13 years, 7 months ago #21581

  • jaku
Hello,

the temp directory in VM Invoice is determined by following lines of code
$mainframe = &JFactory::getApplication();
$tmp = $mainframe->getCfg('tmp_path');
if (substr($tmp, -1) != DS) $tmp .= DS;
define('VMINVOICE_TMP', $tmp);
(you can find this code in admin part, in helpers/vminvoice.php)

So it loads the tmp directory defined in Joomla Global configuration and simply appends the filename to it.
So I guess your tmp folder in Joomla is not defined properly.
Last Edit: 13 years, 7 months ago by .
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný