Warning: Undefined variable $b2b_db in /var/www/vhosts/newsha.com/httpdocs/magento2/pub/affiliate.php on line 80

Fatal error: Uncaught Error: Call to a member function sql() on null in /var/www/vhosts/newsha.com/httpdocs/magento2/pub/affiliate.php:80 Stack trace: #0 /var/www/vhosts/newsha.com/httpdocs/magento2/pub/affiliate.php(93): redirect_is_sub() #1 {main} thrown in /var/www/vhosts/newsha.com/httpdocs/magento2/pub/affiliate.php on line 80