Deprecated: Required parameter $userAgent follows optional parameter $body in /home/allsafez/app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php on line 161

Fatal error: Uncaught ErrorException: Cannot modify header information - headers already sent by (output started at /home/allsafez/app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php:161) in /home/allsafez/app/vendor/codeigniter4/framework/system/Debug/Exceptions.php:164 Stack trace: #0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'Cannot modify h...', '/home/allsafez/...', 164) #1 /home/allsafez/app/vendor/codeigniter4/framework/system/Debug/Exceptions.php(164): header('HTTP/2.0 500 In...', true, 500) #2 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException)) #3 {main} thrown in /home/allsafez/app/vendor/codeigniter4/framework/system/Debug/Exceptions.php on line 164

Fatal error: Uncaught ErrorException: Cannot modify header information - headers already sent by (output started at /home/allsafez/app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php:161) in /home/allsafez/app/vendor/codeigniter4/framework/system/Debug/Exceptions.php:164 Stack trace: #0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'Cannot modify h...', '/home/allsafez/...', 164) #1 /home/allsafez/app/vendor/codeigniter4/framework/system/Debug/Exceptions.php(164): header('HTTP/2.0 500 In...', true, 500) #2 /home/allsafez/app/vendor/codeigniter4/framework/system/Debug/Exceptions.php(224): CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException)) #3 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler() #4 {main} thrown in /home/allsafez/app/vendor/codeigniter4/framework/system/Debug/Exceptions.php on line 164