-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Theme issue on setup:upgrade #35843
Comments
Hi @Nuranto. Thank you for your report.
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:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 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 |
Here's a temporary patch, if it can helps someone :
|
https://github.com/magento/magento2/pull/32142/files#diff-208947a432c650d2473cbf3fddba5e294553440d52c2c7e87f67f35085909ff7 |
Thanks @mrtuvn ! |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @Nuranto , Thanks |
Hi @engcom-Delta, If you mean "Is the issue still present on latest 2.4", then yes, the issue is still there. But @mrtuvn added a fix in his existing PR : #32142 cf423f3 |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @Nuranto, Thanks for the report and collaboration! We have looked into this issue and we are unclear about the reproduction steps. We request you to please provide us with the same. It will help us in moving forward with this issue. Thanks |
Dear @Nuranto, We have noticed that this issue has not been updated for a period of 14 Days. Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this. Regards |
We just faced the same issue in 2.4.5-p1 when we added a new theme in config.php. |
We're also facing this issue on 2.4.6-p5 after adding the theme configuration to app/etc/config.php. |
The same issue is in Magento 2.4.7-p3. Steps to reproduce:
Result:
|
Hello @yutv, Please help us by providing detailed steps to reproduce the issue. We are reopening the issue for further processing. Thanks |
Dear @yutv, This issue is being closed since it has not been updated in a long time. Please feel free to reopen or raise a new ticket if the issue still exists. Thanks |
Summary (*)
When performing a
setup:upgrade
, we get :The issue is here :
app/code/Magento/Theme/Model/Theme.php
The emulation of adminhtml is triggered in
setup:upgrade
by/var/www/html/vendor/magento/module-deploy/Console/Command/App/ConfigImportCommand.php(106)
Proposed solution
I can't see any usecase where a theme should return the current state area, so the better solution seems to be :
(or simply remove the whole function, and let the magic functions deal with it.)
Also, the appState should be removed from constructor.
Or if some reason I can't see, sometimes the area is not defined (imho this should not be permitted), we could keep the fallback like this :
But it seems to me that this is a bad solution.
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: