The following error may appear when you attempt to print an invoice:

Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct() in /var/www/vhosts/website/httpdocs/includes/src/Zend_Pdf_FileParserDataSource_File.php on line 41

To resolve it, open the class lib/Zend/Pdf/FileParserDataSource.php and change the declaration of the abstract method __construct as follows:

From

zu

Fixing the Zend_Pdf_FileParserDataSource_File::__construct() declaration error
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: