简体   繁体   English

安装 magento 2.php 版本 8.1.1 时出现问题

[英]Issue while installing magento 2 .php version 8.1.1

Fatal error: During inheritance of Countable: Uncaught Exception: Deprecated Functionality: Return type of Laminas\Http\Headers::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\magento2\vendor\laminas\laminas-http\src\Headers.php on line 385 in C:\xampp\htdocs\magento2\vendor\magento\framework\App\ErrorHandler.php:61致命错误:在 Countable 的 inheritance 期间:未捕获的异常:不推荐使用的功能:Laminas\Http\Headers::count() 的返回类型应该与 Countable::count(): int 兼容,或者 #[\ReturnTypeWillChange] 属性应该be used to temporarily suppress the notice in C:\xampp\htdocs\magento2\vendor\laminas\laminas-http\src\Headers.php on line 385 in C:\xampp\htdocs\magento2\vendor\magento\framework\App \ErrorHandler.php:61

The problem may come from not matching your PHP version with your Magento version.问题可能来自您的 PHP 版本与 Magento 版本不匹配。

System requirements If you are working on an Adobe Commerce cloud infrastructure project, see Service versions in the Cloud Guide.系统要求 如果您正在处理 Adobe Commerce 云基础架构项目,请参阅云指南中的服务版本。 This table notes software versions that were officially tested and supported at the time of the Magento version's release.此表记录了在 Magento 版本发布时经过官方测试和支持的软件版本。 Newer versions of required software may work but have not been tested.所需软件的较新版本可能有效,但尚未经过测试。 https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements.html https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements.html

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM