VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: batboiko on September 29, 2012, 16:56:12 PM

Title: Fatal error when Confirm Orders
Post by: batboiko on September 29, 2012, 16:56:12 PM
Joomla 2.5.7  VM 2.0.10


I have this error when i try to confirm order at the administrator panel in VM

Fatal error: Call to undefined method MYPDF::SetDefaultMonospacedFont() in /my_path/components/com_virtuemart/controllers/invoice.php on line 155

After i go back to the page again the order is confirm .

What is this error ? Now all my orders are going to Pending ? Can this error causing the problem ?

I look inside this file and on line 155 i have this :

// set default monospaced font
      $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
Title: Re: Fatal error when Confirm Orders
Post by: batboiko on October 01, 2012, 15:09:30 PM
Is this well know issue or is only me ? Please someone to respond

Thank you

Mod edit:  impatient bump message removed.  http://forum.virtuemart.net/index.php?board=114.0
Title: Re: Fatal error when Confirm Orders
Post by: bytelord on October 02, 2012, 15:15:41 PM
Hi,

Check your joomla error log for any entries regarding tcpdf library. tcpdf is a third party library that vm uses to create the PDF invoices. Does your invoices created?
Have you install correctly the AIO VM package that contains the tcpdf library?

Regads
Title: Re: Fatal error when Confirm Orders
Post by: batboiko on October 02, 2012, 15:27:15 PM
"Have you install correctly the AIO VM package that contains the tcpdf library?"

I reinstall AOI VM package and is the same thing


"Does your invoices created? "

No . When i click on create invoice i have blank page with this : TCPDF error: Could not include font definition file
Title: Re: Fatal error when Confirm Orders
Post by: bytelord on October 02, 2012, 15:41:54 PM
Hi,

May be there are issues when AIO extensions installed and old files are located inisde joomla_folder/libraries/tcpdf ... check it.
Last try the aoi extensions tar.gz files that are smaller.

What are the contents of  your joomla error log?

Regards
Title: Re: Fatal error when Confirm Orders
Post by: batboiko on October 02, 2012, 16:14:02 PM
Thank you ! It work with aoi extensions tar.gz
Title: Re: Fatal error when Confirm Orders
Post by: bytelord on October 02, 2012, 17:14:20 PM
Great,

That means that your PHP upload filesize or session expired. Always is better to use tar.gz files because are smaller. This is not a vm issue but how joomla and php is been configured for large files and session expire.

Regards