VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Alist3r on March 10, 2015, 17:37:25 PM

Title: Error 500 on Invoice Creation
Post by: Alist3r on March 10, 2015, 17:37:25 PM
Hello,
I'm Using Joomla 3.4 and Virtuemart 3.
I've a problem with the generation of invoice from the Orders panels in the administration console.
When i click on "force invoce" i get this behaviour:

- Redirect to a new blank page with this url:

http://www.mysite.it/index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=9&order_number=a96a04&order_pass=p_f4cef

- if i search in the console of the browser i find this error:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)


SOME NOTE:

In the vmfiles/invoices i don't have any file.
The folder vmfiles/invoices have the right permission.
In the logs i don't have any error.
In the DB i found the record inside the table virtuemart_invoices

Can someone help me?
Thanks
Title: Re: Error 500 on Invoice Creation
Post by: jenkinhill on March 10, 2015, 23:45:30 PM
Exactly which version?  See http://forum.virtuemart.net/index.php?topic=79800.0
Title: Re: Error 500 on Invoice Creation
Post by: Alist3r on March 11, 2015, 09:07:51 AM
Quote from: jenkinhill on March 10, 2015, 23:45:30 PM
Exactly which version?  See http://forum.virtuemart.net/index.php?topic=79800.0

VirtueMart 3.0.6 and the latest version of Joomla
Title: Re: Error 500 on Invoice Creation
Post by: Alist3r on March 11, 2015, 12:08:06 PM
I found this error in the Apache error log:

PHP Fatal error:  Call to undefined method VmVendorPDF::convertHTMLColorToDec() in C:\xampp2\htdocs\cialdestore\components\com_virtuemart\helpers\vmpdf.php on line 129

How can i fix this?
Title: Re: Error 500 on Invoice Creation
Post by: Milbo on March 11, 2015, 16:11:19 PM
Install the new TcPdf, http://dev.virtuemart.net/attachments/download/900/com_tcpdf_for_vm2.zip
Title: Re: Error 500 on Invoice Creation
Post by: Alist3r on March 11, 2015, 17:54:39 PM
Quote from: Milbo on March 11, 2015, 16:11:19 PM
Install the new TcPdf, http://dev.virtuemart.net/attachments/download/900/com_tcpdf_for_vm2.zip

I had to download TCPDF from the Virtuemart download panel. No all works right.