Web Analytics

Fill the form & Get Installation Support





    Solve : Call to a member function setUseContainer() on boolean in customer wishlist page

    If you face this type of fatal error on customer wishlish page.

    Fatal error: Uncaught Error: Call to a member function setUseContainer() on boolean in /var/www/vhosts/test.com/vendor/magento/module-wishlist/Block/Customer/Wishlist.php:127 Stack trace: #0 /var/www/vhosts/test.com/vendor/magento/framework/View/Element/AbstractBlock.php(286): Magento\Wishlist\Block\Customer\Wishlist->_prepareLayout() #1 /var/www/vhosts/test.com/vendor/magento/framework/View/Layout/Generator/Block.php(149): Magento\Framework\View\Element\AbstractBlock->setLayout(Object(Magento\Framework\View\Layout\Interceptor)) #2 /var/www/vhosts/test.com/vendor/magento/framework/View/Layout/GeneratorPool.php(81): Magento\Framework\View\Layout\Generator\Block->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context)) #3 /var/www/vhosts/test.com/vendor/magento/framework/View/Layout.php(352): Magento\Framework\View\Layout\GeneratorPool->process(Object(Mag in /var/www/vhosts/test.com/vendor/magento/module-wishlist/Block/Customer/Wishlist.php on line 127

    Then, follow below instruction to solve it.

    Override wishlist_index_index.xml file in your theme and paste below code

    in app/design/frontend/Magestore/theme/Magento_Wishlist/layout/wishlist_index_index.xml

    After processing above steps, run below commands

    That’s it. Now, you can check your customer wishlist page. Your wishlist page error should be resolved.

    Fill the below form if you have any Magento programming need.





      Recent Articles

      Author Info

      Hire R. Patel

      Get a Free Quote





        Connect With Us