Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined index: hospitality Whoops\Exception\ErrorException thrown with message "Undefined index: hospitality" Stacktrace: #4 Whoops\Exception\ErrorException in /home/o6fetbgp6jq9/public_html/site/config/config.php:371 #3 Whoops\Run:handleError in /home/o6fetbgp6jq9/public_html/site/config/config.php:371 #2 Kirby:{closure} in /home/o6fetbgp6jq9/public_html/kirby/vendor/getkirby/toolkit/helpers.php:280 #1 call in /home/o6fetbgp6jq9/public_html/kirby/kirby.php:708 #0 Kirby:launch in /home/o6fetbgp6jq9/public_html/index.php:16
Stack frames (5)
4
Whoops
\
Exception
\
ErrorException
/
home
/
o6fetbgp6jq9
/
public_html
/
site
/
config
/
config.php
371
3
Whoops
\
Run
handleError
/
home
/
o6fetbgp6jq9
/
public_html
/
site
/
config
/
config.php
371
2
Kirby
{closure}
/
vendor
/
getkirby
/
toolkit
/
helpers.php
280
1
call
/
kirby.php
708
0
Kirby
launch
/
home
/
o6fetbgp6jq9
/
public_html
/
index.php
16
/
home
/
o6fetbgp6jq9
/
public_html
/
site
/
config
/
config.php
    'pattern' => 'about/clients/(:any)',
    'action'  => function($type) {
        $type = str_replace("-", " ", $type);
        $clientTypes = array();
        foreach ( page('projects')->children()->visible()as $project ) {
            foreach ( $project->type()->split(',') as $currentTag ) {
                if( !isset($clientTypes[$currentTag]) ) {
                    $clientTypes[$currentTag] = array(
                        'type' => $currentTag,
                        'projects' => array()
                    );
                    array_push($clientTypes[$currentTag]['projects'], $project);
                } elseif ( isset($clientTypes[$currentTag]) ) {
                    array_push($clientTypes[$currentTag]['projects'], $project);
                }
            }
        }
 
        $clients = array();
        foreach ($clientTypes[$type]['projects'] as $project) {
            $client = (string)$project->client();
            if( !isset($clients[$client]) ) {
                $clients[$client] = array(
                    'client' => $client,
                    'projects' => array($project)
                );
            }
        }
        
        return ['about/clients', ['projectsByClient' => $clients, 'clienttypes' => $clientTypes]];
    }
  ),
  array(
    'pattern' => 'projects/client/(:any)',
    'action'  => function($type) {
        $type = str_replace("-", " ", $type);
        $clientTypes = array();
        foreach ( page('projects')->children()->visible()as $project ) {
            if( $type == $project->client() ) {
                array_push($clientTypes, $project);
/
home
/
o6fetbgp6jq9
/
public_html
/
site
/
config
/
config.php
    'pattern' => 'about/clients/(:any)',
    'action'  => function($type) {
        $type = str_replace("-", " ", $type);
        $clientTypes = array();
        foreach ( page('projects')->children()->visible()as $project ) {
            foreach ( $project->type()->split(',') as $currentTag ) {
                if( !isset($clientTypes[$currentTag]) ) {
                    $clientTypes[$currentTag] = array(
                        'type' => $currentTag,
                        'projects' => array()
                    );
                    array_push($clientTypes[$currentTag]['projects'], $project);
                } elseif ( isset($clientTypes[$currentTag]) ) {
                    array_push($clientTypes[$currentTag]['projects'], $project);
                }
            }
        }
 
        $clients = array();
        foreach ($clientTypes[$type]['projects'] as $project) {
            $client = (string)$project->client();
            if( !isset($clients[$client]) ) {
                $clients[$client] = array(
                    'client' => $client,
                    'projects' => array($project)
                );
            }
        }
        
        return ['about/clients', ['projectsByClient' => $clients, 'clienttypes' => $clientTypes]];
    }
  ),
  array(
    'pattern' => 'projects/client/(:any)',
    'action'  => function($type) {
        $type = str_replace("-", " ", $type);
        $clientTypes = array();
        foreach ( page('projects')->children()->visible()as $project ) {
            if( $type == $project->client() ) {
                array_push($clientTypes, $project);
/
home
/
o6fetbgp6jq9
/
public_html
/
kirby
/
vendor
/
getkirby
/
toolkit
/
helpers.php
 
/**
 * Facepalm typo alias
 * @see csrf()
 */
function csfr() {
  return call('csrf', func_get_args());
}
 
/**
 * Shortcut for call_user_func_array with a better handling of arguments
 *
 * @param mixed $function
 * @param mixed $arguments
 * @return mixed
 */
function call($function, $arguments = array()) {
  if(!is_callable($function)) return false;
  if(!is_array($arguments)) $arguments = array($arguments);
  return call_user_func_array($function, $arguments);
}
 
/**
 * Parses yaml structured text
 *
 * @param $string
 * @return array
 */
function yaml($string) {
  return yaml::decode($string);
}
 
/**
 * Simple email sender helper
 *
 * @param array $params
 * @return Email
 */
function email($params = array()) {
  return new Email($params);
/
home
/
o6fetbgp6jq9
/
public_html
/
kirby
/
kirby.php
 
    // load all plugins
    $this->plugins();
 
    // start the router
    $this->router = new Router($this->routes());
    $this->route  = $this->router->run($this->path());
 
    // check for a valid route
    if(is_null($this->route)) {
      header::status('500');
      header::type('json');
      die(json_encode(array(
        'status'  => 'error',
        'message' => 'Invalid route or request method'
      )));
    }
 
    // call the router action with all arguments from the pattern
    $response = call($this->route->action(), $this->route->arguments());
 
    // load all language variables
    // this can only be loaded once the router action has been called
    // otherwise the current language is not yet available
    $this->localize();
 
    // build the response
    $this->response = $this->component('response')->make($response);
 
    // store the current language in the session
    if(
        $this->option('language.detect') &&
        $this->site()->multilang() && 
        $this->site()->language()
      ) {      
      s::set('kirby_language', $this->site()->language()->code());
    }
 
    return $this->response;
 
/
home
/
o6fetbgp6jq9
/
public_html
/
index.php
<?php
 
define('DS', DIRECTORY_SEPARATOR);
 
// load kirby
require(__DIR__ . DS . 'kirby' . DS . 'bootstrap.php');
 
// check for a custom site.php
if(file_exists(__DIR__ . DS . 'site.php')) {
  require(__DIR__ . DS . 'site.php');
} else {
  $kirby = kirby();
}
 
// render
echo $kirby->launch();

Environment & details:

Key Value
Kirby Toolkit v2.5.2
Kirby CMS v2.5.2
empty
empty
empty
empty
empty
Key Value
LSPHP_ENABLE_USER_INI on
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
CONTENT_LENGTH 0
HTTP_HOST garrisonarchitects.com
HTTP_USER_AGENT claudebot
REDIRECT_UNIQUE_ID ZgWvLYwqqOVD-hL46VkJpAAAAOQ
REDIRECT_SCRIPT_URL /about/clients/hospitality
REDIRECT_SCRIPT_URI http://garrisonarchitects.com/about/clients/hospitality
REDIRECT_USER_ID 9069736
REDIRECT_DATABASE_SERVER localhost
REDIRECT_STATUS 200
UNIQUE_ID ZgWvLYwqqOVD-hL46VkJpAAAAOQ
SCRIPT_URL /about/clients/hospitality
SCRIPT_URI http://garrisonarchitects.com/about/clients/hospitality
USER_ID 9069736
DATABASE_SERVER localhost
SITE_ROOT /home/o6fetbgp6jq9/public_html
SITE_CGIROOT /home/o6fetbgp6jq9/public_html/cgi-bin
SITE_HTMLROOT /home/o6fetbgp6jq9/public_html
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME garrisonarchitects.com
SERVER_ADDR 208.109.61.155
SERVER_PORT 80
REMOTE_ADDR 52.90.50.252
DOCUMENT_ROOT /home/o6fetbgp6jq9/public_html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/o6fetbgp6jq9/public_html
SERVER_ADMIN webmaster@garrisonarchitects.com
SCRIPT_FILENAME /home/o6fetbgp6jq9/public_html/index.php
REMOTE_PORT 56348
REDIRECT_URL /about/clients/hospitality
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /about/clients/hospitality
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711648557.8927
REQUEST_TIME 1711648557
Key Value
LSPHP_ENABLE_USER_INI on
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
DATABASE_SERVER localhost
SITE_ROOT /home/o6fetbgp6jq9/public_html
SITE_CGIROOT /home/o6fetbgp6jq9/public_html/cgi-bin
SITE_HTMLROOT /home/o6fetbgp6jq9/public_html
0. Whoops\Handler\PrettyPageHandler