News:

Support the VirtueMart project and become a member

Main Menu

Error 500 when changing order status

Started by Agaton, July 21, 2012, 15:24:32 PM

Previous topic - Next topic

dontflinch

Quote from: spike1968 on July 23, 2012, 17:59:21 PMThe error logs generate this for the 500 error message....

[warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined method MYPDF::SetDefaultMonospacedFont() in /var/www/vhosts/domain.co.uk/httpdocs/components/com_virtuemart/controllers/invoice.php on line 155

I had to comment out these lines in the same file to stop the 500 on checkout in mine (2.0.7g):
(line 151)// $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);

//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);

//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);

//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);

//TODO include the right file (in libraries/tcpdf/config/lang set some language-dependent strings
$l='';
$pdf->setLanguageArray($l);

// set default font subsetting mode
(line 169) // $pdf->setFontSubsetting(true);


and, now I see I should have answered my own question of where to get rid of the pdf attachment. :-[ :)

Agaton

The issue I have is that this only happens on one install of VM and Joomla...

All the other installs on the same server (my own dediacted server) work perfectly and the only thing different is SOBIpro install..... I have almost finished the rebuild and will let you know the result...

mbrando

Hi,

I this issue too when I confirm check out.

- Mike
Reliable Web Hosting www.JIKOmetrix.net