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;
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
add a comment |
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
add a comment |
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
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
magento2 layout search default.xml
edited Apr 14 '18 at 20:01
PЯINCƏ
8,41431145
8,41431145
asked Apr 14 '18 at 18:00
matinmatin
77110
77110
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
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
add a comment |
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"/>
.....
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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"/>
.....
add a comment |
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"/>
.....
add a comment |
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"/>
.....
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"/>
.....
answered Apr 15 '18 at 7:00
matinmatin
77110
77110
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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