Page 1 of 1

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

Posted: 28 Sep 2011, 11:52
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

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

Posted: 30 Sep 2011, 16:56
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

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

Posted: 04 Oct 2011, 13:32
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

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

Posted: 05 Oct 2011, 10:19
by BSE
phocapdf deinstalled
reinstalled phocapdf --> now [plugins] and [fonts] --> works correctly

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

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