[DEV] Problem sending quotation with PDF when using PHP 5.4.*

When you are unable to send quotations with PDF and are using PHP 5.4.* Please read on.

One of the PHP Errors occuring is: PHP Fatal error:  Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct()

The Zend Framework has a problem parsing a font with a path in combination with PHP Version 5.4.* (Please see 


Please note that this is a general Zend Framework Bug and not a Cart2Quote Bug

To fix:

Read this article on the MAgento Forum:


(answer #7 gives the solution)


Update lib/Zend/Pdf/FileParserDataSource.php with the attached file

The construct function and destruct function are commented out in the attached file.



Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk