Upgrade magento 2.2.3 to 2.2.8 fatal error Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How to send transactional mail with csv/excel attachment in magento 2How to call model in UpgradeData Magento 2Magento2: SearchCriteria OR/ANDAdd CC to all transactional emails in Magento 2Fatal error: Uncaught Error: Call to undefined method getDirectoryRead()Fatal error: Uncaught Error: Call to undefined method addAttributeToSelect()search not working - Fatal error - magento 2Fatal error: Uncaught Error: Call to undefined method getScope()Magento 2.2.3 CE unable to add/remove item from wishlist?Magento 2 Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkSessionSaveHandlerNative::write()

Can't figure this one out.. What is the missing box?

Do working physicists consider Newtonian mechanics to be "falsified"?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

3 doors, three guards, one stone

What LEGO pieces have "real-world" functionality?

What items from the Roman-age tech-level could be used to deter all creatures from entering a small area?

Single author papers against my advisor's will?

How is simplicity better than precision and clarity in prose?

Limit for e and 1/e

Why is "Captain Marvel" translated as male in Portugal?

Simulating Exploding Dice

How did the aliens keep their waters separated?

Need a suitable toxic chemical for a murder plot in my novel

What computer would be fastest for Mathematica Home Edition?

Why is there no army of Iron-Mans in the MCU?

Can a zero nonce be safely used with AES-GCM if the key is random and never used again?

Stop battery usage [Ubuntu 18]

Fishing simulator

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Who can trigger ship-wide alerts in Star Trek?

Can smartphones with the same camera sensor have different image quality?

How can I protect witches in combat who wear limited clothing?

What do you call a plan that's an alternative plan in case your initial plan fails?

Why does tar appear to skip file contents when output file is /dev/null?



Upgrade magento 2.2.3 to 2.2.8 fatal error



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How to send transactional mail with csv/excel attachment in magento 2How to call model in UpgradeData Magento 2Magento2: SearchCriteria OR/ANDAdd CC to all transactional emails in Magento 2Fatal error: Uncaught Error: Call to undefined method getDirectoryRead()Fatal error: Uncaught Error: Call to undefined method addAttributeToSelect()search not working - Fatal error - magento 2Fatal error: Uncaught Error: Call to undefined method getScope()Magento 2.2.3 CE unable to add/remove item from wishlist?Magento 2 Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkSessionSaveHandlerNative::write()



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















Hi I upgrade my magento 2.2.3 to 2.2.8 where I have some custom functionality for emails.



After upgrading am getting



Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkMailMessageInterceptor::clearFrom() 

Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkMailMessageInterceptor::getRawContent()


I have made plugin for public function MagentoEmailModelTransport



 beforeSendMessage(MagentoEmailModelTransport $subject)

$message = $subject->getMessage()
$body = $message->getBody()->getRawContent();
$message->clearFrom();
$message->setBody($bodyNew);



its MagentoFrameworkMailMessage










