Does anyone got this error?
Fatal Error: 'Declaration of Zend_Pdf_FileParserDatasource_File::__contruct() must be compatible with Zend_Pdf_FileParderDatasource::__construct() in /var/www/abc/app/vendors/Zend/Pdf/FileParserDataSource/File.php
I've googled a lot but still not find out the way to fix this bug.
you can change the constructor function of lib/Zend/Pdf/FileParserDataSource.php
abstract public function __construct();
to
abstract public function __construct($filePath);
and it works like a charm.
Have you tried commenting out __construct and __destruct abstract methods in Zend/Pdf/FileParserDataSource.php
// abstract public function __construct();
// abstract public function __destruct();
It worked for me.
This error has something to do with inheritance in latest versions of PHP.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With