Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: termInfo Whoops\Exception\ErrorException thrown with message "Undefined variable: termInfo" Stacktrace: #6 Whoops\Exception\ErrorException in /home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Taxonomy.php:51 #5 Whoops\Run:handleError in /home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Taxonomy.php:51 #4 Lexicon\Archive\Taxonomy:get in /home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Archive.php:84 #3 Lexicon\Archive\Archive:render in /home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/archive.php:38 #2 include in /home/hplex/alchemy.hp-lexicon.org/www/wp-includes/template-loader.php:106 #1 require_once in /home/hplex/alchemy.hp-lexicon.org/www/wp-blog-header.php:19 #0 require in /home/hplex/alchemy.hp-lexicon.org/www/index.php:17
Stack frames (7)
6
Whoops\Exception\ErrorException
/wp-content/themes/lexicon/lib/Archive/Taxonomy.php51
5
Whoops\Run handleError
/wp-content/themes/lexicon/lib/Archive/Taxonomy.php51
4
Lexicon\Archive\Taxonomy get
/wp-content/themes/lexicon/lib/Archive/Archive.php84
3
Lexicon\Archive\Archive render
/wp-content/themes/lexicon/archive.php38
2
include
/www/wp-includes/template-loader.php106
1
require_once
/www/wp-blog-header.php19
0
require
/www/index.php17
/home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Taxonomy.php
        $this->addTemplateFirst("archive-term.twig");
        $this->addTemplateFirst("archive-{$this->queried->taxonomy}.twig");
        $this->addTemplateFirst("archive-{$this->queried->taxonomy}-{$this->queried->slug}.twig");
 
        if (get_query_var('post_type', null)) {
            $this->postType = get_query_var('post_type', null);
            $this->postClass = singleContentType($this->postType);
        }
 
        $this->setTaxonomyQuery();
 
        add_filter('wpseo_breadcrumb_links', array($this, 'filterBreadcrumbs'));
    }
 
    public function get()
    {
        $this->data['taxonomy_group'] = get_taxonomy($this->queried->taxonomy);
        $this->data['taxonomy'] = $this->termInfo;
        $this->data['child_terms'] = Timber::get_terms($this->queried->taxonomy, ['parent' => $this->queried->term_id]);
        if ($termInfo->parent) {
            $parentInfo = Timber::get_terms($this->queried->taxonomy, ['term_id' => $termInfo->parent ]);
            $parentInfo = array_shift($parentInfo);
            $this->data['parent_term'] = $parentInfo;
        }
 
        return parent::get();
    }
 
    public function setTaxonomyQuery()
    {
        $this->additionalArgs['tax_query'] = [
            [
                'taxonomy'  =>  $this->queried->taxonomy,
                'field' => 'term_taxonomy_id',
                'terms' =>  $this->queried->term_taxonomy_id
            ]
        ];
    }
 
    public function ancestors()
Arguments
  1. "Undefined variable: termInfo"
    
/home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Taxonomy.php
        $this->addTemplateFirst("archive-term.twig");
        $this->addTemplateFirst("archive-{$this->queried->taxonomy}.twig");
        $this->addTemplateFirst("archive-{$this->queried->taxonomy}-{$this->queried->slug}.twig");
 
        if (get_query_var('post_type', null)) {
            $this->postType = get_query_var('post_type', null);
            $this->postClass = singleContentType($this->postType);
        }
 
        $this->setTaxonomyQuery();
 
        add_filter('wpseo_breadcrumb_links', array($this, 'filterBreadcrumbs'));
    }
 
    public function get()
    {
        $this->data['taxonomy_group'] = get_taxonomy($this->queried->taxonomy);
        $this->data['taxonomy'] = $this->termInfo;
        $this->data['child_terms'] = Timber::get_terms($this->queried->taxonomy, ['parent' => $this->queried->term_id]);
        if ($termInfo->parent) {
            $parentInfo = Timber::get_terms($this->queried->taxonomy, ['term_id' => $termInfo->parent ]);
            $parentInfo = array_shift($parentInfo);
            $this->data['parent_term'] = $parentInfo;
        }
 
        return parent::get();
    }
 
    public function setTaxonomyQuery()
    {
        $this->additionalArgs['tax_query'] = [
            [
                'taxonomy'  =>  $this->queried->taxonomy,
                'field' => 'term_taxonomy_id',
                'terms' =>  $this->queried->term_taxonomy_id
            ]
        ];
    }
 
    public function ancestors()
