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.36k stars 9.28k forks source link

dev:di:info error in magento 2.4.7 #38740

Closed malikabid closed 1 day ago

malikabid commented 1 month ago

Preconditions and environment

Constructor Parameters: +------+----------------+------------------+ | Name | Requested Type | Configured Value | +------+----------------+------------------+

There is an error in /var/www/html/vendor/symfony/console/Output/Output.php at line: 109 Symfony\Component\Console\Output\Output::writeln(): Argument #1 ($messages) must be of type Traversable|array|string, null given, called in /var/www/html/vendor/magento/module-developer/Console/Command/DiInfoCommand.php on line 97#0 /var/www/html/vendor/magento/module-developer/Console/Command/DiInfoCommand.php(97): Symfony\Component\Console\Output\Output->writeln(NULL)

1 /var/www/html/vendor/magento/module-developer/Console/Command/DiInfoCommand.php(166): Magento\Developer\Console\Command\DiInfoCommand->printConstructorArguments('Magento\Custome...', Object(Symfony\Component\Console\Output\ConsoleOutput))

2 /var/www/html/vendor/symfony/console/Command/Command.php(326): Magento\Developer\Console\Command\DiInfoCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

3 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

4 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->___callParent('run', Array)

5 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->Magento\Framework\Interception{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

6 /var/www/html/generated/code/Magento/Developer/Console/Command/DiInfoCommand/Interceptor.php(77): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->___callPlugins('run', Array, Array)

7 /var/www/html/vendor/symfony/console/Application.php(1078): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

8 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Developer\Console\Command\DiInfoCommand\Interceptor), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

9 /var/www/html/vendor/magento/framework/Console/Cli.php(118): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

10 /var/www/html/vendor/symfony/console/Application.php(175): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

11 /var/www/html/bin/magento(23): Symfony\Component\Console\Application->run()

12 {main}

Steps to reproduce

  1. Open terminal
  2. Run command bin/magento dev:di:info "Magento\Customer\Model\Registration"

Expected result

Actual result

Constructor Parameters:
+------+----------------+------------------+
| Name | Requested Type | Configured Value |
+------+----------------+------------------+

There is an error in /var/www/html/vendor/symfony/console/Output/Output.php at line: 109
Symfony\Component\Console\Output\Output::writeln(): Argument #1 ($messages) must be of type Traversable|array|string, null given, called in /var/www/html/vendor/magento/module-developer/Console/Command/DiInfoCommand.php on line 97#0 /var/www/html/vendor/magento/module-developer/Console/Command/DiInfoCommand.php(97): Symfony\Component\Console\Output\Output->writeln(NULL)
#1 /var/www/html/vendor/magento/module-developer/Console/Command/DiInfoCommand.php(166): Magento\Developer\Console\Command\DiInfoCommand->printConstructorArguments('Magento\\Custome...', Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /var/www/html/vendor/symfony/console/Command/Command.php(326): Magento\Developer\Console\Command\DiInfoCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->___callParent('run', Array)
#5 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->Magento\Framework\Interception\{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/generated/code/Magento/Developer/Console/Command/DiInfoCommand/Interceptor.php(77): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->___callPlugins('run', Array, Array)
#7 /var/www/html/vendor/symfony/console/Application.php(1078): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Developer\Console\Command\DiInfoCommand\Interceptor), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/vendor/magento/framework/Console/Cli.php(118): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/vendor/symfony/console/Application.php(175): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/bin/magento(23): Symfony\Component\Console\Application->run()

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 month ago

Hi @malikabid. Thank you for your report. To speed up processing of this issue, 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:

m2-assistant[bot] commented 1 month ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


engcom-Dash commented 1 month ago

Hi @malikabid

Thanks for reporting and collaboration.

Verified the issue on magento 2.4 dev instance and the issue is reproducable.

Steps to reproduce

  1. Open terminal
  2. Run command bin/magento dev:di:info "Magento\Customer\Model\Registration"

When executing bin/magento dev:di:info "Class\Path\Name" we are getting the below error. Constructor Parameters: +------+----------------+------------------+ | Name | Requested Type | Configured Value | +------+----------------+------------------+

There is an error in /var/www/html/vendor/symfony/console/Output/Output.php at line: 109 Symfony\Component\Console\Output\Output::writeln(): Argument https://github.com/magento/magento2/issues/1 ($messages) must be of type Traversable|array|string, null given, called in /var/www/html/vendor/magento/module-developer/Console/Command/DiInfoCommand.php on line 97#0 /var/www/html/vendor/magento/module-developer/Console/Command/DiInfoCommand.php(97): Symfony\Component\Console\Output\Output->writeln(NULL) https://github.com/magento/magento2/issues/1 /var/www/html/vendor/magento/module-developer/Console/Command/DiInfoCommand.php(166): Magento\Developer\Console\Command\DiInfoCommand->printConstructorArguments('Magento\Custome...', Object(Symfony\Component\Console\Output\ConsoleOutput)) https://github.com/magento/magento2/pull/2 /var/www/html/vendor/symfony/console/Command/Command.php(326): Magento\Developer\Console\Command\DiInfoCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) https://github.com/magento/magento2/pull/3 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) https://github.com/magento/magento2/issues/4 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->callParent('run', Array) https://github.com/magento/magento2/issues/5 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->Magento\Framework\Interception{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) https://github.com/magento/magento2/issues/6 /var/www/html/generated/code/Magento/Developer/Console/Command/DiInfoCommand/Interceptor.php(77): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->callPlugins('run', Array, Array) https://github.com/magento/magento2/issues/7 /var/www/html/vendor/symfony/console/Application.php(1078): Magento\Developer\Console\Command\DiInfoCommand\Interceptor->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) https://github.com/magento/magento2/issues/8 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Developer\Console\Command\DiInfoCommand\Interceptor), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) https://github.com/magento/magento2/pull/9 /var/www/html/vendor/magento/framework/Console/Cli.php(118): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) https://github.com/magento/magento2/issues/10 /var/www/html/vendor/symfony/console/Application.php(175): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) https://github.com/magento/magento2/issues/11 /var/www/html/bin/magento(23): Symfony\Component\Console\Application->run() https://github.com/magento/magento2/issues/12 {main}

Please refer the attached screenshots.

38740_Confirmed
github-jira-sync-bot commented 1 month ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-11999 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 month ago

:white_check_mark: Confirmed by @engcom-Dash. Thank you for verifying the issue.
Issue Available: @engcom-Dash, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

engcom-Bravo commented 3 weeks ago

Hello,

Internal team has started to work on it

Thanks.

engcom-Bravo commented 1 day ago

Hello,

As I can see this issue got fixed in the scope of the internal Jira ticket AC-11999 by the internal team Related commits:https://github.com/search?q=repo%3Amagento%2Fmagento2+AC-11999&type=commits

Based on the Jira ticket, the target version is 2.4.8-beta1.

Thanks