Search result page blank pagechange search result page to 1 columnCatalog search gives me a blank pageError on search result pageHow can i rewrite TierPrice Block in Magento2how does magento generate the content of store link (block name=store.links )in the mobile viewPlease correct the XML data and try again. Element 'referenceBlock': This element is not expectedMagento Advanced Search Page in Search Result PageMove/Push page.main.title block into Breadcrumbs Magento2Magento 2 move header.links without mobile menuSearch result page layout

Is it unprofessional to ask if a job posting on GlassDoor is real?

How can I make my BBEG immortal short of making them a Lich or Vampire?

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

Minkowski space

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

Why, historically, did Gödel think CH was false?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Pattern match does not work in bash script

Risk of getting Chronic Wasting Disease (CWD) in the United States?

Finding angle with pure Geometry.

Email Account under attack (really) - anything I can do?

Is it legal for company to use my work email to pretend I still work there?

Schoenfled Residua test shows proportionality hazard assumptions holds but Kaplan-Meier plots intersect

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

Voyeurism but not really

"You are your self first supporter", a more proper way to say it

Dragon forelimb placement

What is the word for reserving something for yourself before others do?

Is it possible to do 50 km distance without any previous training?

Watching something be written to a file live with tail

Arthur Somervell: 1000 Exercises - Meaning of this notation

Show that if two triangles built on parallel lines, with equal bases have the same perimeter only if they are congruent.

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Did Shadowfax go to Valinor?



Search result page blank page


change search result page to 1 columnCatalog search gives me a blank pageError on search result pageHow can i rewrite TierPrice Block in Magento2how does magento generate the content of store link (block name=store.links )in the mobile viewPlease correct the XML data and try again. Element 'referenceBlock': This element is not expectedMagento Advanced Search Page in Search Result PageMove/Push page.main.title block into Breadcrumbs Magento2Magento 2 move header.links without mobile menuSearch result page layout






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








1















Does somebody know why the xml bellow causes blank page on search result page ?



Im using luma theme and have custom theme with Magento_Theme/layout/default.xml.



All pages are shown correctly exept search result like catalogsearch/result/?q=xxx.



<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
<referenceContainer name="header.panel">
<block class="MagentoFrameworkViewElementHtmlLinks" name="header.links">
<arguments>
<argument name="css_class" xsi:type="string">header links</argument>
</arguments>
</block>
</referenceContainer>

<referenceBlock name="logo">
<arguments>
<argument name="logo_img_width" xsi:type="number">148</argument>
<argument name="logo_img_height" xsi:type="number">43</argument>
</arguments>
</referenceBlock>
<!--<referenceBlock name="header.panel" remove="true" />-->
<move element="header.panel" destination="header-wrapper" after="logo"/>

<referenceBlock name="header.panel.wrapper" remove="true"/>

<move element="navigation.sections" destination="header-wrapper" after="logo"/>

<!--<move element="top.search" destination="header-wrapper" after="-" />
<move element="search" destination="header-wrapper" after="-" />
<move element="catalog.compare.link" destination="header.links" /> -->

<move element="top.search" destination="header.panel" after="header.links" />
<move element="search" destination="header.panel" after="header.links" />
<move element="catalog.compare.link" destination="header.links" />
<move element="minicart" destination="header.panel" after="header.links" />

<referenceBlock name="catalog.compare.link" remove="true"/>

<referenceBlock name="header" remove="true"/>
<referenceBlock name="footer_links" remove="true"/>
<referenceBlock name="form.subscribe" remove="true" />
<referenceBlock name="copyright" remove="true"/>
<referenceContainer name="footer">
<block class="MagentoCmsBlockBlock" name="footerlinks">
<arguments>
<argument name="block_id" xsi:type="string">footerlinks</argument>
</arguments>
</block>
</referenceContainer>
</layout>


Thanks for help !