share|improve this question






























    2















    Hi I upgrade my magento 2.2.3 to 2.2.8 where I have some custom functionality for emails.



    After upgrading am getting



    Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkMailMessageInterceptor::clearFrom() 

    Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkMailMessageInterceptor::getRawContent()


    I have made plugin for public function MagentoEmailModelTransport



     beforeSendMessage(MagentoEmailModelTransport $subject)

    $message = $subject->getMessage()
    $body = $message->getBody()->getRawContent();
    $message->clearFrom();
    $message->setBody($bodyNew);



    its MagentoFrameworkMailMessage










    share|improve this question


























      2












      2








      2








      Hi I upgrade my magento 2.2.3 to 2.2.8 where I have some custom functionality for emails.



      After upgrading am getting



      Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkMailMessageInterceptor::clearFrom() 

      Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkMailMessageInterceptor::getRawContent()


      I have made plugin for public function MagentoEmailModelTransport



       beforeSendMessage(MagentoEmailModelTransport $subject)

      $message = $subject->getMessage()
      $body = $message->getBody()->getRawContent();
      $message->clearFrom();
      $message->setBody($bodyNew);



      its MagentoFrameworkMailMessage










      share|improve this question
















      Hi I upgrade my magento 2.2.3 to 2.2.8 where I have some custom functionality for emails.



      After upgrading am getting



      Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkMailMessageInterceptor::clearFrom() 

      Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkMailMessageInterceptor::getRawContent()


      I have made plugin for public function MagentoEmailModelTransport



       beforeSendMessage(MagentoEmailModelTransport $subject)

      $message = $subject->getMessage()
      $body = $message->getBody()->getRawContent();
      $message->clearFrom();
      $message->setBody($bodyNew);



      its MagentoFrameworkMailMessage







      magento2 plugin magento2.2.3 magento-upgrade magento2.2.8






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago







      Daniel_12

















      asked 2 days ago









      Daniel_12Daniel_12

      18310




      18310




















          1 Answer
          1






          active

          oldest

          votes


















          1














          buddy I just check that class I'm also gonna share as well that class
          MagentoFrameworkMailMessage;



          <?php
          /**
          * Mail Message
          *
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */
          namespace MagentoFrameworkMail;

          class Message extends Zend_Mail implements MessageInterface

          /**
          * @param string $charset
          */
          public function __construct($charset = 'utf-8')

          parent::__construct($charset);
          $this->setHeaderEncoding(Zend_Mime::ENCODING_BASE64);


          /**
          * Message type
          *
          * @var string
          */
          protected $messageType = self::TYPE_TEXT;

          /**
          * Set message body
          *
          * @param string $body
          * @return $this
          */
          public function setBody($body)

          return $this->messageType == self::TYPE_TEXT ? $this->setBodyText($body) : $this->setBodyHtml($body);


          /**
          * Set message body
          *
          * @return string
          */
          public function getBody()

          return $this->messageType == self::TYPE_TEXT ? $this->getBodyText() : $this->getBodyHtml();


          /**
          * Set message type
          *
          * @param string $type
          * @return $this
          */
          public function setMessageType($type)

          $this->messageType = $type;
          return $this;





          so as you can see that there is no any function getRawContent() or clearFrom() so they may updated that as well in the updated version thats why its not working






          share|improve this answer























          • this is really bad :(

            – Daniel_12
            2 days ago











          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
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269938%2fupgrade-magento-2-2-3-to-2-2-8-fatal-error%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          buddy I just check that class I'm also gonna share as well that class
          MagentoFrameworkMailMessage;



          <?php
          /**
          * Mail Message
          *
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */
          namespace MagentoFrameworkMail;

          class Message extends Zend_Mail implements MessageInterface

          /**
          * @param string $charset
          */
          public function __construct($charset = 'utf-8')

          parent::__construct($charset);
          $this->setHeaderEncoding(Zend_Mime::ENCODING_BASE64);


          /**
          * Message type
          *
          * @var string
          */
          protected $messageType = self::TYPE_TEXT;

          /**
          * Set message body
          *
          * @param string $body
          * @return $this
          */
          public function setBody($body)

          return $this->messageType == self::TYPE_TEXT ? $this->setBodyText($body) : $this->setBodyHtml($body);


          /**
          * Set message body
          *
          * @return string
          */
          public function getBody()

          return $this->messageType == self::TYPE_TEXT ? $this->getBodyText() : $this->getBodyHtml();


          /**
          * Set message type
          *
          * @param string $type
          * @return $this
          */
          public function setMessageType($type)

          $this->messageType = $type;
          return $this;





          so as you can see that there is no any function getRawContent() or clearFrom() so they may updated that as well in the updated version thats why its not working






          share|improve this answer























          • this is really bad :(

            – Daniel_12
            2 days ago















          1














          buddy I just check that class I'm also gonna share as well that class
          MagentoFrameworkMailMessage;



          <?php
          /**
          * Mail Message
          *
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */
          namespace MagentoFrameworkMail;

          class Message extends Zend_Mail implements MessageInterface

          /**
          * @param string $charset
          */
          public function __construct($charset = 'utf-8')

          parent::__construct($charset);
          $this->setHeaderEncoding(Zend_Mime::ENCODING_BASE64);


          /**
          * Message type
          *
          * @var string
          */
          protected $messageType = self::TYPE_TEXT;

          /**
          * Set message body
          *
          * @param string $body
          * @return $this
          */
          public function setBody($body)

          return $this->messageType == self::TYPE_TEXT ? $this->setBodyText($body) : $this->setBodyHtml($body);


          /**
          * Set message body
          *
          * @return string
          */
          public function getBody()

          return $this->messageType == self::TYPE_TEXT ? $this->getBodyText() : $this->getBodyHtml();


          /**
          * Set message type
          *
          * @param string $type
          * @return $this
          */
          public function setMessageType($type)

          $this->messageType = $type;
          return $this;





          so as you can see that there is no any function getRawContent() or clearFrom() so they may updated that as well in the updated version thats why its not working






          share|improve this answer























          • this is really bad :(

            – Daniel_12
            2 days ago













          1












          1








          1







          buddy I just check that class I'm also gonna share as well that class
          MagentoFrameworkMailMessage;



          <?php
          /**
          * Mail Message
          *
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */
          namespace MagentoFrameworkMail;

          class Message extends Zend_Mail implements MessageInterface

          /**
          * @param string $charset
          */
          public function __construct($charset = 'utf-8')

          parent::__construct($charset);
          $this->setHeaderEncoding(Zend_Mime::ENCODING_BASE64);


          /**
          * Message type
          *
          * @var string
          */
          protected $messageType = self::TYPE_TEXT;

          /**
          * Set message body
          *
          * @param string $body
          * @return $this
          */
          public function setBody($body)

          return $this->messageType == self::TYPE_TEXT ? $this->setBodyText($body) : $this->setBodyHtml($body);


          /**
          * Set message body
          *
          * @return string
          */
          public function getBody()

          return $this->messageType == self::TYPE_TEXT ? $this->getBodyText() : $this->getBodyHtml();


          /**
          * Set message type
          *
          * @param string $type
          * @return $this
          */
          public function setMessageType($type)

          $this->messageType = $type;
          return $this;





          so as you can see that there is no any function getRawContent() or clearFrom() so they may updated that as well in the updated version thats why its not working






          share|improve this answer













          buddy I just check that class I'm also gonna share as well that class
          MagentoFrameworkMailMessage;



          <?php
          /**
          * Mail Message
          *
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */
          namespace MagentoFrameworkMail;

          class Message extends Zend_Mail implements MessageInterface

          /**
          * @param string $charset
          */
          public function __construct($charset = 'utf-8')

          parent::__construct($charset);
          $this->setHeaderEncoding(Zend_Mime::ENCODING_BASE64);


          /**
          * Message type
          *
          * @var string
          */
          protected $messageType = self::TYPE_TEXT;

          /**
          * Set message body
          *
          * @param string $body
          * @return $this
          */
          public function setBody($body)

          return $this->messageType == self::TYPE_TEXT ? $this->setBodyText($body) : $this->setBodyHtml($body);


          /**
          * Set message body
          *
          * @return string
          */
          public function getBody()

          return $this->messageType == self::TYPE_TEXT ? $this->getBodyText() : $this->getBodyHtml();


          /**
          * Set message type
          *
          * @param string $type
          * @return $this
          */
          public function setMessageType($type)

          $this->messageType = $type;
          return $this;





          so as you can see that there is no any function getRawContent() or clearFrom() so they may updated that as well in the updated version thats why its not working







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 days ago









          Asad KhanAsad Khan

          1919




          1919












          • this is really bad :(

            – Daniel_12
            2 days ago

















          • this is really bad :(

            – Daniel_12
            2 days ago
















          this is really bad :(

          – Daniel_12
          2 days ago





          this is really bad :(

          – Daniel_12
          2 days ago

















          draft saved

          draft discarded
















































          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%2f269938%2fupgrade-magento-2-2-3-to-2-2-8-fatal-error%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

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form