Fatal error: Uncaught Error: Call to a member function getBaseUrl() on null in /srv/public_html/app/code/Forix/Custom/Controller/Store/SwitchAction.php:79
Stack trace:
#0 /srv/public_html/vendor/magento/framework/App/Action/Action.php(107): Forix\Custom\Controller\Store\SwitchAction->execute()
#1 /srv/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#2 /srv/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Forix\Custom\Controller\Store\SwitchAction\Interceptor->___callParent('dispatch', Array)
#3 /srv/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Forix\Custom\Controller\Store\SwitchAction\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#4 /srv/public_html/generated/code/Forix/Custom/Controller/Store/SwitchAction/Interceptor.php(26): Forix\Custom\Controller\Store\SwitchAction\Interceptor->___callPlugins('dispatch', A in /srv/public_html/app/code/Forix/Custom/Controller/Store/SwitchAction.php on line 79