Fatal error: Uncaught Error: Call to undefined method Magento\Framework\App\Action\Context::getRedirectFactory() in /var/www/html/app/code/Retailinsights/Measurements/Controller/Index/Index.php:31 Stack trace: #0 /var/www/html/var/generation/Retailinsights/Measurements/Controller/Index/Index/Interceptor.php(14): Retailinsights\Measurements\Controller\Index\Index->__construct(Object(Magento\Framework\App\Action\Context), Object(Retailinsights\Measurements\Model\PostFactory), Object(Magento\Customer\Model\Session\Interceptor)) #1 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Retailinsights\Measurements\Controller\Index\Index\Interceptor->__construct(Object(Magento\Framework\App\Action\Context), Object(Retailinsights\Measurements\Model\PostFactory), Object(Magento\Customer\Model\Session\Interceptor)) #2 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Retailinsights\\...', Array) #3 /va in /var/www/html/app/code/Retailinsights/Measurements/Controller/Index/Index.php on line 31