Warning: The magic method __get() must have public visibility and cannot be static in /floki.cmachowski.com/Agee/Agee.php on line 60
Whoops! There was an error.
Exception
Route not found! Exception thrown with message "Route not found!" Stacktrace: #1 Exception in /floki.cmachowski.com/Agee/Agee.php:25 #0 Agee\Agee:init in /floki.cmachowski.com/index.php:12
Stack frames (2)
1
Exception
/
Agee
/
Agee.php
25
0
Agee
\
Agee
init
/
index.php
12
/
floki.cmachowski.com
/
Agee
/
Agee.php
use Phroute\Phroute\Exception\HttpRouteNotFoundException;
 
class Agee
{
    private static $dispatcher;
    private static $appName;
    private static $services = [];
 
    public static function init()
    {
        self::debug();
 
        try {
            self::$dispatcher = new Dispatcher();
            $response = self::$dispatcher->dispatch($_SERVER['REQUEST_METHOD'],
                parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
        } catch (BindingResolutionException $e) {
            throw new \Exception("Could not connect to database!");
        } catch (HttpRouteNotFoundException $e) {
            throw new \Exception("Route not found!");
        }
 
        if (View::getMainTemplate() !== false) {
            echo View::template(View::getMainTemplate(), array('content' => $response));
        } else {
            echo $response;
        }
    }
 
    public static function debug()
    {
        global $ageeConfig;
        global $whoops;
 
        if ($ageeConfig['mode'] == 'deep_debug') {
            $whoops = new \Whoops\Run();
            $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler());
            $whoops->register();
        } elseif ($ageeConfig['mode'] == 'release') {
            ini_set('display_error', false);
/
floki.cmachowski.com
/
index.php
<?php
error_reporting(E_ALL);
 
require 'vendor/autoload.php';
require 'Config/config.php';
require 'Config/database.php';
require 'account/instagram.php';
 
session_start();
date_default_timezone_set($ageeConfig['timezone']);
 
Agee\Agee::init();

Environment & details:

empty
empty
empty
empty
empty
Key Value
CURL_HOME /
DOCUMENT_ROOT /
GATEWAY_INTERFACE CGI/1.1
GATEWAY_ULTRACGI 01b99e66ebf0d3cbfab616b977d70eb3
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST www.wpjames.com
HTTP_IF_MODIFIED_SINCE Mon, 28 May 2018 08:02:35 GMT
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 54.198.41.76
REMOTE_HOST 54.198.41.76
REMOTE_PORT 53766
REQUEST_METHOD GET
REQUEST_URI /floki.cmachowski.com/
SCRIPT_FILENAME /floki.cmachowski.com/index.php
SCRIPT_NAME /floki.cmachowski.com/index.php
SCRIPT_URI http://www.wpjames.com/floki.cmachowski.com/
SCRIPT_URL /floki.cmachowski.com/
SERVER_ADDR 188.128.237.198
SERVER_ADMIN wordpress1791372@wordpress1791372.home.pl
SERVER_ID wordpress1791372
SERVER_NAME www.wpjames.com
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE IdeaWebServer/0.83 (like Apache)
TMP /tmp
TMPDIR /tmp
TZ :/etc/localtime
PHP_SELF /floki.cmachowski.com/index.php
REQUEST_TIME_FLOAT 1534537990.1792
REQUEST_TIME 1534537990
argv Array ( )
argc 0
Key Value
CURL_HOME /
DOCUMENT_ROOT /
GATEWAY_INTERFACE CGI/1.1
GATEWAY_ULTRACGI 01b99e66ebf0d3cbfab616b977d70eb3
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST www.wpjames.com
HTTP_IF_MODIFIED_SINCE Mon, 28 May 2018 08:02:35 GMT
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 54.198.41.76
REMOTE_HOST 54.198.41.76
REMOTE_PORT 53766
REQUEST_METHOD GET
REQUEST_URI /floki.cmachowski.com/
SCRIPT_FILENAME /floki.cmachowski.com/index.php
SCRIPT_NAME /floki.cmachowski.com/index.php
SCRIPT_URI http://www.wpjames.com/floki.cmachowski.com/
SCRIPT_URL /floki.cmachowski.com/
SERVER_ADDR 188.128.237.198
SERVER_ADMIN wordpress1791372@wordpress1791372.home.pl
SERVER_ID wordpress1791372
SERVER_NAME www.wpjames.com
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE IdeaWebServer/0.83 (like Apache)
TMP /tmp
TMPDIR /tmp
TZ :/etc/localtime
0. Whoops\Handler\PrettyPageHandler