Magento PDF Invoices not appearing…

…is that another bug with Magento? Surely not. Here is the apache error log:

Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct() in /var/www/lib/Zend/Pdf/FileParserDataSource/File.php on line 41

The solution is to change the constructor function of lib/Zend/Pdf/FileParserDataSource.php

abstract public function __construct();

to

abstract public function __construct($filePath);

Again – this bug has been around since 2010. It’s 2012…

2 thoughts to “Magento PDF Invoices not appearing…”

Leave a Reply