Magento2 - missing adminhtml custom block after upgrade to 2.2magento 2 - How to create a custom “admin” block and display it on an existing Admin page?Magento 2.2.3 rewrite adminhtml template from module not workingCreate adminhtml block in cronBlock Above Adminhtml GridDisabling Custom module Overriding Adminhtml BlockBlock on Adminhtml dissappear after upgrade to Magento 1.9Upgrade to 2.2 XML errorCreate empty page on custom admin urlI can't override the adminhtml block and controller please suggest me missing parameterMagento 2.2 blank page after upgradeMagento 2.2 Grid in custom module missing styles and formatMagento2 render custom block in adminhtml layout.xml

Historically, were women trained for obligatory wars? Or did they serve some other military function?

Why does processed meat contain preservatives, while canned fish needs not?

What are the spoon bit of a spoon and fork bit of a fork called?

Confused by notation of atomic number Z and mass number A on periodic table of elements

Confusion about capacitors

Reverse the word in a string with the same order in javascript

Is creating your own "experiment" considered cheating during a physics exam?

Asahi Dry Black beer can

Does the EU Common Fisheries Policy cover British Overseas Territories?

Modify locally tikzset

How to determine the actual or "true" resolution of a digital photograph?

Help, my Death Star suffers from Kessler syndrome!

Illegal assignment from SObject to Contact

Were there two appearances of Stan Lee?

How to figure out whether the data is sample data or population data apart from the client's information?

In gnome-terminal only 2 out of 3 zoom keys work

When India mathematicians did know Euclid's Elements?

When and why did journal article titles become descriptive, rather than creatively allusive?

Colliding particles and Activation energy

Subtleties of choosing the sequence of tenses in Russian

How to set the font color of quantity objects (Version 11.3 vs version 12)?

How deep to place a deadman anchor for a slackline?

Did Henry V’s archers at Agincourt fight with no pants / breeches on because of dysentery?

How to back up a running remote server?



Magento2 - missing adminhtml custom block after upgrade to 2.2


magento 2 - How to create a custom “admin” block and display it on an existing Admin page?Magento 2.2.3 rewrite adminhtml template from module not workingCreate adminhtml block in cronBlock Above Adminhtml GridDisabling Custom module Overriding Adminhtml BlockBlock on Adminhtml dissappear after upgrade to Magento 1.9Upgrade to 2.2 XML errorCreate empty page on custom admin urlI can't override the adminhtml block and controller please suggest me missing parameterMagento 2.2 blank page after upgradeMagento 2.2 Grid in custom module missing styles and formatMagento2 render custom block in adminhtml layout.xml






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








2















