Notice: Undefined index: origin in /var/www/sites/libheros/libheros-patients-website/app/core/Twig.php on line 45

Fatal error: Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in /var/www/sites/libheros/libheros-patients-website/vendor/slim/slim/Slim/App.php:585 Stack trace: #0 /var/www/sites/libheros/libheros-patients-website/vendor/slim/slim/Slim/App.php(377): Slim\App->finalize(Object(Slim\Http\Response)) #1 /var/www/sites/libheros/libheros-patients-website/vendor/slim/slim/Slim/App.php(295): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #2 /var/www/sites/libheros/libheros-patients-website/app/core/Router.php(80): Slim\App->run() #3 /var/www/sites/libheros/libheros-patients-website/index.php(130): app\core\Router->run() #4 {main} thrown in /var/www/sites/libheros/libheros-patients-website/vendor/slim/slim/Slim/App.php on line 585