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

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

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?