Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin/magento setup:upgrade error when use composer install --no-dev #36351

Closed
5 tasks
rogerdz opened this issue Oct 21, 2022 · 12 comments · Fixed by #36352
Closed
5 tasks

bin/magento setup:upgrade error when use composer install --no-dev #36351

rogerdz opened this issue Oct 21, 2022 · 12 comments · Fixed by #36352
Assignees
Labels
Area: Performance Component: Setup Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: done Reported on 2.4.x Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@rogerdz
Copy link
Contributor

rogerdz commented Oct 21, 2022

Preconditions and environment

  • 2.4-develop with sample data.

Steps to reproduce

  1. Disable Sample data using command : bin/magento module:disable Magento_SampleData
  2. Run composer install --no-dev
  3. Run bin/magento indexer:reindex
  4. Check the debug log.

Expected result

No error

Actual result

Error: There is an error in /var/www/html/magento2/lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/FilterProcessor.php at line: 143
Call to undefined function Magento\Framework\Api\SearchCriteria\CollectionProcessor\array_first()

Additional information

  • Function array_first is declared in composer dev package weew/helpers-array.
  • In production environment, I think no need install composer dev packages, so the code should not depend on these packages.

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
@m2-assistant
Copy link

m2-assistant bot commented Oct 21, 2022

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

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

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.


⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 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.

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

@nadroj467
Copy link

@magento give me 2.4.5 instance

@magento-deployment-service
Copy link

Hi @nadroj467. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@engcom-Bravo engcom-Bravo self-assigned this Oct 25, 2022
@m2-assistant
Copy link

m2-assistant bot commented Oct 25, 2022

Hi @engcom-Bravo. 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: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Bravo engcom-Bravo added the Reported on 2.4.x Indicates original Magento version for the Issue report. label Oct 25, 2022
@engcom-Bravo
Copy link
Contributor

Hi @rogerdz,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop and the issue is not reproducible.Kindly refer screenshots.

Screenshot 2022-10-25 at 4 08 38 PM

Screenshot 2022-10-25 at 4 10 04 PM

Screenshot 2022-10-25 at 4 10 17 PM

Kindly recheck the issue on Magento 2.4-develop instance and Please let us know we miss anything.

Thanks.

@engcom-Bravo engcom-Bravo added the Issue: needs update Additional information is require, waiting for response label Oct 25, 2022
@rogerdz
Copy link
Contributor Author

rogerdz commented Oct 25, 2022

Hi @engcom-Bravo, issue still reproducible with lastest code in 2.4-develop.
Please check video https://www.loom.com/share/39b34193380e44c3a8f42641df527feb

@engcom-Bravo
Copy link
Contributor

Hi @rogerdz,

Thanks for update.

Verified the issue on Magento 2.4-develop and the issue is not reproducible.Kindly refer screenshots.

Screenshot 2022-10-25 at 4 08 38 PM

Screenshot 2022-10-26 at 2 45 22 PM

Kindly recheck the issue on Magento 2.4-develop instance and check if any 3rd party extensions / modules enabled is causing this issue.

Thanks.

@rogerdz
Copy link
Contributor Author

rogerdz commented Oct 27, 2022

Hi @engcom-Bravo, thank you for your response.
I checked again and found that the cause is Magento_ConfigurableSampleData module.
So I disabled all sample data module and found to be able to reproduce the issue by running the command php bin/magento indexer:reindex.
2022-10-27_22-18

@m2-community-project m2-community-project bot added the Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. label Oct 27, 2022
@Den4ik
Copy link
Contributor

Den4ik commented Oct 27, 2022

@engcom-Bravo I'm agree that use of native php functions in core code is more correct

@engcom-Lima engcom-Lima added Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. and removed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. labels Oct 28, 2022
@engcom-Lima engcom-Lima added Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Area: Performance Component: Setup Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Issue: needs update Additional information is require, waiting for response labels Oct 28, 2022
@github-jira-sync-bot
Copy link

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

@m2-assistant
Copy link

m2-assistant bot commented Oct 28, 2022

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Performance Component: Setup Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: done Reported on 2.4.x Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

7 participants