Reputation: 722
Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct()
My php version is 5.4
I need to know if I upgrade my php version to 5.5.this error will get solved or not?
Upvotes: 0
Views: 258
Reputation: 1062
I am not sure about this error, but perhaps you are passing some parameter in __construct() function in your magento module function and parent abstract class doesn't accept any parameters.
Upvotes: 1
Reputation: 33148
Upgrading PHP won't fix it. This is a bug in Zend Framework that was fixed in version 1.12. I don't use Magento but as far as I can tell it ships with version 1.11.1 (which is around three years old).
Until Magento updates, your best option is probably to apply the fix to the copy of ZF in your Magento installation. All you need to do is comment out the constructor in lib/Zend/Pdf/FileParserDataSource.php
, which is this line: https://github.com/magento/magento2/blob/master/lib/Zend/Pdf/FileParserDataSource.php#L78. You will have to re-apply this fix everytime you update Magento.
Upvotes: 0