grav/user/plugins/gantry5/src/classes/Gantry/Component/Router/Router.php throw $e; } catch (\Exception $e) { // Handle errors. if ($this->container->debug()) { throw $e; } $response = $this->getErrorResponse($e, $this->format == 'json'); } return $this->send($response); } public function execute($resource, $method = 'GET', $path, $params = [], $format = 'html') { $class = '\\Gantry\\Admin\\Controller\\' . ucfirst($format) . '\\' . strtr(ucwords(strtr($resource, '/', ' ')), ' ', '\\'); // Protect against CSRF Attacks. if (!in_array($method, ['GET', 'HEAD'], true) && !$this->checkSecurityToken()) { throw new \RuntimeException('Invalid security token; please reload the page and try again.', 403); } if (!class_exists($class)) { if ($format == 'json') { // Special case: All HTML requests can be returned also as JSON. $response = $this->execute($resource, $method, $path, $params, 'html'); return $response instanceof JsonResponse ? $response : new JsonResponse($response); } throw new \RuntimeException('Page Not Found', 404); } /** @var BaseController $controller */ $controller = new $class($this->container); // Execute action. $response = $controller->execute($method, $path, $params); if (!$response instanceof Response) { $response = new HtmlResponse($response); Arguments Environment & details: GET Data _url "/admin/gantry/configurations/default/styles.json" POST Data styles array:13 [ "preset" => "preset3" "base" => array:4 [ "background" => "#ffffff" "text-color" => "#666666" "body-font" => "roboto, sans-serif" "heading-font" => "roboto, sans-serif" ] "accent" => array:2 [ "color-1" => "#558b2f" "color-2" => "#8bc34a" ] "header" => array:2 [ "background" => "#3c7216" "text-color" => "#ffffff" ] "navigation" => array:3 [ "background" => "#558b2f" "text-color" => "#ffffff" "overlay" => "rgba(0, 0, 0, 0.4)" ] "showcase" => array:3 [ "background" => "#344e2c" "image" => "" "text-color" => "#ffffff" ] "feature" => array:2 [ "background" => "#ffffff" "text-color" => "#666666" ] "subfeature" => array:2 [ "background" => "#f0f0f0" "text-color" => "#666666" ] "main" => array:2 [ "background" => "#ffffff" "text-color" => "#666666" ] "footer" => array:2 [ "background" => "#ffffff" "text-color" => "#666666" ] "offcanvas" => array:5 [ "background" => "#344e2c" "text-color" => "#ffffff" "width" => "17rem" "toggle-color" => "#ffffff" "toggle-visibility" => "1" ] "breakpoints" => array:5 [ "large-desktop-container" => "75rem" "desktop-container" => "60rem" "tablet-container" => "48rem" "large-mobile-container" => "30rem" "mobile-menu-breakpoint" => "48rem" ] "menu" => array:2 [ "col-width" => "180px" "animation" => "g-fade" ] ] Files empty Cookies g5-collapsed "{"swatches":false}" _pk_id_15_71bf "3fd3794b13d8f4a2.1477677731.5.1484078960.1484078960." _pk_id_19_71bf "37de8e1230b91147.1484253283.1.1484253283.1484253283." _pk_ses_19_71bf "*" 21efba6 "0j18416pe2btl19n2kcfnbh4u4" 21efba6-admin "0vdm6gj2p7dksbcrh39c9401d1" Session user User {} expert false redirect_after_login "/admin/notifications/task:processNotifications" messages Message {} Server/Request Data TEMP "/tmp" TMPDIR "/tmp" TMP "/tmp" PATH "/usr/local/bin:/usr/bin:/bin" HOSTNAME "" USER "www-data" HOME "/var/www" HTTP_COOKIE "g5-collapsed={"swatches":false}; _pk_id.15.71bf=3fd3794b13d8f4a2.1477677731.5.1484078960.1484078960.; _pk_id.19.71bf=37de8e1230b91147.1484253283.1.1484253283.1484253283.; _pk_ses.19.71bf=*; coderz-21efba6=0j18416pe2btl19n2kcfnbh4u4; coderz-21efba6-admin=0vdm6gj2p7dksbcrh39c9401d1" HTTP_ACCEPT_LANGUAGE "en-GB,en-US;q=0.8,en;q=0.6" HTTP_ACCEPT_ENCODING "gzip, deflate" HTTP_REFERER "/admin/gantry/configurations/default/styles?nonce=8a2545192bc35cfbd82efaa246a66d9c" HTTP_DNT "1" HTTP_ACCEPT "*/*" HTTP_CONTENT_TYPE "application/x-www-form-urlencoded" HTTP_USER_AGENT "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36" HTTP_CONTENT_LENGTH "1370" HTTP_CONNECTION "keep-alive" HTTP_HOST "coderz.ca" REDIRECT_STATUS "200" PATH_INFO "/index.php" SCRIPT_FILENAME "/var/www/grav/index.php" SERVER_PORT "80" SERVER_ADDR "10.0.0.2" REMOTE_PORT "52568" SERVER_SOFTWARE "nginx/1.11.7" GATEWAY_INTERFACE "CGI/1.1" REQUEST_SCHEME "http" SERVER_PROTOCOL "HTTP/1.1" DOCUMENT_ROOT "/var/www/grav" DOCUMENT_URI "/index.php" REQUEST_URI "/admin/gantry/configurations/default/styles.json?nonce=8a2545192bc35cfbd82efaa246a66d9c" SCRIPT_NAME "/index.php" CONTENT_LENGTH "1370" CONTENT_TYPE "application/x-www-form-urlencoded" REQUEST_METHOD "POST" QUERY_STRING "_url=/admin/gantry/configurations/default/styles.json" FCGI_ROLE "RESPONDER" PHP_SELF "/index.php/index.php" REQUEST_TIME_FLOAT 1484253309.4648 REQUEST_TIME 1484253309 Environment Variables empty Registered Handlers 0. Whoops\Handler\PrettyPageHandler 1. Whoops\Handler\CallbackHandler RuntimeException (403) Invalid security token; please reload the page and try again. 14 RuntimeException …/user/plugins/gantry5/src/classes/Gantry/Component/Router/Router.php77 13 Gantry\Component\Router\Router execute …/user/plugins/gantry5/src/classes/Gantry/Component/Router/Router.php55 12 Gantry\Component\Router\Router dispatch …/user/plugins/gantry5/gantry5.php257 11 Grav\Plugin\Gantry5Plugin onAdminPagesInitialized …/vendor/symfony/event-dispatcher/EventDispatcher.php184 10 call_user_func …/vendor/symfony/event-dispatcher/EventDispatcher.php184 9 Symfony\Component\EventDispatcher\EventDispatcher doDispatch …/vendor/symfony/event-dispatcher/EventDispatcher.php46 8 Symfony\Component\EventDispatcher\EventDispatcher dispatch …/vendor/rockettheme/toolbox/Event/src/EventDispatcher.php23 7 RocketTheme\Toolbox\Event\EventDispatcher dispatch …/system/src/Grav/Common/Grav.php273 6 Grav\Common\Grav fireEvent …/system/src/Grav/Common/Processors/PagesProcessor.php25 5 Grav\Common\Processors\PagesProcessor process …/system/src/Grav/Common/Grav.php122 4 Grav\Common\Grav Grav\Common\{closure} …/system/src/Grav/Common/Grav.php359 3 Grav\Common\Grav Grav\Common\{closure} …/system/src/Grav/Common/Grav.php335 2 call_user_func_array …/system/src/Grav/Common/Grav.php335 1 Grav\Common\Grav __call …/system/src/Grav/Common/Grav.php123 0 Grav\Common\Grav process …/index.php51