web stats

Fill the form & Get Installation Support

Connect With Us


Connect With Us


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/ Stack trace: #0 /var/www/vhosts/ Magento\Wishlist\Block\Customer\Wishlist->_prepareLayout() #1 /var/www/vhosts/ Magento\Framework\View\Element\AbstractBlock->setLayout(Object(Magento\Framework\View\Layout\Interceptor)) #2 /var/www/vhosts/ 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/ Magento\Framework\View\Layout\GeneratorPool->process(Object(Mag in /var/www/vhosts/ 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.

Was this article helpful?
Fill the below form if you have any Magento programming need.


Recent Articles

Author Info

Hire R. Patel

Get a Free Quote