Page 1 of 1

Problem to generate a example Invoice PDF

Posted: 06 Oct 2011, 10:18
by Bjoern
Hi all,

when i will great an Invoice or somthing as an PDF i get this error:

Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, 'phocaPDFVirtueMartCallbackImage::phocaPDFCallbackImage', to be a valid callback in /home/www/web186/html/shop/plugins/phocapdf/virtuemart.php on line 148

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web186/html/shop/plugins/phocapdf/virtuemart.php:148) in /home/www/web186/html/shop/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php on line 7930
TCPDF ERROR: Some data has already been output to browser, can't send PDF file


in the virtuemart.php is line 147 - 149:

if ($content->display_image == 0) {
$documentOutput = preg_replace_callback('/<img(.*)>/Ui', array('phocaPDFVirtueMartCallbackImage', 'phocaPDFCallbackImage'), $documentOutput);
}

and line 7930 - 7933 in tcpdf.php:

header('Content-Description: File Transfer');
if (headers_sent()) {
$this->Error('Some data has already been output to browser, can\'t send PDF file');
}

I can't see the prob :(

Do you know i can solve it?

Thanks and best ragards

Bjoern

Re: Problem to generate a example Invoice PDF

Posted: 06 Oct 2011, 15:28
by Bjoern
I solved this Problem by my self:

i changed the properties from PDF plugin:

PDF Download
Cache no
Pic 1
Plugin Code yes
Show pics yes

So it works for me

Greetz

Bjoern

Re: Problem to generate a example Invoice PDF

Posted: 06 Oct 2011, 17:42
by Jan
Ok