0

I have created the category page and created some attributes for the products but when i visit the page its giving me error:

Fatal error: Call to a member function setLayer() on a non-object in /home/mxcounte/public_html/usa-tiles/app/code/core/Mage/Catalog/Block/Layer/View.php  

here is my local.xml file in following folders and link to my xml file is as follows: /app/design/frontend/mgstheme/luxury/layout https://drive.google.com/file/d/0ByQ1WRjkUEDudHhDel9Va0J4OGc/view?usp=sharing

And one thing that looks suspicious as follows:

<catalog_category_default>
    <remove name="catalog.leftnav"/>
</catalog_category_default>

<catalog_category_layered>
    <remove name="catalog.leftnav"/>
</catalog_category_layered>

Can anyone help on this?... I am using mgstheme Luxury theme for magento.

  • what does it say after Call to a member function setLayer() on a non-object in ? – Marius Dec 5 '16 at 14:31
  • @Marius Question is updated please check now: – Xabby Dec 5 '16 at 14:34
  • indeed the xml you posted looks suspicious. Try commenting it out in your local.xml file and see what happens. Clear the cache when you are done. – Marius Dec 5 '16 at 14:36
  • Previously the error was on left section only but now whole page is white and showing the error: Call to a member function setLayer() on a non-object in /home/mxcounte/public_html/usa-tiles/app/code/core/Mage/Catalog/Block/Layer/View.php on line 134 – Xabby Dec 5 '16 at 14:44
  • @Marius Hey I have created categories but on front end its saying No Category Found in letf side bar, But on the main category page its showing all the categories, what is this issue: Main Category page:mxcounters.com/usa-tiles/index.php/mosaics.html Child Category with left sidebar:mxcounters.com/usa-tiles/index.php/mosaics/glass-mosaics.html – Xabby Dec 5 '16 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.