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

How do I keep my slimes from escaping their pens?

How much time will it take to get my passport back if I am applying for multiple Schengen visa countries?

Why did the IBM 650 use bi-quinary?

How to react to hostile behavior from a senior developer?

Do I really need recursive chmod to restrict access to a folder?

If a contract sometimes uses the wrong name, is it still valid?

How to find out what spells would be useless to a blind NPC spellcaster?

Should I use a zero-interest credit card for a large one-time purchase?

Storing hydrofluoric acid before the invention of plastics

Understanding Ceva's Theorem

Using et al. for a last / senior author rather than for a first author

51k Euros annually for a family of 4 in Berlin: Is it enough?

Why did the Falcon Heavy center core fall off the ASDS OCISLY barge?

List *all* the tuples!

How discoverable are IPv6 addresses and AAAA names by potential attackers?

How to call a function with default parameter through a pointer to function that is the return of another function?

What does this icon in iOS Stardew Valley mean?

When were vectors invented?

How to tell that you are a giant?

What is Arya's weapon design?

How does the particle を relate to the verb 行く in the structure「A を + B に行く」?

Why do people hide their license plates in the EU?

Why are Kinder Surprise Eggs illegal in the USA?

Generate an RGB colour grid



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 Apr 12 at 20:38







      Daniel_12

















      asked Apr 12 at 20:05









      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
            Apr 12 at 20:44











          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
            Apr 12 at 20:44















          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
            Apr 12 at 20:44













          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 Apr 12 at 20:41









          Asad KhanAsad Khan

          30310




          30310












          • this is really bad :(

            – Daniel_12
            Apr 12 at 20:44

















          • this is really bad :(

            – Daniel_12
            Apr 12 at 20:44
















          this is really bad :(

          – Daniel_12
          Apr 12 at 20:44





          this is really bad :(

          – Daniel_12
          Apr 12 at 20:44

















          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

          Sum ergo cogito? 1 nng

          三茅街道4182Guuntc Dn precexpngmageondP