Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: sort Whoops\Exception\ErrorException thrown with message "Undefined variable: sort" Stacktrace: #6 Whoops\Exception\ErrorException in /home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Taxonomy/Icon.php:15 #5 Whoops\Run:handleError in /home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Taxonomy/Icon.php:15 #4 Lexicon\Archive\Taxonomy\Icon:init in /home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Archive.php:33 #3 Lexicon\Archive\Archive:__construct in /home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/archive.php:28 #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/Icon.php15
5
Whoops\Run handleError
/wp-content/themes/lexicon/lib/Archive/Taxonomy/Icon.php15
4
Lexicon\Archive\Taxonomy\Icon init
/wp-content/themes/lexicon/lib/Archive/Archive.php33
3
Lexicon\Archive\Archive __construct
/wp-content/themes/lexicon/archive.php28
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/Icon.php
<?php
 
namespace Lexicon\Archive\Taxonomy;
 
class Icon extends \Lexicon\Archive\Taxonomy
{
    protected $imageRef;
    protected $iconImage;
    protected $sortMode = 'alpha';
    protected $pagination = true;
    protected $defaultLetter = 'A';
 
    public function init()
    {
        parent::init($sort);
 
        $this->imageRef = pods_field('icon', $this->queried->term_id, 'icon_image_url', true);
    }
 
    public function get()
    {
        $this->data['icon_image_ref'] = $this->imageRef;
        $this->data['icon_image'] = $this->iconImage = new \Lexicon\Post\Media($this->imageRef['ID']);
 
        return parent::get();
    }
}
 
Arguments
  1. "Undefined variable: sort"
    
/home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Taxonomy/Icon.php
<?php
 
namespace Lexicon\Archive\Taxonomy;
 
class Icon extends \Lexicon\Archive\Taxonomy
{
    protected $imageRef;
    protected $iconImage;
    protected $sortMode = 'alpha';
    protected $pagination = true;
    protected $defaultLetter = 'A';
 
    public function init()
    {
        parent::init($sort);
 
        $this->imageRef = pods_field('icon', $this->queried->term_id, 'icon_image_url', true);
    }
 
    public function get()
    {
        $this->data['icon_image_ref'] = $this->imageRef;
        $this->data['icon_image'] = $this->iconImage = new \Lexicon\Post\Media($this->imageRef['ID']);
 
        return parent::get();
    }
}
 
Arguments
  1. 8
    
  2. "Undefined variable: sort"
    
  3. "/home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Taxonomy/Icon.php"
    
  4. 15
    
  5. []
    
/home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/lib/Archive/Archive.php
    protected $sortMode       = 'date';
    protected $orderBy        = 'date';
    protected $order          = 'DESC';
    protected $title          = 'Archive';
    protected $defaultLetter  = null;
    protected $hasLetters     = false;
    protected $templates      = [];
    protected $defaultCount   = 20;
    protected $numPerPage     = 20;
    protected $pagination     = false;
    protected $data           = [];
    protected $additionalArgs = [];
    protected $taxonomy       = null;
    protected $term           = null;
    protected $featuredOnly   = false;
    protected $emptyRedirect  = null;
 
    public function __construct()
    {
        $this->init();
 
        add_action('pre_get_posts', array($this, 'filterQuery'));
    }
 
    public function getPosts()
    {
        $args = $this->archiveArgs();
        query_posts($args);
        return Timber::get_posts($args, $this->postClass);
    }
 
    public function getImages()
    {
        $args = $this->archiveArgs();
        $args['post_type'] = 'attachment';
        $args['post_status'] = ['publish', 'inherit'];
        return Timber::get_posts($args, 'Lexicon\Post\Media');
    }
 
    public function getPagination()
/home/hplex/alchemy.hp-lexicon.org/wp-content/themes/lexicon/archive.php
 *
 * Methods for TimberHelper can be found in the /lib sub-directory
 *
 * @package  WordPress
 * @subpackage  Timber
 * @since   Timber 0.2
 */
$archive = null;
 
if (is_date()) {
    $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:

Key Value
letter
"R"
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.43 (Ubuntu)"
REQUEST_URI
"/icon/battle/?letter=R"
USER
"www-data"
HOME
"/var/www"
SCRIPT_NAME
"/index.php"
QUERY_STRING
"letter=R"
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_QUERY_STRING
"letter=R"
REDIRECT_URL
"/icon/battle/"
REMOTE_PORT
"26140"
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.237.66.86"
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.237.66.86"
HTTP_CF_REQUEST_ID
"06a4e1731d0000f102dc0d4000000001"
HTTP_IF_MODIFIED_SINCE
"Tue, 04 Aug 2020 22:40:13 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
"5f819e982ea0f102-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
1606372842.4395
REQUEST_TIME
1606372842
HTTP_X_FORWARDED_FOR
"3.237.66.86"
empty
0. Whoops\Handler\PrettyPageHandler