VM IDnR - Backend->Delivery->Invoice PDF displayed incorrect

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
BSE
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2011, 11:03

VM IDnR - Backend->Delivery->Invoice PDF displayed incorrect

Post by BSE »

Hi phoca-Team

System/Server:
  • DomainFactory - Linux -Apache/2.2.20
  • PHP 5.2.13
  • Joomla 5.23
  • VirtueMart 1.1.9 stable
  • PhocaPDF 1.0.9
  • PhocaEmail 1.0.2
  • Phoca PDF - VirtueMart 1.0.1
  • com_phocainstall_vm.zip
Installation like https://www.phoca.cz/documents/18-virtue ... eipt-addon

Delivery - Invoice PDF will be displayed incorrect
(Backend->Component->VirtueMart->Orderlist->OrderNo->Delivery->Click on PDF-Icon)
like so:
http://imageshack.us/photo/my-images/3/pdfng.jpg/

and i got this php-warning:
Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, 'phocaPDFVirtueMartCallbackImage::phocaPDFCallbackImage', to be a valid callback in /kunden/ar-internet.de/rp-hosting/119/155/inferna-dreams.de/plugins/phocapdf/virtuemart.php on line 148

but DOCUMENT_ROOT is "/www/ar-internet.de/rp-hosting/119/155/inferna-dreams.de" and not "/kunden..."

Can someone tell me whats the problem?

URL/plugins/phhocapdf/virtuemart/virtuemarthelper.php - generate the pdf-icon + link
# right?

widow.open-Link(e.g.):

Code: Select all

http://www.inferna-dreams.de/administrator/index.php?option=com_phocapdf&view=pdf&format=phocapdf&tmpl=component&type=invoice&order_id=62&delivery_id=8
# where is the pdf-object generated?
# where starts the tcpdf Output() function to show the pdf?
(after clicking on delifery-pdf-icon)

thanking you in anticipation
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: VM IDnR - Backend->Delivery->Invoice PDF displayed incor

Post by Jan »

Hi, go to Phoca PDF Plugin component in admin, click on plugins, and edit the plugin for VirtueMart, on last folder you can disable/enable Image displaying in PDF document - disabling it will prevent from the error listed above

PDF rendering is starting in the pdf document type - you can find document types in
libraries\joomla\document\ folder.

Jan
If you find Phoca extensions useful, please support the project
BSE
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2011, 11:03

Re: VM IDnR - Backend->Delivery->Invoice PDF displayed incor

Post by BSE »

Now i have installed on a local xampp(apache)server: joomla + vm + phoca-invoive,pdf,email --> delivery invoice pdf was now displayed correctly.

After this i backed up the current onlineshop + db and
re-installed joomla + vm + phoca... on it --> pdf displayed correct ... then i
insert old sql into db --> pdf displeyed incorrect (I dont know why)... i think some wrong (db saved) settings after moving to another Server.
drop db again, insert the working db (after reinstalling) and modified it with all joomla settings, products etc.

BTW 2 questions:
- I got an error in phocapdf-component if i choose [plugins] or [fonts] like:

Code: Select all

-VirtueMart
Site
Fatal error: Call to a member function children() on a non-object in /kunden/ar-internet.de/rp-hosting/119/155/inferna-dreams.de/administrator/components/com_phocapdf/elements/phocafonttype.php on line 49
is this also a wrong db entry... what can be the problem?

- In the installation-guide to this addon we will see after creating a delivery + invoice a pdf and letter icon.
I dont see the letter icon there. Whats happens wrong there?

mfg
BSE
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2011, 11:03

Re: VM IDnR - Backend->Delivery->Invoice PDF displayed incor

Post by BSE »

phocapdf deinstalled
reinstalled phocapdf --> now [plugins] and [fonts] --> works correctly
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: VM IDnR - Backend->Delivery->Invoice PDF displayed incor

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply