简体   繁体   English

了解致命错误:的声明

[英]Understanding Fatal error: Declaration of

What does this error mean? 这个错误是什么意思? How should I understand it? 我应该怎么理解?

Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct() in /www/htdocs/nether/http/123factuur/library/Zend/Pdf/FileParserDataSource/File.php on line 167 

Basing on http://www.magentocommerce.com/boards/viewthread/279601/ the issue is for Zend before version 1.11.12 for PHP 5.4. 基于http://www.magentocommerce.com/boards/viewthread/279601/,此问题是针对PHP 5.4的1.11.12版之前的Zend。 In the same article workarounds exist: 在同一篇文章中,存在变通办法:

Make a copy of the lib/Zend/Pdf/FileParserDataSource.php file. 复制lib / Zend / Pdf / FileParserDataSource.php文件。 Next, move the copy to app/code/local/Zend/Pdf/FileParserDataSource.php 接下来,将副本移至app / code / local / Zend / Pdf / FileParserDataSource.php

Change 更改

abstract public function __construct();

To

abstract public function __construct($filePath);

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 php multidimensional SplFixedArray声明正在抛出致命错误 - php multidimensional SplFixedArray declaration is throwing fatal error PHP 致命错误:...的声明必须与 - PHP Fatal error: Declaration of ... must be compatible with 致命错误:Temando 宣言 - Magento 2.3 - Fatal error: Declaration of Temando - Magento 2.3 致命错误:声明..必须与.. PHP兼容 - Fatal error: Declaration of .. must be compatible with .. PHP php UserTest setup function 的致命错误声明 - php fatal error Declaration of UserTest setUp function 致命错误:命名空间声明语句必须是脚本中的第一个语句 - Fatal error: Namespace declaration statement has to be the very first statement in the script in 致命错误:TableDisplayOptions :: load()的声明必须与JTableInterface :: load()的声明兼容 - Fatal error: Declaration of TableDisplayOptions::load() must be compatible with that of JTableInterface::load() 致命错误:AdminUserRole :: getAccessibleEmployeeIds()的声明必须与AbstractUserRole :: getAccessibleEmployeeIds()的声明兼容 - Fatal error: Declaration of AdminUserRole::getAccessibleEmployeeIds() must be compatible with that of AbstractUserRole::getAccessibleEmployeeIds() 致命错误:命名空间声明语句必须是脚本中的第一条语句 - Fatal error: Namespace declaration statement has to be the very first statement in the script 致命错误:registerContainerConfiguration的声明必须与Kernel :: registerContainerConfiguration的声明兼容 - Fatal error: Declaration of registerContainerConfiguration must be compatible with that of Kernel::registerContainerConfiguration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM