Magento 2 - Debugging Hints showing on emails sent programmaticallyMagento 2 debugging SystemM2 Debugging -...

PTIJ: Sport in the Torah

A vote on the Brexit backstop

Precision notation for voltmeters

Is the differential, dp, exact or not?

How does learning spells work when leveling a multiclass character?

Why does this boat have a landing pad? (SpaceX's GO Searcher) Any plans for propulsive capsule landings?

Help! My Character is too much for her story!

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

Is "cogitate" used appropriately in "I cogitate that success relies on hard work"?

How to make sure I'm assertive enough in contact with subordinates?

Does the US political system, in principle, allow for a no-party system?

Too soon for a plot twist?

How to distinguish easily different soldier of ww2?

What would be the most expensive material to an intergalactic society?

Was it really inappropriate to write a pull request for the company I interviewed with?

Short SF story. Females use stingers to implant eggs in yearfathers

What does it take to become a wilderness skills guide as a business?

Why is there an extra space when I type "ls" on the Desktop?

Will the concrete slab in a partially heated shed conduct a lot of heat to the unconditioned area?

Are small insurances worth it?

Create chunks from an array

Exempt portion of equation line from aligning?

I am the person who abides by rules but breaks the rules . Who am I

How does a sound wave propagate?



Magento 2 - Debugging Hints showing on emails sent programmatically


Magento 2 debugging SystemM2 Debugging - Layout Container Hints?Magento 2 timing of transactional emails sentMagento 2 emails not being sent on VPSMagento 2.1.6 No confirmation emails sent from frontendMagento 2 - multiple emails sent only over 3 accountsTemplate Path Hints not showing on front-end in magento2Magento 2. Keep Track Of Emails sent from storeAll Transaction Emails Getting Sent Only from 'postmaster@example.com'Magento 2.3 multisite debugging













0















I have a bootstrap script that is used to mark orders as shipped. After shipping the order it used ShipmentNotifier to send out the shipment email. Despite Debugging Hints being turned off everywhere, the email that it sends still includes the red path hints.



I have tried setting the script to run in the 'frontend' state instead of 'adminhtml', but it makes no difference, the red boxes remain.



If I send the email out manually using the Magento backend then it sends correctly (no debug hints). This leaves me to believe there is something I am missing in the bootstrap script.



Has anyone encountered this issue before? What did you do to resolve it?



// Register shipment
$shipment->register();
$shipment->getOrder()->setIsInProcess(true);

try
{
// Save created shipment and order
$shipment->save();
$shipment->getOrder()->save();
}
catch (Exception $e)
{
echo "<font color=red><b>EXCEPTION: </b></font>". $e->getMessage(); exit;
}

//send email
$shipmentNotifier = $objectManager->create('MagentoShippingModelShipmentNotifier');
$shipmentNotifier->notify($shipment);


Screenshot of Email









share







New contributor




Lihyt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I have a bootstrap script that is used to mark orders as shipped. After shipping the order it used ShipmentNotifier to send out the shipment email. Despite Debugging Hints being turned off everywhere, the email that it sends still includes the red path hints.



    I have tried setting the script to run in the 'frontend' state instead of 'adminhtml', but it makes no difference, the red boxes remain.



    If I send the email out manually using the Magento backend then it sends correctly (no debug hints). This leaves me to believe there is something I am missing in the bootstrap script.



    Has anyone encountered this issue before? What did you do to resolve it?



    // Register shipment
    $shipment->register();
    $shipment->getOrder()->setIsInProcess(true);

    try
    {
    // Save created shipment and order
    $shipment->save();
    $shipment->getOrder()->save();
    }
    catch (Exception $e)
    {
    echo "<font color=red><b>EXCEPTION: </b></font>". $e->getMessage(); exit;
    }

    //send email
    $shipmentNotifier = $objectManager->create('MagentoShippingModelShipmentNotifier');
    $shipmentNotifier->notify($shipment);


    Screenshot of Email









    share







    New contributor




    Lihyt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I have a bootstrap script that is used to mark orders as shipped. After shipping the order it used ShipmentNotifier to send out the shipment email. Despite Debugging Hints being turned off everywhere, the email that it sends still includes the red path hints.



      I have tried setting the script to run in the 'frontend' state instead of 'adminhtml', but it makes no difference, the red boxes remain.



      If I send the email out manually using the Magento backend then it sends correctly (no debug hints). This leaves me to believe there is something I am missing in the bootstrap script.



      Has anyone encountered this issue before? What did you do to resolve it?



      // Register shipment
      $shipment->register();
      $shipment->getOrder()->setIsInProcess(true);

      try
      {
      // Save created shipment and order
      $shipment->save();
      $shipment->getOrder()->save();
      }
      catch (Exception $e)
      {
      echo "<font color=red><b>EXCEPTION: </b></font>". $e->getMessage(); exit;
      }

      //send email
      $shipmentNotifier = $objectManager->create('MagentoShippingModelShipmentNotifier');
      $shipmentNotifier->notify($shipment);


      Screenshot of Email









      share







      New contributor




      Lihyt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have a bootstrap script that is used to mark orders as shipped. After shipping the order it used ShipmentNotifier to send out the shipment email. Despite Debugging Hints being turned off everywhere, the email that it sends still includes the red path hints.



      I have tried setting the script to run in the 'frontend' state instead of 'adminhtml', but it makes no difference, the red boxes remain.



      If I send the email out manually using the Magento backend then it sends correctly (no debug hints). This leaves me to believe there is something I am missing in the bootstrap script.



      Has anyone encountered this issue before? What did you do to resolve it?



      // Register shipment
      $shipment->register();
      $shipment->getOrder()->setIsInProcess(true);

      try
      {
      // Save created shipment and order
      $shipment->save();
      $shipment->getOrder()->save();
      }
      catch (Exception $e)
      {
      echo "<font color=red><b>EXCEPTION: </b></font>". $e->getMessage(); exit;
      }

      //send email
      $shipmentNotifier = $objectManager->create('MagentoShippingModelShipmentNotifier');
      $shipmentNotifier->notify($shipment);


      Screenshot of Email







      magento2





      share







      New contributor




      Lihyt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Lihyt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Lihyt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 5 mins ago









      LihytLihyt

      11




      11




      New contributor




      Lihyt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Lihyt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Lihyt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Lihyt is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265099%2fmagento-2-debugging-hints-showing-on-emails-sent-programmatically%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Lihyt is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Lihyt is a new contributor. Be nice, and check out our Code of Conduct.













          Lihyt is a new contributor. Be nice, and check out our Code of Conduct.












          Lihyt is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265099%2fmagento-2-debugging-hints-showing-on-emails-sent-programmatically%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          夢乃愛華...