You are viewing an old revision of this post, from October 15, 2014 @ 14:40:39. See below for differences between this version and the current revision.

Magento PHP 5.4 PDF invoice Zend error

Magento PHP 5.4 PDF invoice Zend error

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

 

This an incompatibility issue between PHP Version 5.4.4 and zend Framwork .

Fixed it by change in this function lib/Zend/Pdf/FileParserDataSource.php.

change

abstract public function __construct();

to

abstract public function __construct($filePath);

Revisions

  • October 15, 2014 @ 14:40:39 [Current Revision] by admin
  • October 15, 2014 @ 14:40:39 by admin

Revision Differences

There are no differences between the October 15, 2014 @ 14:40:39 revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply