2. Exception
…/­core/­Application.php222
1. Application getSite
…/­core/­Application.php51
0. Application handle
/­var/­www/­amaia/­www_front/­index.php28

Exception

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
Exception thrown with message "Debug mode is active, so you must access your site using the following domain: {siteID}.webcoffee.fr" Stacktrace: #2 Exception in /var/www/amaia/lib/core/Application.php:222 #1 Application:getSite in /var/www/amaia/lib/core/Application.php:51 #0 Application:handle in /var/www/amaia/www_front/index.php:28

Debug mode is active, so you must access your site using the following domain: {siteID}.webcoffee.fr

/var/www/amaia/lib/core/Application.php
		global $_CONFIG;
 
		// If we're in debug mode, we must access a site using its ID as a subdomain!
		if (isset($_CONFIG['debug']) && $_CONFIG['debug']) {
			if (ends_with($domain, '.' . AMAIA_DEBUG_DOMAIN)) {
				$site = new Site(str_replace('.' . AMAIA_DEBUG_DOMAIN, '', $domain));
			} else {
				throw new Exception('Debug mode is active, so you must access your site using the following domain: {siteID}.' . AMAIA_DEBUG_DOMAIN);
			}
		}
/var/www/amaia/lib/core/Application.php
	{
		Logger::sql('', 'debug');
		Logger::sql('----------] ' . $request->domain . $request->path . ' [----------', 'debug');
 
		try {
 
			// Get the site matching the request's domain
			$site = $this->getSite($request->domain);
 
			// Apply the URL rewriting rules to the request
/var/www/amaia/www_front/index.php
 */

require('../config.php');
require(AMAIA_LIB . 'functions.php');
require(AMAIA_ROOT . 'autoload.php');

$app = new Application();
$app->handle(Request::buildFromHTTP(Request::TYPE_FRONT));
empty
empty
empty
empty
empty
Key Value
USER www-data
HOME /var/www
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_HOST webcoffee.fr
SCRIPT_FILENAME /var/www/amaia/www_front/index.php
REDIRECT_STATUS 200
SERVER_NAME _
SERVER_PORT 80
SERVER_ADDR 46.105.103.228
REMOTE_PORT 38730
REMOTE_ADDR 54.146.1.178
SERVER_SOFTWARE nginx/1.10.3
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
DOCUMENT_ROOT /var/www/amaia/www_front
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1501260887.9627
REQUEST_TIME 1501260887
empty
0. Whoops\Handler\PrettyPageHandler