Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Printing invoices, or anything else from 1.8.1 CE
 
CyclistSpots
Jr. Member
 
Total Posts:  7
Joined:  2011-07-14
 

Hi all,
I recently upgraded to 1.8.1 CE and noticed now that I can not print any type of invoice or anything pdf.

Has anyone encountered this?

This is the error I am getting:
PHP Fatal error:  Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct() in / /Zend_Pdf_FileParserDataSource_File.php on line 41

 
Magento Community Magento Community
Magento Community
Magento Community
 
CyclistSpots
Jr. Member
 
Total Posts:  7
Joined:  2011-07-14
 

This fixed

simple change the constructor function of lib/Zend/Pdf/FileParserDataSource.php
abstract public function __construct();
to
abstract public function __construct($filePath);

this resolved my problem magento 1.8.1

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top