Sometimes, when saving an invoice for an order, the following error might come up:

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 solve that problem, open the lib/Zend/Pdf/FileParserDataSource.php class and change the declaration of the abstract function __construct like this:

From

to

Solving the “Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct()” error
You want or need help implementing this solution? Maybe you did not find what you were looking for? Contact me and I will assist you with whatever Magento problem troubles you!
Keywords:         
// System Status: Archived

This site is archived and managed by
Vermonta.

Active development has moved. Please choose your interface:

International HQ German Magento Expert (Active)