Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /includes/functions.php on line 191
Whoops! There was an error.
4. Whoops\Exception\ErrorException
…includes…class.system.php226
3. Whoops\Run handleError
<#unknown>0
2. session_set_cookie_params
…includes…class.system.php226
1. system sessionStart
…includes…class.system.php139
0. system start
…index.php30

Whoops \ Exception \ ErrorException

session_set_cookie_params(): Cannot change session cookie parameters when headers already sent

/includes/class.system.php
		$this->sql = new Sql(getConfig('db'));
	}

    public function sessionStart()
    {
        if(!isset($_SESSION)) {
            $config = getConfig('session');
            session_set_cookie_params($config['lifetime'], $config['path'], $config['domain'], $config['secure'], $config['httponly']);
            session_name($config['name']);
            session_start();
<#unknown>
/includes/class.system.php
		$this->sql = new Sql(getConfig('db'));
	}

    public function sessionStart()
    {
        if(!isset($_SESSION)) {
            $config = getConfig('session');
            session_set_cookie_params($config['lifetime'], $config['path'], $config['domain'], $config['secure'], $config['httponly']);
            session_name($config['name']);
            session_start();
/includes/class.system.php
				$this->tpl = new Template('tpl/layout/print.php');
			}
			else {
				$this->tpl = new Template('tpl/index.php');
			}
		}
		$this->dbStart();
        $this->sessionStart();
		if(isset($_GET['preview'])) $this->set('preview',true);
	}
/index.php
    $request = Request::createFromGlobals();
    $system->set('request', $request);

    // Wyłączenie tłumaczeń
    if ($request->query->get('translations') == 'no') {
        $system->set('disable_translations', 1);
    }
	$system->start();

	$pages = $system->loadModule('pages');
Key Value
CURL_HOME /
DOCUMENT_ROOT /
GATEWAY_INTERFACE CGI/1.1
GATEWAY_ULTRACGI 01452ed570e8698f7de185a3bd287d4b
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST juliakolodziej.pl
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
PATH /usr/local/pssql55/bin:/usr/local/pgsql9/bin:/bin:/usr/bin:/usr/local/bin
QUERY_STRING
REMOTE_ADDR 3.84.243.246
REMOTE_HOST ec2-3-84-243-246.compute-1.amazonaws.com
REMOTE_PORT 45084
REQUEST_METHOD GET
REQUEST_URI /
SCRIPT_FILENAME /index.php
SCRIPT_NAME /index.php
SCRIPT_URI http://juliakolodziej.pl/
SCRIPT_URL /
SERVER_ADDR 212.85.123.55
SERVER_ADMIN agromix@agromix.home.pl
SERVER_ID agromix
SERVER_NAME juliakolodziej.pl
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE IdeaWebServer/0.83.183 (like Apache)
TMP /tmp
TMPDIR /tmp
TZ :/etc/localtime
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1550371454,8894
REQUEST_TIME 1550371454
argv Array ( )
argc 0
empty
empty
empty
empty
empty
Key Value
CURL_HOME /
DOCUMENT_ROOT /
GATEWAY_INTERFACE CGI/1.1
GATEWAY_ULTRACGI 01452ed570e8698f7de185a3bd287d4b
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST juliakolodziej.pl
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
PATH /usr/local/pssql55/bin:/usr/local/pgsql9/bin:/bin:/usr/bin:/usr/local/bin
QUERY_STRING
REMOTE_ADDR 3.84.243.246
REMOTE_HOST ec2-3-84-243-246.compute-1.amazonaws.com
REMOTE_PORT 45084
REQUEST_METHOD GET
REQUEST_URI /
SCRIPT_FILENAME /index.php
SCRIPT_NAME /index.php
SCRIPT_URI http://juliakolodziej.pl/
SCRIPT_URL /
SERVER_ADDR 212.85.123.55
SERVER_ADMIN agromix@agromix.home.pl
SERVER_ID agromix
SERVER_NAME juliakolodziej.pl
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE IdeaWebServer/0.83.183 (like Apache)
TMP /tmp
TMPDIR /tmp
TZ :/etc/localtime
0. Whoops\Handler\PrettyPageHandler