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
Problem to generate a example Invoice PDF
-
- Phoca Newbie
- Posts: 2
- Joined: 06 Oct 2011, 10:12
-
- Phoca Newbie
- Posts: 2
- Joined: 06 Oct 2011, 10:12
Re: Problem to generate a example Invoice PDF
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
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
- Jan
- Phoca Hero
- Posts: 48378
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem to generate a example Invoice PDF
Ok
If you find Phoca extensions useful, please support the project