Open hostep opened 6 years ago
Hi @hostep. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento-engcom-team give me {$VERSION} instance
where {$VERSION}
is version tags (starting from 2.2.0+) or develop branches (2.2-develop +).
For more details, please, review the Magento Contributor Assistant documentation.
@hostep do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
Small update here, this apparently never worked in any Magento version in contrast to what I thought earlier. Since the config:set
command was only introduced in Magento 2.2.0, I tested that version, and the same problem occurs there.
I already tried applying the fix from https://github.com/magento/magento2/pull/17344 (since that sounds very related), but that doesn't fix it unfortunately.
@hostep , thank you for your report. We've acknowledged the issue and added to our backlog.
Hi @hostep. I've reproduced the issue locally, then applied my changes from #17344 which fixed the issue for me. I've tested this using 2.2.5 and the latest 2.2-develop with magento's sample data.
Thanks very much for testing @dnsv!
I just re-tested and at first I couldn't see it being fixed with your PR.
But I noticed that under Content > Design > Configuration, there was no theme set yet, and that is apparently also needed for a fix, so I've configured 'Magento Luma' as the theme.
After doing that and re-running bin/magento config:set sales_email/general/async_sending 0
, it now threw a different error: Missing required argument $debugHintsPath of Magento\Developer\Model\TemplateEngine\Plugin\DebugHints.
This error recently got fixed in https://github.com/magento/magento2/pull/17984, so I've applied that patch as well, and now after your patch and this patch and running bin/magento config:set sales_email/general/async_sending 0
, it finally works!
This was tested on Magento 2.2.6, so it might be slightly different then your test on Magento 2.2.5.
As an extra check, to make sure PR https://github.com/magento/magento2/pull/17984 wasn't the only fix I needed, I re-did the test and only applied https://github.com/magento/magento2/pull/17984 first.
After doing that, I was surprised to see that bin/magento config:set sales_email/general/async_sending 0
did actually work and didn't threw any errors, but when verifying if the email got send, it didn't. So I still needed the fix from PR #17344 to have the email getting send as well.
So summary, to be able to fix the bug reported in this issue on Magento 2.2.6:
I feel like it should also work when no theme is configured as it should fall back to the default one (Magento Luma), so that is probably some other small bug somewhere. But in theory, all production environments will most likely have a theme configured properly, so this is a less important bug.
I'll leave this issue open for now, since none of the two PR's mentioned above are merged yet.
Interesting, I didn't get the $debugHintsPath
error, but great to hear that it worked!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!
I'm going through a backlog of email alerts from github and found out this issue got closed for no good reason.
So to double check, I tried the same scenario again on the latest 2.4-develop
branch (using commit ab591597f860fdee5572d3894c649100e42d884c) and I can still exactly reproduce the problem.
So the issue shouldn't have been closed.
/cc @sdzhepa, @sidolov: can this ticket be reopened please?
Hi @engcom-November. 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:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @hostep,
Thank you for the report and collaboration!
Checked this issue on 2.4-develop, the issue is still present.
After setting bin/magento config:set sales_email/general/async_sending 0
we got the error Required parameter 'theme_dir' was not passed
.
Hence issue can be confirmed.
Thank you.
Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x
, ^Area:.*
Once all required labels are present, please add Issue: Confirmed
label again.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-10964 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
Preconditions
Steps to reproduce
bin/magento config:set sales_email/general/async_sending 1
bin/magento config:set sales_email/general/async_sending 0
Expected result
Actual result
Required parameter 'theme_dir' was not passed
Additional