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

Missing $debugHintsPath when sending email via command #10440

Closed
cykirsch opened this issue Aug 4, 2017 · 7 comments
Closed

Missing $debugHintsPath when sending email via command #10440

cykirsch opened this issue Aug 4, 2017 · 7 comments
Assignees
Labels
Event: khcd2018 Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line good first issue Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@cykirsch
Copy link
Contributor

cykirsch commented Aug 4, 2017

Preconditions

  1. Magento 2.1

Steps to reproduce

  1. Create a console command that sends an email, where the email also loads in another block like {{layout handle="sales_email_order_items" order=$order area="frontend"}}

Expected result

  1. Email should send without error.

Actual result

  1. Email fails with error
main.CRITICAL: exception 'BadMethodCallException' with message 'Missing required argument $debugHintsPath of Magento\Developer\Model\TemplateEngine\Plugin\DebugHints.' in /.../.../magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:45

More info

A workaround was found and posted on these sites:
https://community.magento.com/t5/Programming-Questions/Email-template-with-block/m-p/50061#M1219
https://magento.stackexchange.com/questions/152089/magento2-command-line-sending-email-using-block-templates-error-missing-r

Unfortunately it requires invoking object manager directly, as it seems the object manager's configuration is what needs to be corrected. Since direct loading of the object manager is not best practice, if modifying this config is the only solution then a method should be provided to modify the config without loading object manager directly.

@magento-engcom-team magento-engcom-team added G1 Passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed and removed G1 Passed labels Sep 5, 2017
@magento-engcom-team magento-engcom-team added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 6, 2017
@magento-engcom-team
Copy link
Contributor

@cykirsch, thank you for your report.
We've created internal ticket(s) MAGETWO-81170 to track progress on the issue.

@nemesis-back
Copy link

@okorshenko I will work on it #SQUASHTOBERFEST

@orlangur
Copy link
Contributor

orlangur commented Aug 1, 2018

Implementation approach described in #11852 (review)

@passtet
Copy link
Contributor

passtet commented Sep 8, 2018

#khcd2018

@magento-engcom-team
Copy link
Contributor

@passtet thank you for joining. Please accept team invitation here and self-assign the issue.

@magento-engcom-team
Copy link
Contributor

Hi @cykirsch. Thank you for your report.
The issue has been fixed in #17984 by @passtet in 2.2-develop branch
Related commit(s):

The fix will be available with the upcoming 2.2.8 release.

@magento-engcom-team magento-engcom-team added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Sep 26, 2018
p-bystritsky added a commit to p-bystritsky/magento2 that referenced this issue Nov 1, 2018
@sidolov sidolov added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label Nov 6, 2018
@sidolov
Copy link
Contributor

sidolov commented Nov 6, 2018

Hi @cykirsch. Thank you for your report.
The issue has been fixed in #18991 by @p-bystritsky in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.1 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Event: khcd2018 Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line good first issue Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

7 participants