0

Some time ago i want to print invoice with chinese font. So i upload chinese font and changed to

$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/LinLibertineFont/BiauKai.ttf');

Works very well i was partly happy because

  1. Invoice had chinese font
  2. Invoice size was about 14MB

So i wanted change font and i discover that my invoice have error, when i click "print" i got blank page and error:

[error] [client 82.160.17.218] PHP Fatal error: Call to a member function getPdf() on a non-object in /home/local/public_html/app/code/core/Mage/Adminhtml/Controller/Sales/Invoice.php on line 119, referer: localhost/index.php/admin/admin/sales_order_invoice/view/invoice_id/299/order_id/491/

Marius
  • 15,148
  • 9
  • 56
  • 76
Lukasz
  • 1
  • 1
  • It seams that `Mage::getModel('sales/order_pdf_invoice')` returns `null`. Clear the cache. Also if you did any modifications to the core rollback. If you have any extensions that can affect this try disabling them one by one. – Marius Sep 25 '13 at 08:55
  • i cleared cache ant not work, i changed file public_html/app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php before, but now i get Abstract.php, from clear magento – Lukasz Sep 25 '13 at 09:31

0 Answers0