Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File

Problem printing invoices in magento get a Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File

Solution:

Comment out __construct and __destruct methods in lib/Zend/Pdf/FileParserDataSource.php

//    abstract public function __construct();

/**
* Object destructor. Closes the data source.
*
* May also perform cleanup tasks such as deleting temporary files.
*/
//    abstract public function __destruct();

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.