share|improve this question






























    1















    Does somebody know why the xml bellow causes blank page on search result page ?



    Im using luma theme and have custom theme with Magento_Theme/layout/default.xml.



    All pages are shown correctly exept search result like catalogsearch/result/?q=xxx.



    <?xml version="1.0"?>
    <!--
    /**
    * Copyright © Magento, Inc. All rights reserved.
    * See COPYING.txt for license details.
    */
    -->
    <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
    <referenceContainer name="header.panel">
    <block class="MagentoFrameworkViewElementHtmlLinks" name="header.links">
    <arguments>
    <argument name="css_class" xsi:type="string">header links</argument>
    </arguments>
    </block>
    </referenceContainer>

    <referenceBlock name="logo">
    <arguments>
    <argument name="logo_img_width" xsi:type="number">148</argument>
    <argument name="logo_img_height" xsi:type="number">43</argument>
    </arguments>
    </referenceBlock>
    <!--<referenceBlock name="header.panel" remove="true" />-->
    <move element="header.panel" destination="header-wrapper" after="logo"/>

    <referenceBlock name="header.panel.wrapper" remove="true"/>

    <move element="navigation.sections" destination="header-wrapper" after="logo"/>

    <!--<move element="top.search" destination="header-wrapper" after="-" />
    <move element="search" destination="header-wrapper" after="-" />
    <move element="catalog.compare.link" destination="header.links" /> -->

    <move element="top.search" destination="header.panel" after="header.links" />
    <move element="search" destination="header.panel" after="header.links" />
    <move element="catalog.compare.link" destination="header.links" />
    <move element="minicart" destination="header.panel" after="header.links" />

    <referenceBlock name="catalog.compare.link" remove="true"/>

    <referenceBlock name="header" remove="true"/>
    <referenceBlock name="footer_links" remove="true"/>
    <referenceBlock name="form.subscribe" remove="true" />
    <referenceBlock name="copyright" remove="true"/>
    <referenceContainer name="footer">
    <block class="MagentoCmsBlockBlock" name="footerlinks">
    <arguments>
    <argument name="block_id" xsi:type="string">footerlinks</argument>
    </arguments>
    </block>
    </referenceContainer>
    </layout>


    Thanks for help !










    share|improve this question


























      1












      1








      1








      Does somebody know why the xml bellow causes blank page on search result page ?



      Im using luma theme and have custom theme with Magento_Theme/layout/default.xml.



      All pages are shown correctly exept search result like catalogsearch/result/?q=xxx.



      <?xml version="1.0"?>
      <!--
      /**
      * Copyright © Magento, Inc. All rights reserved.
      * See COPYING.txt for license details.
      */
      -->
      <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
      <referenceContainer name="header.panel">
      <block class="MagentoFrameworkViewElementHtmlLinks" name="header.links">
      <arguments>
      <argument name="css_class" xsi:type="string">header links</argument>
      </arguments>
      </block>
      </referenceContainer>

      <referenceBlock name="logo">
      <arguments>
      <argument name="logo_img_width" xsi:type="number">148</argument>
      <argument name="logo_img_height" xsi:type="number">43</argument>
      </arguments>
      </referenceBlock>
      <!--<referenceBlock name="header.panel" remove="true" />-->
      <move element="header.panel" destination="header-wrapper" after="logo"/>

      <referenceBlock name="header.panel.wrapper" remove="true"/>

      <move element="navigation.sections" destination="header-wrapper" after="logo"/>

      <!--<move element="top.search" destination="header-wrapper" after="-" />
      <move element="search" destination="header-wrapper" after="-" />
      <move element="catalog.compare.link" destination="header.links" /> -->

      <move element="top.search" destination="header.panel" after="header.links" />
      <move element="search" destination="header.panel" after="header.links" />
      <move element="catalog.compare.link" destination="header.links" />
      <move element="minicart" destination="header.panel" after="header.links" />

      <referenceBlock name="catalog.compare.link" remove="true"/>

      <referenceBlock name="header" remove="true"/>
      <referenceBlock name="footer_links" remove="true"/>
      <referenceBlock name="form.subscribe" remove="true" />
      <referenceBlock name="copyright" remove="true"/>
      <referenceContainer name="footer">
      <block class="MagentoCmsBlockBlock" name="footerlinks">
      <arguments>
      <argument name="block_id" xsi:type="string">footerlinks</argument>
      </arguments>
      </block>
      </referenceContainer>
      </layout>


      Thanks for help !










      share|improve this question
















      Does somebody know why the xml bellow causes blank page on search result page ?



      Im using luma theme and have custom theme with Magento_Theme/layout/default.xml.



      All pages are shown correctly exept search result like catalogsearch/result/?q=xxx.



      <?xml version="1.0"?>
      <!--
      /**
      * Copyright © Magento, Inc. All rights reserved.
      * See COPYING.txt for license details.
      */
      -->
      <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
      <referenceContainer name="header.panel">
      <block class="MagentoFrameworkViewElementHtmlLinks" name="header.links">
      <arguments>
      <argument name="css_class" xsi:type="string">header links</argument>
      </arguments>
      </block>
      </referenceContainer>

      <referenceBlock name="logo">
      <arguments>
      <argument name="logo_img_width" xsi:type="number">148</argument>
      <argument name="logo_img_height" xsi:type="number">43</argument>
      </arguments>
      </referenceBlock>
      <!--<referenceBlock name="header.panel" remove="true" />-->
      <move element="header.panel" destination="header-wrapper" after="logo"/>

      <referenceBlock name="header.panel.wrapper" remove="true"/>

      <move element="navigation.sections" destination="header-wrapper" after="logo"/>

      <!--<move element="top.search" destination="header-wrapper" after="-" />
      <move element="search" destination="header-wrapper" after="-" />
      <move element="catalog.compare.link" destination="header.links" /> -->

      <move element="top.search" destination="header.panel" after="header.links" />
      <move element="search" destination="header.panel" after="header.links" />
      <move element="catalog.compare.link" destination="header.links" />
      <move element="minicart" destination="header.panel" after="header.links" />

      <referenceBlock name="catalog.compare.link" remove="true"/>

      <referenceBlock name="header" remove="true"/>
      <referenceBlock name="footer_links" remove="true"/>
      <referenceBlock name="form.subscribe" remove="true" />
      <referenceBlock name="copyright" remove="true"/>
      <referenceContainer name="footer">
      <block class="MagentoCmsBlockBlock" name="footerlinks">
      <arguments>
      <argument name="block_id" xsi:type="string">footerlinks</argument>
      </arguments>
      </block>
      </referenceContainer>
      </layout>


      Thanks for help !







      magento2 layout search default.xml






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 14 '18 at 20:01









      PЯINCƏ

      8,41431145




      8,41431145










      asked Apr 14 '18 at 18:00









      matinmatin

      77110




      77110




















          2 Answers
          2






          active

          oldest

          votes


















          0














          As I see, this xml should not cause a blank page for search page, I doubt about another file ! Please try to add this to your theme:



          app/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml



          <?xml version="1.0"?>
          <!--
          /**
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */
          -->
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <attribute name="class" value="page-products"/>
          <referenceContainer name="content">
          <block class="MagentoCatalogSearchBlockResult" name="search.result" template="Magento_CatalogSearch::result.phtml" cacheable="false">
          <block class="MagentoCatalogSearchBlockSearchResultListProduct" name="search_result_list" template="Magento_Catalog::product/list.phtml" cacheable="false">
          <arguments>
          <!-- If argument's position depends on image size changeable in VDE:
          positions:list-secondary,grid-secondary,list-actions,grid-actions,list-primary,grid-primary
          -->
          <argument name="positioned" xsi:type="string">positions:list-secondary</argument>
          </arguments>
          <block class="MagentoCatalogBlockProductProductListToolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml" cacheable="false">
          <block class="MagentoThemeBlockHtmlPager" name="product_list_toolbar_pager" cacheable="false"/>
          </block>
          <action method="setToolbarBlockName">
          <argument name="name" xsi:type="string">product_list_toolbar</argument>
          </action>
          <block class="MagentoFrameworkViewElementRendererList" name="category.product.type.details.renderers" as="details.renderers">
          <block class="MagentoFrameworkViewElementTemplate" name="category.product.type.details.renderers.default" as="default"/>
          </block>
          <block class="MagentoCatalogBlockProductProductListItemContainer" name="catalogsearch.product.addto" as="addto">
          <block class="MagentoCatalogBlockProductProductListItemAddToCompare"
          name="catalogsearch.product.addto.compare" as="compare"
          template="Magento_Catalog::product/list/addto/compare.phtml"/>
          </block>
          </block>
          <action method="setListOrders"/>
          <action method="setListModes"/>
          <action method="setListCollection"/>
          </block>
          </referenceContainer>
          </body>
          </page>


          Don't forget to clean your cache and deploying a static contents



          php bin/magento cache:clean



          php bin/magento setup:static-content:deploy -f






          share|improve this answer























          • Thanks! I have copied file in p/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml and p/design/frontend/Vendor/theme/Magento_Search/layout/catalogsearch_result_index.xml (and run shell comands) but page is still blank ...

            – matin
            Apr 15 '18 at 6:45











          • If I remove file Magento_Theme/layout/default.xml search result page is shown (but my theme is not correct then of course)

            – matin
            Apr 15 '18 at 6:46


















          0














          I could solve it by copying original xml from Magento_Theme/layout/default.xml into my custom theme and remove tag



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="header.panel">
          <block class="MagentoFrameworkViewElementHtmlLinks" name="header.links">
          <arguments>
          <argument name="css_class" xsi:type="string">header links</argument>
          </arguments>
          </block>
          </referenceContainer>
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_img_width" xsi:type="number">148</argument>
          <argument name="logo_img_height" xsi:type="number">43</argument>
          </arguments>
          </referenceBlock>
          <referenceContainer name="footer">
          <block class="MagentoStoreBlockSwitcher" name="store_switcher" as="store_switcher" after="footer_links" template="Magento_Store::switch/stores.phtml"/>
          </referenceContainer>
          <referenceBlock name="report.bugs" remove="true"/>
          <move element="copyright" destination="before.body.end"/>


          .....






          share|improve this answer























            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%2f222310%2fsearch-result-page-blank-page%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            As I see, this xml should not cause a blank page for search page, I doubt about another file ! Please try to add this to your theme:



            app/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml



            <?xml version="1.0"?>
            <!--
            /**
            * Copyright © Magento, Inc. All rights reserved.
            * See COPYING.txt for license details.
            */
            -->
            <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
            <body>
            <attribute name="class" value="page-products"/>
            <referenceContainer name="content">
            <block class="MagentoCatalogSearchBlockResult" name="search.result" template="Magento_CatalogSearch::result.phtml" cacheable="false">
            <block class="MagentoCatalogSearchBlockSearchResultListProduct" name="search_result_list" template="Magento_Catalog::product/list.phtml" cacheable="false">
            <arguments>
            <!-- If argument's position depends on image size changeable in VDE:
            positions:list-secondary,grid-secondary,list-actions,grid-actions,list-primary,grid-primary
            -->
            <argument name="positioned" xsi:type="string">positions:list-secondary</argument>
            </arguments>
            <block class="MagentoCatalogBlockProductProductListToolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml" cacheable="false">
            <block class="MagentoThemeBlockHtmlPager" name="product_list_toolbar_pager" cacheable="false"/>
            </block>
            <action method="setToolbarBlockName">
            <argument name="name" xsi:type="string">product_list_toolbar</argument>
            </action>
            <block class="MagentoFrameworkViewElementRendererList" name="category.product.type.details.renderers" as="details.renderers">
            <block class="MagentoFrameworkViewElementTemplate" name="category.product.type.details.renderers.default" as="default"/>
            </block>
            <block class="MagentoCatalogBlockProductProductListItemContainer" name="catalogsearch.product.addto" as="addto">
            <block class="MagentoCatalogBlockProductProductListItemAddToCompare"
            name="catalogsearch.product.addto.compare" as="compare"
            template="Magento_Catalog::product/list/addto/compare.phtml"/>
            </block>
            </block>
            <action method="setListOrders"/>
            <action method="setListModes"/>
            <action method="setListCollection"/>
            </block>
            </referenceContainer>
            </body>
            </page>


            Don't forget to clean your cache and deploying a static contents



            php bin/magento cache:clean



            php bin/magento setup:static-content:deploy -f






            share|improve this answer























            • Thanks! I have copied file in p/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml and p/design/frontend/Vendor/theme/Magento_Search/layout/catalogsearch_result_index.xml (and run shell comands) but page is still blank ...

              – matin
              Apr 15 '18 at 6:45











            • If I remove file Magento_Theme/layout/default.xml search result page is shown (but my theme is not correct then of course)

              – matin
              Apr 15 '18 at 6:46















            0














            As I see, this xml should not cause a blank page for search page, I doubt about another file ! Please try to add this to your theme:



            app/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml



            <?xml version="1.0"?>
            <!--
            /**
            * Copyright © Magento, Inc. All rights reserved.
            * See COPYING.txt for license details.
            */
            -->
            <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
            <body>
            <attribute name="class" value="page-products"/>
            <referenceContainer name="content">
            <block class="MagentoCatalogSearchBlockResult" name="search.result" template="Magento_CatalogSearch::result.phtml" cacheable="false">
            <block class="MagentoCatalogSearchBlockSearchResultListProduct" name="search_result_list" template="Magento_Catalog::product/list.phtml" cacheable="false">
            <arguments>
            <!-- If argument's position depends on image size changeable in VDE:
            positions:list-secondary,grid-secondary,list-actions,grid-actions,list-primary,grid-primary
            -->
            <argument name="positioned" xsi:type="string">positions:list-secondary</argument>
            </arguments>
            <block class="MagentoCatalogBlockProductProductListToolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml" cacheable="false">
            <block class="MagentoThemeBlockHtmlPager" name="product_list_toolbar_pager" cacheable="false"/>
            </block>
            <action method="setToolbarBlockName">
            <argument name="name" xsi:type="string">product_list_toolbar</argument>
            </action>
            <block class="MagentoFrameworkViewElementRendererList" name="category.product.type.details.renderers" as="details.renderers">
            <block class="MagentoFrameworkViewElementTemplate" name="category.product.type.details.renderers.default" as="default"/>
            </block>
            <block class="MagentoCatalogBlockProductProductListItemContainer" name="catalogsearch.product.addto" as="addto">
            <block class="MagentoCatalogBlockProductProductListItemAddToCompare"
            name="catalogsearch.product.addto.compare" as="compare"
            template="Magento_Catalog::product/list/addto/compare.phtml"/>
            </block>
            </block>
            <action method="setListOrders"/>
            <action method="setListModes"/>
            <action method="setListCollection"/>
            </block>
            </referenceContainer>
            </body>
            </page>


            Don't forget to clean your cache and deploying a static contents



            php bin/magento cache:clean



            php bin/magento setup:static-content:deploy -f






            share|improve this answer























            • Thanks! I have copied file in p/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml and p/design/frontend/Vendor/theme/Magento_Search/layout/catalogsearch_result_index.xml (and run shell comands) but page is still blank ...

              – matin
              Apr 15 '18 at 6:45











            • If I remove file Magento_Theme/layout/default.xml search result page is shown (but my theme is not correct then of course)

              – matin
              Apr 15 '18 at 6:46













            0












            0








            0







            As I see, this xml should not cause a blank page for search page, I doubt about another file ! Please try to add this to your theme:



            app/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml



            <?xml version="1.0"?>
            <!--
            /**
            * Copyright © Magento, Inc. All rights reserved.
            * See COPYING.txt for license details.
            */
            -->
            <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
            <body>
            <attribute name="class" value="page-products"/>
            <referenceContainer name="content">
            <block class="MagentoCatalogSearchBlockResult" name="search.result" template="Magento_CatalogSearch::result.phtml" cacheable="false">
            <block class="MagentoCatalogSearchBlockSearchResultListProduct" name="search_result_list" template="Magento_Catalog::product/list.phtml" cacheable="false">
            <arguments>
            <!-- If argument's position depends on image size changeable in VDE:
            positions:list-secondary,grid-secondary,list-actions,grid-actions,list-primary,grid-primary
            -->
            <argument name="positioned" xsi:type="string">positions:list-secondary</argument>
            </arguments>
            <block class="MagentoCatalogBlockProductProductListToolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml" cacheable="false">
            <block class="MagentoThemeBlockHtmlPager" name="product_list_toolbar_pager" cacheable="false"/>
            </block>
            <action method="setToolbarBlockName">
            <argument name="name" xsi:type="string">product_list_toolbar</argument>
            </action>
            <block class="MagentoFrameworkViewElementRendererList" name="category.product.type.details.renderers" as="details.renderers">
            <block class="MagentoFrameworkViewElementTemplate" name="category.product.type.details.renderers.default" as="default"/>
            </block>
            <block class="MagentoCatalogBlockProductProductListItemContainer" name="catalogsearch.product.addto" as="addto">
            <block class="MagentoCatalogBlockProductProductListItemAddToCompare"
            name="catalogsearch.product.addto.compare" as="compare"
            template="Magento_Catalog::product/list/addto/compare.phtml"/>
            </block>
            </block>
            <action method="setListOrders"/>
            <action method="setListModes"/>
            <action method="setListCollection"/>
            </block>
            </referenceContainer>
            </body>
            </page>


            Don't forget to clean your cache and deploying a static contents



            php bin/magento cache:clean



            php bin/magento setup:static-content:deploy -f






            share|improve this answer













            As I see, this xml should not cause a blank page for search page, I doubt about another file ! Please try to add this to your theme:



            app/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml



            <?xml version="1.0"?>
            <!--
            /**
            * Copyright © Magento, Inc. All rights reserved.
            * See COPYING.txt for license details.
            */
            -->
            <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
            <body>
            <attribute name="class" value="page-products"/>
            <referenceContainer name="content">
            <block class="MagentoCatalogSearchBlockResult" name="search.result" template="Magento_CatalogSearch::result.phtml" cacheable="false">
            <block class="MagentoCatalogSearchBlockSearchResultListProduct" name="search_result_list" template="Magento_Catalog::product/list.phtml" cacheable="false">
            <arguments>
            <!-- If argument's position depends on image size changeable in VDE:
            positions:list-secondary,grid-secondary,list-actions,grid-actions,list-primary,grid-primary
            -->
            <argument name="positioned" xsi:type="string">positions:list-secondary</argument>
            </arguments>
            <block class="MagentoCatalogBlockProductProductListToolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml" cacheable="false">
            <block class="MagentoThemeBlockHtmlPager" name="product_list_toolbar_pager" cacheable="false"/>
            </block>
            <action method="setToolbarBlockName">
            <argument name="name" xsi:type="string">product_list_toolbar</argument>
            </action>
            <block class="MagentoFrameworkViewElementRendererList" name="category.product.type.details.renderers" as="details.renderers">
            <block class="MagentoFrameworkViewElementTemplate" name="category.product.type.details.renderers.default" as="default"/>
            </block>
            <block class="MagentoCatalogBlockProductProductListItemContainer" name="catalogsearch.product.addto" as="addto">
            <block class="MagentoCatalogBlockProductProductListItemAddToCompare"
            name="catalogsearch.product.addto.compare" as="compare"
            template="Magento_Catalog::product/list/addto/compare.phtml"/>
            </block>
            </block>
            <action method="setListOrders"/>
            <action method="setListModes"/>
            <action method="setListCollection"/>
            </block>
            </referenceContainer>
            </body>
            </page>


            Don't forget to clean your cache and deploying a static contents



            php bin/magento cache:clean



            php bin/magento setup:static-content:deploy -f







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 14 '18 at 20:24









            PЯINCƏPЯINCƏ

            8,41431145




            8,41431145












            • Thanks! I have copied file in p/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml and p/design/frontend/Vendor/theme/Magento_Search/layout/catalogsearch_result_index.xml (and run shell comands) but page is still blank ...

              – matin
              Apr 15 '18 at 6:45











            • If I remove file Magento_Theme/layout/default.xml search result page is shown (but my theme is not correct then of course)

              – matin
              Apr 15 '18 at 6:46

















            • Thanks! I have copied file in p/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml and p/design/frontend/Vendor/theme/Magento_Search/layout/catalogsearch_result_index.xml (and run shell comands) but page is still blank ...

              – matin
              Apr 15 '18 at 6:45











            • If I remove file Magento_Theme/layout/default.xml search result page is shown (but my theme is not correct then of course)

              – matin
              Apr 15 '18 at 6:46
















            Thanks! I have copied file in p/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml and p/design/frontend/Vendor/theme/Magento_Search/layout/catalogsearch_result_index.xml (and run shell comands) but page is still blank ...

            – matin
            Apr 15 '18 at 6:45





            Thanks! I have copied file in p/design/frontend/Vendor/theme/Magento_Catalog-search/layout/catalogsearch_result_index.xml and p/design/frontend/Vendor/theme/Magento_Search/layout/catalogsearch_result_index.xml (and run shell comands) but page is still blank ...

            – matin
            Apr 15 '18 at 6:45













            If I remove file Magento_Theme/layout/default.xml search result page is shown (but my theme is not correct then of course)

            – matin
            Apr 15 '18 at 6:46





            If I remove file Magento_Theme/layout/default.xml search result page is shown (but my theme is not correct then of course)

            – matin
            Apr 15 '18 at 6:46













            0














            I could solve it by copying original xml from Magento_Theme/layout/default.xml into my custom theme and remove tag



            <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
            <body>
            <referenceContainer name="header.panel">
            <block class="MagentoFrameworkViewElementHtmlLinks" name="header.links">
            <arguments>
            <argument name="css_class" xsi:type="string">header links</argument>
            </arguments>
            </block>
            </referenceContainer>
            <referenceBlock name="logo">
            <arguments>
            <argument name="logo_img_width" xsi:type="number">148</argument>
            <argument name="logo_img_height" xsi:type="number">43</argument>
            </arguments>
            </referenceBlock>
            <referenceContainer name="footer">
            <block class="MagentoStoreBlockSwitcher" name="store_switcher" as="store_switcher" after="footer_links" template="Magento_Store::switch/stores.phtml"/>
            </referenceContainer>
            <referenceBlock name="report.bugs" remove="true"/>
            <move element="copyright" destination="before.body.end"/>


            .....






            share|improve this answer



























              0














              I could solve it by copying original xml from Magento_Theme/layout/default.xml into my custom theme and remove tag



              <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
              <body>
              <referenceContainer name="header.panel">
              <block class="MagentoFrameworkViewElementHtmlLinks" name="header.links">
              <arguments>
              <argument name="css_class" xsi:type="string">header links</argument>
              </arguments>
              </block>
              </referenceContainer>
              <referenceBlock name="logo">
              <arguments>
              <argument name="logo_img_width" xsi:type="number">148</argument>
              <argument name="logo_img_height" xsi:type="number">43</argument>
              </arguments>
              </referenceBlock>
              <referenceContainer name="footer">
              <block class="MagentoStoreBlockSwitcher" name="store_switcher" as="store_switcher" after="footer_links" template="Magento_Store::switch/stores.phtml"/>
              </referenceContainer>
              <referenceBlock name="report.bugs" remove="true"/>
              <move element="copyright" destination="before.body.end"/>


              .....






              share|improve this answer

























                0












                0








                0







                I could solve it by copying original xml from Magento_Theme/layout/default.xml into my custom theme and remove tag



                <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                <body>
                <referenceContainer name="header.panel">
                <block class="MagentoFrameworkViewElementHtmlLinks" name="header.links">
                <arguments>
                <argument name="css_class" xsi:type="string">header links</argument>
                </arguments>
                </block>
                </referenceContainer>
                <referenceBlock name="logo">
                <arguments>
                <argument name="logo_img_width" xsi:type="number">148</argument>
                <argument name="logo_img_height" xsi:type="number">43</argument>
                </arguments>
                </referenceBlock>
                <referenceContainer name="footer">
                <block class="MagentoStoreBlockSwitcher" name="store_switcher" as="store_switcher" after="footer_links" template="Magento_Store::switch/stores.phtml"/>
                </referenceContainer>
                <referenceBlock name="report.bugs" remove="true"/>
                <move element="copyright" destination="before.body.end"/>


                .....






                share|improve this answer













                I could solve it by copying original xml from Magento_Theme/layout/default.xml into my custom theme and remove tag



                <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                <body>
                <referenceContainer name="header.panel">
                <block class="MagentoFrameworkViewElementHtmlLinks" name="header.links">
                <arguments>
                <argument name="css_class" xsi:type="string">header links</argument>
                </arguments>
                </block>
                </referenceContainer>
                <referenceBlock name="logo">
                <arguments>
                <argument name="logo_img_width" xsi:type="number">148</argument>
                <argument name="logo_img_height" xsi:type="number">43</argument>
                </arguments>
                </referenceBlock>
                <referenceContainer name="footer">
                <block class="MagentoStoreBlockSwitcher" name="store_switcher" as="store_switcher" after="footer_links" template="Magento_Store::switch/stores.phtml"/>
                </referenceContainer>
                <referenceBlock name="report.bugs" remove="true"/>
                <move element="copyright" destination="before.body.end"/>


                .....







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 15 '18 at 7:00









                matinmatin

                77110




                77110



























                    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%2f222310%2fsearch-result-page-blank-page%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

                    Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

                    Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?