Fatal Error Declaration Of Zend Pdf FileParserDataSource File __construct in magento

July 14, 2014 by admin

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

Leave a Reply

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

Get in touch today and see how we can help your business start to grow.

Contact us