Spitfire //Error page

404: Page not found

Page not found

Further error information To hide this set debug_mode to false.

The stacktrace displays the function calls made that led to the error. They are displayed in an inverted order to how they were called.

Stack trace for "Page not found"

spitfire\core\app\ControllerLocator->getController ( )
  1. * @throws PublicException
  2. */
  3. public function getController($controller, Context$intent) {
  4. #Get the controllers class name. If it doesn't exist it'll be false
  5. $c = $this->hasController($controller);
  6. #If no controller was found, we can throw an exception letting the user know
  7. if ($c === false) { throw new PublicException("Page not found", 404, new PrivateException("Controller {$controller[0]} not found", 0) ); }
  8. #Otherwise we will instantiate the class and return it
  9. return new $c($intent);
spitfire\core\Context::create ( )
  1. $context->cache = MemcachedAdapter::getInstance();
  2. $context->request = Request::get();
  3. $context->parameters = $context->request->getPath()->getParameters();
  4. $context->response = new Response($context);
  5. $context->middleware = new MiddlewareStack($context);
  6. $context->app = spitfire()->getApp($context->request->getPath()->getApp());
  7. $context->controller = $context->app->getControllerLocator()->getController($context->request->getPath()->getController(), $context);
  8. $context->action = $context->request->getPath()->getAction();
  9. $context->object = $context->request->getPath()->getObject();
spitfire\core\Request->makeContext ( )
  1. * Automatically creates a context from the available data. This allows Spitfire
  2. * to create a single interface that your app can use to access all it's
  3. * components in a convenient way.
  4. *
  5. * @return type
  6. */
  7. public function makeContext() {
  8. $this->context = Context::create();
  9. return $this->context;
  10. }
spitfire\SpitFire->fire ( )
  1. #If the request has no defined controller, action and object it will define
  2. #those now.
  3. $path = $request->getPath();
  4. #Receive the initial context for the app. The controller can replace this later
  5. /*@var $initContext Context*/
  6. $initContext = ($path instanceof Context)? $path : $request->makeContext();
  7. #Define the context, include the application's middleware configuration.
  8. current_context($initContext);
/var/www/portfolio.commishes.com/public/index.php ( )
  1. include __DIR__ . '/vendor/autoload.php';
  2. include __DIR__ . '/spitfire/bootstrap.php';
  3. include __DIR__ . '/bin/settings/services.php';
  4. ini_set('memory_limit', '128M');/**/
  5. /* Call the selected controller with the selected method. */
  6. spitfire()->fire();

Warning: Undefined array key "args" in /var/www/portfolio.commishes.com/public/spitfire/io/stp/StackTracePrinter.php on line 73

Warning: foreach() argument must be of type array|object, null given in /var/www/portfolio.commishes.com/public/spitfire/io/stp/StackTracePrinter.php on line 87

Warning: Undefined array key "args" in /var/www/portfolio.commishes.com/public/spitfire/io/stp/StackTracePrinter.php on line 73

Warning: foreach() argument must be of type array|object, null given in /var/www/portfolio.commishes.com/public/spitfire/io/stp/StackTracePrinter.php on line 87

Warning: Undefined array key "args" in /var/www/portfolio.commishes.com/public/spitfire/io/stp/StackTracePrinter.php on line 73

Warning: foreach() argument must be of type array|object, null given in /var/www/portfolio.commishes.com/public/spitfire/io/stp/StackTracePrinter.php on line 87

Warning: Undefined array key "args" in /var/www/portfolio.commishes.com/public/spitfire/io/stp/StackTracePrinter.php on line 73

Warning: foreach() argument must be of type array|object, null given in /var/www/portfolio.commishes.com/public/spitfire/io/stp/StackTracePrinter.php on line 87

Stack trace for "Controller like not found"

spitfire\core\app\ControllerLocator->getController ( )
  1. * @throws PublicException
  2. */
  3. public function getController($controller, Context$intent) {
  4. #Get the controllers class name. If it doesn't exist it'll be false
  5. $c = $this->hasController($controller);
  6. #If no controller was found, we can throw an exception letting the user know
  7. if ($c === false) { throw new PublicException("Page not found", 404, new PrivateException("Controller {$controller[0]} not found", 0) ); }
  8. #Otherwise we will instantiate the class and return it
  9. return new $c($intent);
spitfire\core\Context::create ( )
  1. $context->cache = MemcachedAdapter::getInstance();
  2. $context->request = Request::get();
  3. $context->parameters = $context->request->getPath()->getParameters();
  4. $context->response = new Response($context);
  5. $context->middleware = new MiddlewareStack($context);
  6. $context->app = spitfire()->getApp($context->request->getPath()->getApp());
  7. $context->controller = $context->app->getControllerLocator()->getController($context->request->getPath()->getController(), $context);
  8. $context->action = $context->request->getPath()->getAction();
  9. $context->object = $context->request->getPath()->getObject();
spitfire\core\Request->makeContext ( )
  1. * Automatically creates a context from the available data. This allows Spitfire
  2. * to create a single interface that your app can use to access all it's
  3. * components in a convenient way.
  4. *
  5. * @return type
  6. */
  7. public function makeContext() {
  8. $this->context = Context::create();
  9. return $this->context;
  10. }
spitfire\SpitFire->fire ( )
  1. #If the request has no defined controller, action and object it will define
  2. #those now.
  3. $path = $request->getPath();
  4. #Receive the initial context for the app. The controller can replace this later
  5. /*@var $initContext Context*/
  6. $initContext = ($path instanceof Context)? $path : $request->makeContext();
  7. #Define the context, include the application's middleware configuration.
  8. current_context($initContext);
/var/www/portfolio.commishes.com/public/index.php ( )
  1. include __DIR__ . '/vendor/autoload.php';
  2. include __DIR__ . '/spitfire/bootstrap.php';
  3. include __DIR__ . '/bin/settings/services.php';
  4. ini_set('memory_limit', '128M');/**/
  5. /* Call the selected controller with the selected method. */
  6. spitfire()->fire();