Wednesday 6 January 2016

Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct()

Recently i was printing the pdf from magento admin and i got the following error


Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct()

and on searching the issue i have found

This an incompatibility issue between PHP Version 5.4.4 and zend Framwork .

you can fix it by

change in this function lib/Zend/Pdf/FileParserDataSource.php.

change
abstract public function __construct();
to
abstract public function __construct($filePath);