Fatal Error Declaration Of Zend Pdf FileParserDataSource File __construct in magento

If you will get this issue on magento while printing invoice pdf

Fatal Error: ‘Declaration of Zend_Pdf_FileParserDatasource_File::__contruct() must be compatible with Zend_Pdf_FileParderDatasource::__construct() in /…/lib/Zend/Pdf/FileParserDataSource/File.php

Then here is the simple solution.

Replace

abstract public function __construct();

to

abstract public function __construct($filePath);

in /lib/Zend/Pdf/FileParserDataSource.php

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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