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
1 2 3 4 5 6 7 8 |
. . . <block class="Magento\Wishlist\Block\Customer\Wishlist" name="customer.wishlist" template="view.phtml" cacheable="false"> <block class="Magento\Theme\Block\Html\Pager" name="wishlist_item_pager"/> . . . |
in app/design/frontend/Magestore/theme/Magento_Wishlist/layout/wishlist_index_index.xml
After processing above steps, run below commands
1 2 3 |
- php bin/magento setup:upgrade - php bin/magento setup:di:compile - php bin/magento cache:clean |
That’s it. Now, you can check your customer wishlist page. Your wishlist page error should be resolved.
[crayon-63e0a57ba0b75914094680/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...
Let our Magento expert connect to discuss your requirement.
We offer Magento
certified developers.
Our Magento clientele
is 500+.
We sign NDA for the
security of your projects.
We’ve performed 100+
Magento migration projects.
Free quotation
on your project.
Three months warranty on
code developed by us.