magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.54k stars 9.31k forks source link

Magento 2.4.4 under PHP 8.1.4 #35295

Closed MartinKuhl closed 2 years ago

MartinKuhl commented 2 years ago

Preconditions (*)

  1. PHP 8.1.0 / 8.1.1 / 8.1.3 & 8.1.4
  2. Magento 2.4.4 fresh installation via composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition . 2.4.4

Steps to reproduce (*)

  1. Fresh installation of M2.4.4 under PHP 8.1.0 / 8.1.1 / 8.1.3 & 8.1.4
  2. get Installation files via ZIP oder composer
  3. try to call magento binary under bin/magento with any argument

Actual result (*)

Error message: /var/www/html/bin/magento --version Call to undefined function Laminas\Http\PhpEnvironment\apache_request_headers()#0 /var/www/html/vendor/laminas/laminas-http/src/PhpEnvironment/Request.php(101): Laminas\Http\PhpEnvironment\Request->setServer(Object(Laminas\Stdlib\Parameters))

1 /var/www/html/vendor/laminas/laminas-mvc/src/Service/RequestFactory.php(21): Laminas\Http\PhpEnvironment\Request->__construct()

2 /var/www/html/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(612): Laminas\Mvc\Service\RequestFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'Request', NULL)

3 /var/www/html/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(234): Laminas\ServiceManager\ServiceManager->doCreate('Request')

4 /var/www/html/setup/src/Magento/Setup/Application.php(48): Laminas\ServiceManager\ServiceManager->get('Request')

5 /var/www/html/vendor/magento/framework/Console/Cli.php(80): Magento\Setup\Application->bootstrap(Array)

6 /var/www/html/bin/magento(22): Magento\Framework\Console\Cli->__construct('Magento CLI')

7 {main}


m2-assistant[bot] commented 2 years ago

Hi @MartinKuhl. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

MartinKuhl commented 2 years ago

error in self made docker base image