Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined property: WhichBrowser\Model\Browser::$name Whoops\Exception\ErrorException thrown with message "Undefined property: WhichBrowser\Model\Browser::$name" Stacktrace: #7 Whoops\Exception\ErrorException in /var/www/clients/client7/web34/web/server/core/configs/Device.php:86 #6 Whoops\Run:handleError in /var/www/clients/client7/web34/web/server/core/configs/Device.php:86 #5 Device:setBrowser in /var/www/clients/client7/web34/web/server/core/configs/Device.php:38 #4 Device:__construct in /var/www/clients/client7/web34/web/server/core/configs/Device.php:47 #3 Device:getInstance in /var/www/clients/client7/web34/web/server/Main.php:75 #2 Main:setDevice in /var/www/clients/client7/web34/web/server/Main.php:41 #1 Main:__construct in /var/www/clients/client7/web34/web/server/Main.php:53 #0 Main:getInstance in /var/www/clients/client7/web34/web/index.php:14
Stack frames (8):
7 Whoops\Exception\ErrorException
…/­core/­configs/­Device.php86
6 Whoops\Run handleError
…/­core/­configs/­Device.php86
5 Device setBrowser
…/­core/­configs/­Device.php38
4 Device __construct
…/­core/­configs/­Device.php47
3 Device getInstance
…/­Main.php75
2 Main setDevice
…/­Main.php41
1 Main __construct
…/­Main.php53
0 Main getInstance
/­var/­www/­clients/­client7/­web34/­web/­index.php14
/var/www/clients/client7/web34/web/server/core/configs/Device.php
		
		self::$IS_DESKTOP	= self::$DEVICE == 'desktop';
		self::$IS_TABLET	= self::$DEVICE == 'tablet';
		self::$IS_MOBILE	= self::$DEVICE == 'mobile';
	}
	
	
	private function setBrowser()
	{
		self::$BROWSER			= $this->whichBrowser->browser->name;
		self::$BROWSER_VERSION	= $this->whichBrowser->browser->getVersion();
		self::$BROWSER_ENGINE	= $this->whichBrowser->engine->getName();
		
		if ( $this->whichBrowser->isBrowser( 'Internet Explorer', '<', '9' ) ||
			 $this->whichBrowser->isBrowser( 'Firefox', '<', '35' ) ||
			 $this->whichBrowser->isBrowser( 'Opera', '<', '30' ) ||
			 $this->whichBrowser->isBrowser( 'Safari', '<', '6' ) ||
			 $this->whichBrowser->isBrowser( 'Chrome', '<', '30' ) )
			self::$IS_OLD_BROWSER = true;
		else
/var/www/clients/client7/web34/web/server/core/configs/Device.php
		
		self::$IS_DESKTOP	= self::$DEVICE == 'desktop';
		self::$IS_TABLET	= self::$DEVICE == 'tablet';
		self::$IS_MOBILE	= self::$DEVICE == 'mobile';
	}
	
	
	private function setBrowser()
	{
		self::$BROWSER			= $this->whichBrowser->browser->name;
		self::$BROWSER_VERSION	= $this->whichBrowser->browser->getVersion();
		self::$BROWSER_ENGINE	= $this->whichBrowser->engine->getName();
		
		if ( $this->whichBrowser->isBrowser( 'Internet Explorer', '<', '9' ) ||
			 $this->whichBrowser->isBrowser( 'Firefox', '<', '35' ) ||
			 $this->whichBrowser->isBrowser( 'Opera', '<', '30' ) ||
			 $this->whichBrowser->isBrowser( 'Safari', '<', '6' ) ||
			 $this->whichBrowser->isBrowser( 'Chrome', '<', '30' ) )
			self::$IS_OLD_BROWSER = true;
		else
/var/www/clients/client7/web34/web/server/core/configs/Device.php
	private $params				= null;
	
	
	protected function __construct()
	{
		$this->whichBrowser = new WhichBrowser\Parser( getallheaders(), [ 'detectBots' => false ] );
		
		$this->getConfig();
		$this->setDevice();
		$this->setBrowser();
		$this->setTargetedVersion();
		$this->setParams();
	}
	
	
	public static function getInstance()
	{
		if ( !isset( self::$instance ) )
			self::$instance = new self;
		
/var/www/clients/client7/web34/web/server/core/configs/Device.php
		$this->setBrowser();
		$this->setTargetedVersion();
		$this->setParams();
	}
	
	
	public static function getInstance()
	{
		if ( !isset( self::$instance ) )
			self::$instance = new self;
		
		return self::$instance;
	}
	
	
	private function getConfig()
	{
		self::$HAS_MOBILE_VERSION	= Config::$HAS_MOBILE_VERSION;
		self::$TABLET_VERSION		= Config::$TABLET_VERSION;
		self::$FORCE_DEVICE			= Config::$FORCE_DEVICE;
/var/www/clients/client7/web34/web/server/Main.php
	
	private function setConfig()
	{
		$this->config = Config::getInstance();
	}
	
	
	private function setDevice()
	{
		$this->device = Device::getInstance();
	}
	
	
	private function setPath()
	{
		$this->path = Path::getInstance();
	}
	
	
	private function setLang()
/var/www/clients/client7/web34/web/server/Main.php
	private $lang				= null;
	private $router				= null;
	private $pagesController	= null;
	
	
	protected function __construct()
	{
		$this->setWhoops();
		$this->setConfig();
		$this->setDevice();
		$this->setPath();
		$this->setLang();
		$this->initConfig();
		$this->setRoutes();
		$this->setPagesController();
	}
	
	
	public static function getInstance()
	{
/var/www/clients/client7/web34/web/server/Main.php
		$this->initConfig();
		$this->setRoutes();
		$this->setPagesController();
	}
	
	
	public static function getInstance()
	{
		if ( !isset( self::$instance ) )
			self::$instance = new self;
		
		return self::$instance;
	}
	
	
	private function setWhoops()
	{
		$whoops = new \Whoops\Run;
		$whoops->pushHandler( new \Whoops\Handler\PrettyPageHandler );
		$whoops->register();
/var/www/clients/client7/web34/web/index.php
 
if (strpos($url,'.com') !== false) {
	echo 'Car exists.';
	$url = str_replace(".com", ".fr", $url);
header('Location: ' . $url);
}
 
include_once 'server/Main.php';
 
$main = Main::getInstance();
$main->displayView();
 
 
 
?>
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
PHP_DOCUMENT_ROOT /var/www/clients/client7/web34
PHPRC /etc/php/5.6/cgi/
PWD /var/www/php-fcgi-scripts/web34
TMP /var/www/clients/client7/web34/tmp
PHP_FCGI_MAX_REQUESTS 5000
TMPDIR /var/www/clients/client7/web34/tmp
SHLVL 0
TEMP /var/www/clients/client7/web34/tmp
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CONTENT_LENGTH 0
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/2.0
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 59648
SCRIPT_FILENAME /var/www/monjobadusens.fr/web/index.php
SERVER_ADMIN webmaster@monjobadusens.fr
CONTEXT_DOCUMENT_ROOT /var/www/monjobadusens.fr/web
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/monjobadusens.fr/web
REMOTE_ADDR 44.197.251.102
SERVER_PORT 443
SERVER_ADDR 145.239.140.46
SERVER_NAME monjobadusens.fr
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_HOST monjobadusens.fr
HTTP_REFERER https://www.groupe-atf.com/recrutement
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
SSL_TLS_SNI monjobadusens.fr
HTTPS on
H2_STREAM_TAG 651-1
H2_STREAM_ID 1
H2_PUSHED_ON
H2_PUSHED
H2_PUSH off
H2PUSH off
HTTP2 on
MAGIC_QUOTES 0
SCRIPT_URI https://monjobadusens.fr/
SCRIPT_URL /
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710838511.2142
REQUEST_TIME 1710838511
empty
0. Whoops\Handler\PrettyPageHandler