[User Warning] Already directed to http://www2.silverfernfarms.com/us/?r=1; now trying to direct to https://www.silverfernfarms.co.nz/

GET /?l=en_US

Line 638 in /container/application/public/vendor/silverstripe/framework/src/Control/Controller.php

Source

629      *
630      * @param string $url
631      * @param int $code
632      * @return HTTPResponse
633      */
634     public function redirect($url, $code = 302)
635     {
636         if ($this->getResponse()->getHeader('Location') && $this->getResponse()->getHeader('Location') != $url) {
637             user_error("Already directed to " . $this->getResponse()->getHeader('Location')
638                 . "; now trying to direct to $url", E_USER_WARNING);
639             return null;
640         }
641         $response = parent::redirect($url, $code);
642         $this->setResponse($response);
643         return $response;
644     }

Trace

ERROR [User Warning]: Couldn't set response type to 500 because of output on line 419 of /container/application/public/vendor/silverstripe/framework/src/Control/HTTPResponse.php IN GET /?l=en_US Line 397 in /container/application/public/vendor/silverstripe/framework/src/Control/HTTPResponse.php Source ====== 388: } elseif ($this->getStatusCode() >= 300) { 389: // It's critical that these status codes are sent; we need to report a failure if not. 390: user_error( 391: sprintf( 392: "Couldn't set response type to %d because of output on line %s of %s", 393: $this->getStatusCode(), 394: $line, 395: $file 396: ), * 397: E_USER_WARNING 398: ); 399: } 400: } 401: 402: /** 403: * Output body of this response to the browser Trace ===== user_error(Couldn't set response type to 500 because of output on line 419 of /container/application/public/vendor/silverstripe/framework/src/Control/HTTPResponse.php, 512) HTTPResponse.php:397 SilverStripe\Control\HTTPResponse->outputHeaders() HTTPResponse.php:343 SilverStripe\Control\HTTPResponse->output() index.php:27 GET /?l=en_US

[User Warning] Already directed to http://www2.silverfernfarms.com/us/?r=1; now trying to direct to https://www.silverfernfarms.co.nz/

GET /?l=en_US

Line 638 in /container/application/public/vendor/silverstripe/framework/src/Control/Controller.php

Source

629      *
630      * @param string $url
631      * @param int $code
632      * @return HTTPResponse
633      */
634     public function redirect($url, $code = 302)
635     {
636         if ($this->getResponse()->getHeader('Location') && $this->getResponse()->getHeader('Location') != $url) {
637             user_error("Already directed to " . $this->getResponse()->getHeader('Location')
638                 . "; now trying to direct to $url", E_USER_WARNING);
639             return null;
640         }
641         $response = parent::redirect($url, $code);
642         $this->setResponse($response);
643         return $response;
644     }

Trace