2. Exception
…/­core/­Application.php228
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}.amaia.at" Stacktrace: #2 Exception in /var/www/amaia/lib/core/Application.php:228 #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}.amaia.at

/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
FCGI_ROLE RESPONDER
QUERY_STRING
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /
DOCUMENT_URI /index.php
DOCUMENT_ROOT /var/www/amaia/www_front
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.2.8
REMOTE_ADDR 54.159.51.118
REMOTE_PORT 53918
SERVER_ADDR 37.187.3.47
SERVER_PORT 80
SERVER_NAME _
REDIRECT_STATUS 200
SCRIPT_FILENAME /var/www/amaia/www_front/index.php
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_HOST www.creation-site-internet-angers.fr
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT_ENCODING gzip
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1544544854.3315
REQUEST_TIME 1544544854
empty
0. Whoops\Handler\PrettyPageHandler