Whoops \ Exception \ ErrorException (E_WARNING)
Header may not contain more than a single header, new line detected Whoops\Exception\ErrorException thrown with message "Header may not contain more than a single header, new line detected" Stacktrace: #5 Whoops\Exception\ErrorException in /home/twimmo/webprod-frontend/App/Lib/Twimmo/Serveur/Reponse.php:193 #4 header in /home/twimmo/webprod-frontend/App/Lib/Twimmo/Serveur/Reponse.php:193 #3 Twimmo\Serveur\Reponse:sendEntetes in /home/twimmo/webprod-frontend/App/Lib/Twimmo/Serveur/Reponse.php:199 #2 Twimmo\Serveur\Reponse:send in /home/twimmo/webprod-frontend/App/Application/Model/URL.php:111 #1 Model\URL:getRedirection in /home/twimmo/webprod-frontend/App/Application/Controller/Init.php:53 #0 Controller\Init:__construct in /home/twimmo/webprod-frontend/App/www/index.php:91
Stack frames (6)
5
Whoops\Exception\ErrorException
/twimmo/webprod-frontend/App/Lib/Twimmo/Serveur/Reponse.php193
4
header
/twimmo/webprod-frontend/App/Lib/Twimmo/Serveur/Reponse.php193
3
Twimmo\Serveur\Reponse sendEntetes
/twimmo/webprod-frontend/App/Lib/Twimmo/Serveur/Reponse.php199
2
Twimmo\Serveur\Reponse send
/twimmo/webprod-frontend/App/Application/Model/URL.php111
1
Model\URL getRedirection
/twimmo/webprod-frontend/App/Application/Controller/Init.php53
0
Controller\Init __construct
/twimmo/webprod-frontend/App/www/index.php91
/home/twimmo/webprod-frontend/App/Lib/Twimmo/Serveur/Reponse.php
    }
    
    public function getStatut(){
        return $this->statut;
    }
    
   public function getStatutTexte(){
        return $this->statut_texte;
    }
    
    // Au navigateur
    public function sendContenu(){                
        echo $this->contenu;
        return $this;
    }

    public function sendEntetes(){      
       header(sprintf('HTTP/%s %s %s', $this->getVersion(), $this->getStatut(), $this->getStatutTexte()));
       foreach ($this->entetes as $key => $value){
            header($key.': '.$value, false);          
       }
       return $this;
    }
    
    public function send(){
        $this->sendEntetes();
        $this->sendContenu();
        return true;       
    }
    
    
    // --------------- 
    public function __toString() {
        
        $entetes = "";
        foreach ($this->entetes as $key => $entete) {
              $entetes .= sprintf("%s %s\r\n", $key.':', $entete);            
        }     
        return
                sprintf('HTTP/%s %s %s', $this->version, $this->statut, $this->statut_texte) . "\r\n" .
/home/twimmo/webprod-frontend/App/Lib/Twimmo/Serveur/Reponse.php
    }
    
    public function getStatut(){
        return $this->statut;
    }
    
   public function getStatutTexte(){
        return $this->statut_texte;
    }
    
    // Au navigateur
    public function sendContenu(){                
        echo $this->contenu;
        return $this;
    }

    public function sendEntetes(){      
       header(sprintf('HTTP/%s %s %s', $this->getVersion(), $this->getStatut(), $this->getStatutTexte()));
       foreach ($this->entetes as $key => $value){
            header($key.': '.$value, false);          
       }
       return $this;
    }
    
    public function send(){
        $this->sendEntetes();
        $this->sendContenu();
        return true;       
    }
    
    
    // --------------- 
    public function __toString() {
        
        $entetes = "";
        foreach ($this->entetes as $key => $entete) {
              $entetes .= sprintf("%s %s\r\n", $key.':', $entete);            
        }     
        return
                sprintf('HTTP/%s %s %s', $this->version, $this->statut, $this->statut_texte) . "\r\n" .
/home/twimmo/webprod-frontend/App/Lib/Twimmo/Serveur/Reponse.php
   public function getStatutTexte(){
        return $this->statut_texte;
    }
    
    // Au navigateur
    public function sendContenu(){                
        echo $this->contenu;
        return $this;
    }

    public function sendEntetes(){      
       header(sprintf('HTTP/%s %s %s', $this->getVersion(), $this->getStatut(), $this->getStatutTexte()));
       foreach ($this->entetes as $key => $value){
            header($key.': '.$value, false);          
       }
       return $this;
    }
    
    public function send(){
        $this->sendEntetes();
        $this->sendContenu();
        return true;       
    }
    
    
    // --------------- 
    public function __toString() {
        
        $entetes = "";
        foreach ($this->entetes as $key => $entete) {
              $entetes .= sprintf("%s %s\r\n", $key.':', $entete);            
        }     
        return
                sprintf('HTTP/%s %s %s', $this->version, $this->statut, $this->statut_texte) . "\r\n" .
                $entetes . "\r\n" .
                $this->getContenu();
    }
    
    
}
/home/twimmo/webprod-frontend/App/Application/Model/URL.php
        $uri = $this->getPath();
       
        if($this->_lang){
            $uri = "/".$this->_lang.$uri;
        }
        
        $getParams = implode('&', array_map(function($v, $k){
            return $k . '=' . implode(',', (array)$v);
        }, $this->getParam(), array_keys($this->getParam())));
        
        if(is_array($tableauredirection) and count($tableauredirection) > 0 ){
            foreach ($tableauredirection as $key => $value) {
                $key = urldecode($key);
                $uri = urldecode($uri);
                $uriGet = urldecode($uri . '?' . $getParams);                
                
                if($key == $uri || $key == $uriGet){
                    $reponse  = new Reponse();
                    $reponse->redirection($value);
                    $reponse->send();                
                    exit;
                }
                
            }
            //exit;
        }      
        
    }
    
 
    public function getParamRouting($tableaurouting, $uri = FALSE){
         
        if(!$uri){
            $uri = $this->getPath();
        }
        
        $router = new Router();
        $router->setUri($uri)
               ->setLang($this->getLang())
               ->setURLRewriting($tableaurouting);
/home/twimmo/webprod-frontend/App/Application/Controller/Init.php
    private $_cache     = false;
    
    private $_systemeDico = false;
    
    public function __construct(TwCache $cache){
                         
        $this->_cache = $cache;        
        $this->_url = new URL();
        
        $config = new ConfigurationApplication("WebFrontend");
        $config->setFichier(_APPLICATION_.'/Config/application_'.APPLICATION_ENV.'.ini')
               ->init($cache);
         
        //CONFIG SITE LOCAL
        $this->configSite  = new ConfigurationEspace($config, $cache);
        $this->configSite->setURL($this->_url)
                         ->init();
        
        //REDIRECTIONS 
        $this->_url->getRedirection($this->configSite->getRedirections());
        
        //ECHANGEUR       
        $this->_echangeur = $this->configSite->getEchangeur();        
       
        //DICO
        $this->_systemeDico = new Gettext(
                                $this->_cache,
                                $this->configSite->getKey().'$'.$this->configSite->getLang()
                            );        
        $this->_systemeDico->setFichier(
                                $this->configSite->getPathMoLang($this->_echangeur)
                            );
        
        $this->_url->setDico($this->_systemeDico);
        
        //ROUTING
        $isRouting = $this->_url->getParamRouting($this->configSite->getRouting());
        if($isRouting){
            $this->_typePage = $this->_url->getTypePage();
        }        
/home/twimmo/webprod-frontend/App/www/index.php
        $whoops = new Run();
        $whoops->pushHandler(new PrettyPageHandler());
        $whoops->register();    
    }
    
    //Syst??me de cache
    $config = array(
        "serveur" => array(
            array("127.0.0.1",11211,1),
        )
    );    
    $cache = new Twimmo\TwCache($config);  
    
    //Lancement de l'application
    if(isset($_GET["command"])){
        $methode = "get".ucfirst($_GET["command"]);
        Init::$methode();
        exit;
    }
    $controller = new Init($cache);
    $controller->go();
    
    $fin = microtime(true);
      
?>
 

Environment & details:

Key Value
/vente_maison_de_village_resultat_html
empty
empty
empty
empty
Key Value
USER www-data
HOME /var/www
HTTP_X_VARNISH 468421282
HTTP_ACCEPT_ENCODING gzip
HTTP_X_FORWARDED_FOR 192.168.10.97, 192.168.10.97
HTTP_X_UA_DEVICE bot
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_X_SSL Yes
HTTP_X_WEBPROD Yes
HTTP_X_REAL_IP 34.229.223.223
HTTP_HOST www.immocab.com
APPLICATION_ENV prod
SERVER_NAME www.twimmo.com
SERVER_PORT 80
SERVER_ADDR 192.168.10.66
REMOTE_PORT 56612
REMOTE_ADDR 192.168.10.92
SERVER_SOFTWARE nginx
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /home/twimmo/webprod-frontend/App/www
DOCUMENT_URI /index.php
REQUEST_URI /vente_maison%20de%20village_resultat.html
SCRIPT_FILENAME /home/twimmo/webprod-frontend/App/www/index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING /vente_maison%20de%20village_resultat.html
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710814727,4642
REQUEST_TIME 1710814727
empty
0. Whoops\Handler\PrettyPageHandler