You are viewing an old revision of this post, from March 2, 2016 @ 11:49:52. See below for differences between this version and the current revision.

Fatal error: Class ‘Zend_Pdf_Color_RGB’ not found in magento using zend library

When you use want to replace this code

$page = $this->newPage();

by this:

$pdf->pages[] = $pdf->newPage('4:6:'); 

but the results is:

Fatal error: Class 'Zend_Pdf_Color_RGB' not found app/code/core/Mage/Sales/Model/Order/Pdf/Shipment.php

 

It is common issue, if you are using Windows you can't see this issue, but when you upload it to your Linux server you will see.

It caused by Windows doesn't care about the uppercase, but Linux cares about it.

Actually there is no class Zend_Pdf_Color_RGB. Its Zend_Pdf_Color_Rgb. Check your code and replace Zend_Pdf_Color_RGB with Zend_Pdf_Color_Rgb

Revisions

  • March 2, 2016 @ 11:49:52 [Current Revision] by admin
  • March 2, 2016 @ 11:49:52 by admin

Revision Differences

There are no differences between the March 2, 2016 @ 11:49:52 revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply