ok, so first you might think im talkin about customizing the pdf invoice...well no, I already customized the pdf invoice itself, im actually talking about adding another “PRINT PDF TAX INVOICE” in the admin drop down in both ORDERS and INVOICES pages but I get a white blank page and the following error in the error log:
PHP Fatal error: Class 'Zend_Pdf_Color_RGB' not found in /***/***/***/***/html/app/code/local/Mage/Sales/Model/Order/Pdf/Taxinvoice.php on line 191, referer: http://***/admin/sales_invoice/index/filter/Y3JlYXRlZF9hdCU1QmZyb20lNUQ9MDMlMkYxJTJGMDkmY3JlYXRlZF9hdCU1QnRvJTVEPTAzJTJGMzElMkYwOSZjcmVhdGVkX2F0JTVCbG9jYWxlJTVEPWVuX1VTJm9yZGVyX2NyZWF0ZWRfYXQlNUJsb2NhbGUlNUQ9ZW5fVVM=/internal_invoice_ids//form_key/bzoqN4apigzEf6IS/
The thing is I managed to get what I want working locally, I customized my special pdf templates and controllers and actually everything’s working locally. and now in order to print my custom invoices I have to download the database from the server to local.
I even redone all my work flow building another custom pdf invoice and controller locally and performing same exact changes and new files to the host server and I ended up with it working locally only.
So I redownloaded the whole site off the host server and checked again, this same exact whole site IS ACTUALLY working locally with the pdf thing.
I cant understand what does this Zend RGB thing have to do with the error especially that it’s working locally like a charm.
also, line 191 does not have anything that has to do with “Zend_Pdf_Color_RGB”
So I came to think it’s kind of a permissions problem...can it be? the default magento invoice print is working well on both local and host server.
Any help is appreciated.