Warning: Undefined variable $block in /var/www/magento/html/app/design/frontend/bbnt/base/Magento_Wishlist/templates/button/tocart.phtml on line 6

Fatal error: Uncaught Error: Call to a member function getWishlist() on null in /var/www/magento/html/app/design/frontend/bbnt/base/Magento_Wishlist/templates/button/tocart.phtml:6 Stack trace: #0 {main} thrown in /var/www/magento/html/app/design/frontend/bbnt/base/Magento_Wishlist/templates/button/tocart.phtml on line 6