Undefined index: HTTP_REFERER
#0 /var/www/vhosts/originalfound.com/httpdocs/module/traductor/main.php(23): exception_error_handler()
#1 /var/www/vhosts/originalfound.com/httpdocs/lib/framework/class_root.php(324): module_traductor->after()
#2 /var/www/vhosts/originalfound.com/httpdocs/public/index.php(47): _root->run()
#3 {main}

Detail:
#0 /var/www/vhosts/originalfound.com/httpdocs/module/traductor/main.php (23)
exception_error_handler( )
#1 /var/www/vhosts/originalfound.com/httpdocs/lib/framework/class_root.php (324)
module_traductor -> after( )
#2 /var/www/vhosts/originalfound.com/httpdocs/public/index.php (47)
_root -> run( )
#3 {main}

Fichier : /var/www/vhosts/originalfound.com/httpdocs/module/traductor/main.php ligne 23

Message : Undefined index: HTTP_REFERER

5    public function _traduct(){
6
7        _root::startSession();
8        if( _root::getParam('lang') ){
9           $_SESSION['lang']=_root::getParam('lang');
10        }
11        if(!isset($_SESSION['lang'])){
12           $_SESSION['lang']=_root::getConfigVar('language.default');
13        }
14        
15        plugin_i18n::load($_SESSION['lang']);
16
17
18    }
19    public function after(){
20
21        $oRouting = new    plugin_routing();
22
23        header('Location:'.$_SERVER['HTTP_REFERER']);
24
25        exit();
26    }
27}

Navigation

Module:traductor Action:traduct

$_GET

Array
(
)

$_POST

Array
(
)

$_SESSION

Array
(
[lang] => fr
)

$_SERVER

Array
(
[USER] => ofound
[HOME] => /var/www/vhosts/originalfound.com
[SCRIPT_NAME] => /index.php
[REQUEST_URI] => /builder/lang/switch=fr
[QUERY_STRING] =>
[REQUEST_METHOD] => GET
[SERVER_PROTOCOL] => HTTP/1.0
[GATEWAY_INTERFACE] => CGI/1.1
[REDIRECT_URL] => /builder/lang/switch=fr
[REMOTE_PORT] => 42018
[SCRIPT_FILENAME] => /var/www/vhosts/originalfound.com/httpdocs/public/index.php
[SERVER_ADMIN] => [no address given]
[CONTEXT_DOCUMENT_ROOT] => /var/www/vhosts/originalfound.com/httpdocs/public
[CONTEXT_PREFIX] =>
[REQUEST_SCHEME] => https
[DOCUMENT_ROOT] => /var/www/vhosts/originalfound.com/httpdocs/public
[REMOTE_ADDR] => 34.232.51.240
[SERVER_PORT] => 443
[SERVER_ADDR] => 163.172.44.25
[SERVER_NAME] => originalfound.com
[SERVER_SOFTWARE] => Apache
[SERVER_SIGNATURE] =>
Apache Server at originalfound.com Port 443


[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[HTTP_ACCEPT_ENCODING] => br,gzip
[HTTP_IF_MODIFIED_SINCE] => Wed, 15 Jul 2020 04:27:12 GMT
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
[HTTP_CONNECTION] => close
[HTTP_X_ACCEL_INTERNAL] => /internal-nginx-static-location
[HTTP_X_REAL_IP] => 34.232.51.240
[HTTP_HOST] => originalfound.com
[proxy-nokeepalive] => 1
[HTTPS] => on
[PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY] => 0
[PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY] => 0
[SCRIPT_URI] => https://originalfound.com/builder/lang/switch=fr
[SCRIPT_URL] => /builder/lang/switch=fr
[UNIQUE_ID] => X5OX72DH1AKyNpTOoRIl-QAAAJc
[REDIRECT_STATUS] => 200
[REDIRECT_HTTPS] => on
[REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY] => 0
[REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY] => 0
[REDIRECT_SCRIPT_URI] => https://originalfound.com/builder/lang/switch=fr
[REDIRECT_SCRIPT_URL] => /builder/lang/switch=fr
[REDIRECT_UNIQUE_ID] => X5OX72DH1AKyNpTOoRIl-QAAAJc
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /index.php
[REQUEST_TIME_FLOAT] => 1603508207.1648
[REQUEST_TIME] => 1603508207
)