We had a custom block injected in the adminhtml section. This block is managed in a module (let's call it Vendor/Module) & it was working fine in Magento 2.1.*, following this methodology magento 2 - How to create a custom "admin" block and display it on an existing Admin page?



After upgrading to 2.2 the block has disappeared



I have checked for the concrete layout (in our case sales_order_view.xml) for any structural changes in the new version, but containers & blocks look the same as we had in 2.1.*



Any ideas for this?



This is the concrete layout file which worked fine in 2.1.*



app/code/Vendor/Module/view/adminhtml/layout/sales_order_view.xml



<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="order_info">
<block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
</referenceBlock>
</body>
</page>


UPDATE



Bounty: provide XML code to inject a block inside sales_order_view adminhtml layout, explaining how to place it in different sections of the page










share|improve this question






























    2















    We had a custom block injected in the adminhtml section. This block is managed in a module (let's call it Vendor/Module) & it was working fine in Magento 2.1.*, following this methodology magento 2 - How to create a custom "admin" block and display it on an existing Admin page?



    After upgrading to 2.2 the block has disappeared



    I have checked for the concrete layout (in our case sales_order_view.xml) for any structural changes in the new version, but containers & blocks look the same as we had in 2.1.*



    Any ideas for this?



    This is the concrete layout file which worked fine in 2.1.*



    app/code/Vendor/Module/view/adminhtml/layout/sales_order_view.xml



    <?xml version="1.0"?>
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
    <referenceBlock name="order_info">
    <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
    </referenceBlock>
    </body>
    </page>


    UPDATE



    Bounty: provide XML code to inject a block inside sales_order_view adminhtml layout, explaining how to place it in different sections of the page










    share|improve this question


























      2












      2








      2








      We had a custom block injected in the adminhtml section. This block is managed in a module (let's call it Vendor/Module) & it was working fine in Magento 2.1.*, following this methodology magento 2 - How to create a custom "admin" block and display it on an existing Admin page?



      After upgrading to 2.2 the block has disappeared



      I have checked for the concrete layout (in our case sales_order_view.xml) for any structural changes in the new version, but containers & blocks look the same as we had in 2.1.*



      Any ideas for this?



      This is the concrete layout file which worked fine in 2.1.*



      app/code/Vendor/Module/view/adminhtml/layout/sales_order_view.xml



      <?xml version="1.0"?>
      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <body>
      <referenceBlock name="order_info">
      <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
      </referenceBlock>
      </body>
      </page>


      UPDATE



      Bounty: provide XML code to inject a block inside sales_order_view adminhtml layout, explaining how to place it in different sections of the page










      share|improve this question
















      We had a custom block injected in the adminhtml section. This block is managed in a module (let's call it Vendor/Module) & it was working fine in Magento 2.1.*, following this methodology magento 2 - How to create a custom "admin" block and display it on an existing Admin page?



      After upgrading to 2.2 the block has disappeared



      I have checked for the concrete layout (in our case sales_order_view.xml) for any structural changes in the new version, but containers & blocks look the same as we had in 2.1.*



      Any ideas for this?



      This is the concrete layout file which worked fine in 2.1.*



      app/code/Vendor/Module/view/adminhtml/layout/sales_order_view.xml



      <?xml version="1.0"?>
      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <body>
      <referenceBlock name="order_info">
      <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
      </referenceBlock>
      </body>
      </page>


      UPDATE



      Bounty: provide XML code to inject a block inside sales_order_view adminhtml layout, explaining how to place it in different sections of the page







      module layout blocks adminhtml magento2.2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 25 at 12:40









      Andhi Irawan

      4181820




      4181820










      asked Mar 8 '18 at 16:21









      Raul SanchezRaul Sanchez

      2,19931335




      2,19931335




















          3 Answers
          3






          active

          oldest

          votes


















          3














          Nero Phung answer was a good try, and led me to the real problem, looking for all sales_order_view appearances in the vendor folder



          2.2 version adds Temando_Shipping module, which overrides sales_order_view layout



          vendor/temando/module-shipping-m2/view/adminhtml/layout/sales_order_view.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="order_tab_info">
          <block class="TemandoShippingBlockAdminhtmlSalesOrderViewInfo" name="order_info" template="Temando_Shipping::sales/order/view/info.phtml">
          <container name="extra_customer_info"/>
          </block>
          </referenceContainer>
          </body>
          </page>


          So I could recover our custom block (using same XML layout as the one we used in 2.1.*) just by adding a module dependency



          <module name="Vendor_Module">
          <sequence>
          <module name="Temando_Shipping"/>
          </sequence>
          </module>





          share|improve this answer




















          • 1





            Congratulations!

            – Nero Phung
            Mar 12 '18 at 16:39






          • 1





            Great work Raul, this saved me a lot of time debugging the same issue in our module on 2.2.

            – Jake from TaxJar
            Apr 20 '18 at 16:57


















          2





          +100









          As I can see. Magento has added a new container inside block named order_info:



          <block class="MagentoSalesBlockAdminhtmlOrderViewInfo" name="order_info" template="Magento_Sales::order/view/info.phtml">
          <container name="extra_customer_info"/>
          </block>


          So you can try to use this code below:



          <referenceContainer name="extra_customer_info">
          <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
          </referenceBlock>


          Hope it will help!






          share|improve this answer























          • I have noticed that layout change in 2.2, but I wasn't sure it should affect... anyways, I have tried changing to <referenceContainer name="extra_customer_info"> but block still doesn't appear

            – Raul Sanchez
            Mar 12 '18 at 10:39











          • magento.stackexchange.com/a/216961/3566

            – Raul Sanchez
            Mar 12 '18 at 11:12


















          0














          Can you try with referenceContainer?



          <?xml version="1.0"?>
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="order_info">
          <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
          </referenceBlock>
          </body>
          </page>





          share|improve this answer























          • What's the purpose of the change? Why using referenceContainer to reference a block?

            – Raul Sanchez
            Mar 12 '18 at 10:36











          • I use referenceBlock to modify block class (eg change template) and referenceContainer to include over blocks. And it work's

            – Aurélien
            Mar 12 '18 at 15:16











          • But... I believe you cannot reference a block (using its name) with a referenceContainer instruction

            – Raul Sanchez
            Mar 12 '18 at 16:27











          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%2f216622%2fmagento2-missing-adminhtml-custom-block-after-upgrade-to-2-2%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          Nero Phung answer was a good try, and led me to the real problem, looking for all sales_order_view appearances in the vendor folder



          2.2 version adds Temando_Shipping module, which overrides sales_order_view layout



          vendor/temando/module-shipping-m2/view/adminhtml/layout/sales_order_view.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="order_tab_info">
          <block class="TemandoShippingBlockAdminhtmlSalesOrderViewInfo" name="order_info" template="Temando_Shipping::sales/order/view/info.phtml">
          <container name="extra_customer_info"/>
          </block>
          </referenceContainer>
          </body>
          </page>


          So I could recover our custom block (using same XML layout as the one we used in 2.1.*) just by adding a module dependency



          <module name="Vendor_Module">
          <sequence>
          <module name="Temando_Shipping"/>
          </sequence>
          </module>





          share|improve this answer




















          • 1





            Congratulations!

            – Nero Phung
            Mar 12 '18 at 16:39






          • 1





            Great work Raul, this saved me a lot of time debugging the same issue in our module on 2.2.

            – Jake from TaxJar
            Apr 20 '18 at 16:57















          3














          Nero Phung answer was a good try, and led me to the real problem, looking for all sales_order_view appearances in the vendor folder



          2.2 version adds Temando_Shipping module, which overrides sales_order_view layout



          vendor/temando/module-shipping-m2/view/adminhtml/layout/sales_order_view.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="order_tab_info">
          <block class="TemandoShippingBlockAdminhtmlSalesOrderViewInfo" name="order_info" template="Temando_Shipping::sales/order/view/info.phtml">
          <container name="extra_customer_info"/>
          </block>
          </referenceContainer>
          </body>
          </page>


          So I could recover our custom block (using same XML layout as the one we used in 2.1.*) just by adding a module dependency



          <module name="Vendor_Module">
          <sequence>
          <module name="Temando_Shipping"/>
          </sequence>
          </module>





          share|improve this answer




















          • 1





            Congratulations!

            – Nero Phung
            Mar 12 '18 at 16:39






          • 1





            Great work Raul, this saved me a lot of time debugging the same issue in our module on 2.2.

            – Jake from TaxJar
            Apr 20 '18 at 16:57













          3












          3








          3







          Nero Phung answer was a good try, and led me to the real problem, looking for all sales_order_view appearances in the vendor folder



          2.2 version adds Temando_Shipping module, which overrides sales_order_view layout



          vendor/temando/module-shipping-m2/view/adminhtml/layout/sales_order_view.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="order_tab_info">
          <block class="TemandoShippingBlockAdminhtmlSalesOrderViewInfo" name="order_info" template="Temando_Shipping::sales/order/view/info.phtml">
          <container name="extra_customer_info"/>
          </block>
          </referenceContainer>
          </body>
          </page>


          So I could recover our custom block (using same XML layout as the one we used in 2.1.*) just by adding a module dependency



          <module name="Vendor_Module">
          <sequence>
          <module name="Temando_Shipping"/>
          </sequence>
          </module>





          share|improve this answer















          Nero Phung answer was a good try, and led me to the real problem, looking for all sales_order_view appearances in the vendor folder



          2.2 version adds Temando_Shipping module, which overrides sales_order_view layout



          vendor/temando/module-shipping-m2/view/adminhtml/layout/sales_order_view.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="order_tab_info">
          <block class="TemandoShippingBlockAdminhtmlSalesOrderViewInfo" name="order_info" template="Temando_Shipping::sales/order/view/info.phtml">
          <container name="extra_customer_info"/>
          </block>
          </referenceContainer>
          </body>
          </page>


          So I could recover our custom block (using same XML layout as the one we used in 2.1.*) just by adding a module dependency



          <module name="Vendor_Module">
          <sequence>
          <module name="Temando_Shipping"/>
          </sequence>
          </module>






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 25 at 12:51









          Andhi Irawan

          4181820




          4181820










          answered Mar 12 '18 at 11:02









          Raul SanchezRaul Sanchez

          2,19931335




          2,19931335







          • 1





            Congratulations!

            – Nero Phung
            Mar 12 '18 at 16:39






          • 1





            Great work Raul, this saved me a lot of time debugging the same issue in our module on 2.2.

            – Jake from TaxJar
            Apr 20 '18 at 16:57












          • 1





            Congratulations!

            – Nero Phung
            Mar 12 '18 at 16:39






          • 1





            Great work Raul, this saved me a lot of time debugging the same issue in our module on 2.2.

            – Jake from TaxJar
            Apr 20 '18 at 16:57







          1




          1





          Congratulations!

          – Nero Phung
          Mar 12 '18 at 16:39





          Congratulations!

          – Nero Phung
          Mar 12 '18 at 16:39




          1




          1





          Great work Raul, this saved me a lot of time debugging the same issue in our module on 2.2.

          – Jake from TaxJar
          Apr 20 '18 at 16:57





          Great work Raul, this saved me a lot of time debugging the same issue in our module on 2.2.

          – Jake from TaxJar
          Apr 20 '18 at 16:57













          2





          +100









          As I can see. Magento has added a new container inside block named order_info:



          <block class="MagentoSalesBlockAdminhtmlOrderViewInfo" name="order_info" template="Magento_Sales::order/view/info.phtml">
          <container name="extra_customer_info"/>
          </block>


          So you can try to use this code below:



          <referenceContainer name="extra_customer_info">
          <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
          </referenceBlock>


          Hope it will help!






          share|improve this answer























          • I have noticed that layout change in 2.2, but I wasn't sure it should affect... anyways, I have tried changing to <referenceContainer name="extra_customer_info"> but block still doesn't appear

            – Raul Sanchez
            Mar 12 '18 at 10:39











          • magento.stackexchange.com/a/216961/3566

            – Raul Sanchez
            Mar 12 '18 at 11:12















          2





          +100









          As I can see. Magento has added a new container inside block named order_info:



          <block class="MagentoSalesBlockAdminhtmlOrderViewInfo" name="order_info" template="Magento_Sales::order/view/info.phtml">
          <container name="extra_customer_info"/>
          </block>


          So you can try to use this code below:



          <referenceContainer name="extra_customer_info">
          <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
          </referenceBlock>


          Hope it will help!






          share|improve this answer























          • I have noticed that layout change in 2.2, but I wasn't sure it should affect... anyways, I have tried changing to <referenceContainer name="extra_customer_info"> but block still doesn't appear

            – Raul Sanchez
            Mar 12 '18 at 10:39











          • magento.stackexchange.com/a/216961/3566

            – Raul Sanchez
            Mar 12 '18 at 11:12













          2





          +100







          2





          +100



          2




          +100





          As I can see. Magento has added a new container inside block named order_info:



          <block class="MagentoSalesBlockAdminhtmlOrderViewInfo" name="order_info" template="Magento_Sales::order/view/info.phtml">
          <container name="extra_customer_info"/>
          </block>


          So you can try to use this code below:



          <referenceContainer name="extra_customer_info">
          <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
          </referenceBlock>


          Hope it will help!






          share|improve this answer













          As I can see. Magento has added a new container inside block named order_info:



          <block class="MagentoSalesBlockAdminhtmlOrderViewInfo" name="order_info" template="Magento_Sales::order/view/info.phtml">
          <container name="extra_customer_info"/>
          </block>


          So you can try to use this code below:



          <referenceContainer name="extra_customer_info">
          <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
          </referenceBlock>


          Hope it will help!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 12 '18 at 2:36









          Nero PhungNero Phung

          9121620




          9121620












          • I have noticed that layout change in 2.2, but I wasn't sure it should affect... anyways, I have tried changing to <referenceContainer name="extra_customer_info"> but block still doesn't appear

            – Raul Sanchez
            Mar 12 '18 at 10:39











          • magento.stackexchange.com/a/216961/3566

            – Raul Sanchez
            Mar 12 '18 at 11:12

















          • I have noticed that layout change in 2.2, but I wasn't sure it should affect... anyways, I have tried changing to <referenceContainer name="extra_customer_info"> but block still doesn't appear

            – Raul Sanchez
            Mar 12 '18 at 10:39











          • magento.stackexchange.com/a/216961/3566

            – Raul Sanchez
            Mar 12 '18 at 11:12
















          I have noticed that layout change in 2.2, but I wasn't sure it should affect... anyways, I have tried changing to <referenceContainer name="extra_customer_info"> but block still doesn't appear

          – Raul Sanchez
          Mar 12 '18 at 10:39





          I have noticed that layout change in 2.2, but I wasn't sure it should affect... anyways, I have tried changing to <referenceContainer name="extra_customer_info"> but block still doesn't appear

          – Raul Sanchez
          Mar 12 '18 at 10:39













          magento.stackexchange.com/a/216961/3566

          – Raul Sanchez
          Mar 12 '18 at 11:12





          magento.stackexchange.com/a/216961/3566

          – Raul Sanchez
          Mar 12 '18 at 11:12











          0














          Can you try with referenceContainer?



          <?xml version="1.0"?>
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="order_info">
          <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
          </referenceBlock>
          </body>
          </page>





          share|improve this answer























          • What's the purpose of the change? Why using referenceContainer to reference a block?

            – Raul Sanchez
            Mar 12 '18 at 10:36











          • I use referenceBlock to modify block class (eg change template) and referenceContainer to include over blocks. And it work's

            – Aurélien
            Mar 12 '18 at 15:16











          • But... I believe you cannot reference a block (using its name) with a referenceContainer instruction

            – Raul Sanchez
            Mar 12 '18 at 16:27















          0














          Can you try with referenceContainer?



          <?xml version="1.0"?>
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="order_info">
          <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
          </referenceBlock>
          </body>
          </page>





          share|improve this answer























          • What's the purpose of the change? Why using referenceContainer to reference a block?

            – Raul Sanchez
            Mar 12 '18 at 10:36











          • I use referenceBlock to modify block class (eg change template) and referenceContainer to include over blocks. And it work's

            – Aurélien
            Mar 12 '18 at 15:16











          • But... I believe you cannot reference a block (using its name) with a referenceContainer instruction

            – Raul Sanchez
            Mar 12 '18 at 16:27













          0












          0








          0







          Can you try with referenceContainer?



          <?xml version="1.0"?>
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="order_info">
          <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
          </referenceBlock>
          </body>
          </page>





          share|improve this answer













          Can you try with referenceContainer?



          <?xml version="1.0"?>
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="order_info">
          <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/>
          </referenceBlock>
          </body>
          </page>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 11 '18 at 20:07









          AurélienAurélien

          25124




          25124












          • What's the purpose of the change? Why using referenceContainer to reference a block?

            – Raul Sanchez
            Mar 12 '18 at 10:36











          • I use referenceBlock to modify block class (eg change template) and referenceContainer to include over blocks. And it work's

            – Aurélien
            Mar 12 '18 at 15:16











          • But... I believe you cannot reference a block (using its name) with a referenceContainer instruction

            – Raul Sanchez
            Mar 12 '18 at 16:27

















          • What's the purpose of the change? Why using referenceContainer to reference a block?

            – Raul Sanchez
            Mar 12 '18 at 10:36











          • I use referenceBlock to modify block class (eg change template) and referenceContainer to include over blocks. And it work's

            – Aurélien
            Mar 12 '18 at 15:16











          • But... I believe you cannot reference a block (using its name) with a referenceContainer instruction

            – Raul Sanchez
            Mar 12 '18 at 16:27
















          What's the purpose of the change? Why using referenceContainer to reference a block?

          – Raul Sanchez
          Mar 12 '18 at 10:36





          What's the purpose of the change? Why using referenceContainer to reference a block?

          – Raul Sanchez
          Mar 12 '18 at 10:36













          I use referenceBlock to modify block class (eg change template) and referenceContainer to include over blocks. And it work's

          – Aurélien
          Mar 12 '18 at 15:16





          I use referenceBlock to modify block class (eg change template) and referenceContainer to include over blocks. And it work's

          – Aurélien
          Mar 12 '18 at 15:16













          But... I believe you cannot reference a block (using its name) with a referenceContainer instruction

          – Raul Sanchez
          Mar 12 '18 at 16:27





          But... I believe you cannot reference a block (using its name) with a referenceContainer instruction

          – Raul Sanchez
          Mar 12 '18 at 16:27

















          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%2f216622%2fmagento2-missing-adminhtml-custom-block-after-upgrade-to-2-2%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