Arguments
  1. 8
    
  2. "Undefined variable: termInfo"
    
  3. "/home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Taxonomy.php"
    
  4. 51
    
  5. []
    
/home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Archive.php
        if ($this->letter) {
            $this->data['letter'] = $this->letter;
        }
        $this->data['letters'] = $this->getLetters();
 
        return $this->data;
    }
 
    public function getLetters()
    {
        if (!$this->hasLetters) {
            return null;
        }
 
        return getValidLetters($this->postType, $this->taxonomy, $this->term, $this->letter);
    }
 
    public function render()
    {
        $data = $this->get();
 
        if ($this->getDebug() == 'breakthisnick') {
            dump($this->templates);
            dump($this->archiveArgs());
            dump($_REQUEST);
            dd($this->data);
        }
 
        Timber::render($this->templates, $data);
    }
 
    public function filterQuery($query)
    {
        foreach ($this->archiveArgs() as $attribute => $value) {
            $query->set($attribute, $value);
        }
    }
 
    public function init()
    {
/home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/archive.php
    $archive = new \Lexicon\Archive\Date();
} elseif (is_tag()) {
    $archive = new \Lexicon\Archive\Taxonomy\Tag();
} elseif (is_category()) {
    $archive = new \Lexicon\Archive\Taxonomy\Category();
} elseif (is_tax()) {
    $queried = get_queried_object();
    $class = taxonomyArchive($queried->taxonomy);
 
    $archive = new $class();
} elseif (is_post_type_archive()) {
    $postType = get_post_type();
    $class = postTypeArchive($postType);
 
    $archive = new $class();
} else {
    $archive = new \Lexicon\Archive\Archive();
}
 
$archive->render();
 
/home/hplex/alchemy.hp-lexicon.org/www/wp-includes/template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/archive.php"
    
/home/hplex/alchemy.hp-lexicon.org/www/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home/hplex/alchemy.hp-lexicon.org/www/wp-includes/template-loader.php"
    
/home/hplex/alchemy.hp-lexicon.org/www/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/home/hplex/alchemy.hp-lexicon.org/www/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.43 (Ubuntu)"
REQUEST_URI
"/placetype/businesses/"
USER
"www-data"
HOME
"/var/www"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/placetype/businesses/"
REMOTE_PORT
"29440"
SCRIPT_FILENAME
"/home/hplex/alchemy.hp-lexicon.org/www/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/home/hplex/alchemy.hp-lexicon.org/www"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/hplex/alchemy.hp-lexicon.org/www"
REMOTE_ADDR
"3.238.184.78"
SERVER_PORT
"443"
SERVER_ADDR
"10.138.0.2"
SERVER_NAME
"alchemy.hp-lexicon.org"
SERVER_SIGNATURE
"<address>Apache/2.4.43 (Ubuntu) Server at alchemy.hp-lexicon.org Port 443</address>\n"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
HTTP_CDN_LOOP
"cloudflare"
HTTP_CF_CONNECTING_IP
"3.238.184.78"
HTTP_CF_REQUEST_ID
"06c464713c00000dcef319f000000001"
HTTP_IF_MODIFIED_SINCE
"Mon, 10 Aug 2020 22:00:34 GMT"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_RAY
"5fb409c86dca0dce-IAD"
HTTP_CF_IPCOUNTRY
"US"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"alchemy.hp-lexicon.org"
proxy-nokeepalive
"1"
SSL_TLS_SNI
"alchemy.hp-lexicon.org"
HTTPS
"on"
proxyssl
"1"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"alchemy.hp-lexicon.org"
REDIRECT_HTTPS
"on"
REDIRECT_proxyssl
"1"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1606901522.2577
REQUEST_TIME
1606901522
HTTP_X_FORWARDED_FOR
"3.238.184.78"
empty
0. Whoops\Handler\PrettyPageHandler