VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: lanthan on February 01, 2014, 11:05:02 AM

Title: VM 2.0.26d - error on PDF creation, with joomla content plugin enabled
Post by: lanthan on February 01, 2014, 11:05:02 AM
VM 2.0.26d, J 2.5.17, PHP 5.4, MSQL 5

I updated VM 2.0.22a to 2.0.26d and can not create pdfs anymore or even call existing invoice .pdfs.
I changed changed config.php and created a log file but still no success.

I get the following error, when I click on .pdf preview
"TCPDF ERROR: Some data has already been output to browser, can't send PDF file"

If I try to create an invoice or click on want to see an existing invoice I get a
"500 - Unable to load renderer class"

Any ideas?
Title: Re: VM 2.0.26a - error on PDF creation, with joomla content plugin enabled
Post by: Milbo on February 01, 2014, 11:19:09 AM
Maybe your tcpdf got changed by another component?
Title: Re: VM 2.0.26a - error on PDF creation, with joomla content plugin enabled
Post by: lanthan on February 01, 2014, 11:27:45 AM
No, checked this.

Update:
Sample data now produces the .pdf but still the invoice creation and calling is not possible (500).

I had to update my PHP from 5.2. to 5.4 lately. Issues about that?
Title: Re: VM 2.0.26a - error on PDF creation, with joomla content plugin enabled
Post by: lanthan on February 01, 2014, 14:10:12 PM
Found the problem. Quite interesting. When I disable the "joomla plugin for product details" (Joomla Plugin aktivieren) in virtuemart everything works fine. But I need to enable this to use videos aso on VM Pages. Any ideas?
Title: Re: VM 2.0.26a - error on PDF creation, with joomla content plugin enabled
Post by: Milbo on February 01, 2014, 14:33:20 PM
ahhh, seems that the pdf tries to render your video, lol.
Title: Re: VM 2.0.26a - error on PDF creation, with joomla content plugin enabled
Post by: lanthan on February 01, 2014, 14:43:30 PM
Lol. Is it possible to disable temporary while the pdf is rendering and then activate it after rendering again?
Title: Re: VM 2.0.26d - error on PDF creation, with joomla content plugin enabled
Post by: Milbo on February 02, 2014, 01:41:41 AM
It is in fact just 2-3 lines in the view.html.php of the invoice.


if (VmConfig::get ('enable_content_plugin', 0)) {
if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php');
shopFunctionsF::triggerContentPlugin($vendor, 'vendor','vendor_store_desc');
shopFunctionsF::triggerContentPlugin($vendor, 'vendor','vendor_terms_of_service');
shopFunctionsF::triggerContentPlugin($vendor, 'vendor','vendor_legal_info');
}


But why do you use the content video plugin in the vendor description,tos and so on?
Title: Re: VM 2.0.26d - error on PDF creation, with joomla content plugin enabled
Post by: lanthan on February 02, 2014, 12:16:20 PM
Thanks Milbo, I will try this later today and reply. I just use a video on the shop description (VM startside) and on some product pages. VM start because the whole product range needs an explanation.
Title: Re: VM 2.0.26d - error on PDF creation, with joomla content plugin enabled
Post by: lanthan on February 02, 2014, 12:27:54 PM
Does not work.  :( CanĀ“t open existing invoices aswell as creating new invoices/delivery notes. Is there another way to include a module in the VM frontpage/product page without enabling plugin? I have the feeling it is an individuell plug in error. But it makes no sense to me at the moment.

Well, when I delete the created invoice with enabled plug in I get "vmError: TableInvoices Der angegebene COM_VIRTUEMART_INVOICE_NUMBER existiert bereits." Looks like there is a plug in which "disturbs" finding the secure path. So I will dig here deeper.
Title: Re: VM 2.0.26d - error on PDF creation, with joomla content plugin enabled
Post by: lanthan on February 02, 2014, 12:45:33 PM
It works if I delete all video tags {loadposition XX}.