Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: wp_query Whoops\Exception\ErrorException thrown with message "Undefined variable: wp_query" Stacktrace: #8 Whoops\Exception\ErrorException in /home/elevatesd2020/public_html/wp-content/themes/roots/index.php:14 #7 Whoops\Run:handleError in /home/elevatesd2020/public_html/wp-content/themes/roots/index.php:14 #6 include in /home/elevatesd2020/public_html/wp-content/themes/roots/base.php:36 #5 include in /home/elevatesd2020/public_html/wp-content/plugins/wpdev/inc/bootstrap.php:72 #4 WPDev\data in /home/elevatesd2020/public_html/wp-includes/class-wp-hook.php:286 #3 WP_Hook:apply_filters in /home/elevatesd2020/public_html/wp-includes/plugin.php:208 #2 apply_filters in /home/elevatesd2020/public_html/wp-includes/template-loader.php:77 #1 require_once in /home/elevatesd2020/public_html/wp-blog-header.php:19 #0 require in /home/elevatesd2020/public_html/index.php:17
Stack frames (9)
8
Whoops
\
Exception
\
ErrorException
/
home
/
elevatesd2020
/
public_html
/
wp-content
/
themes
/
roots
/
index.php
14
7
Whoops
\
Run
handleError
/
home
/
elevatesd2020
/
public_html
/
wp-content
/
themes
/
roots
/
index.php
14
6
include
/
home
/
elevatesd2020
/
public_html
/
wp-content
/
themes
/
roots
/
base.php
36
5
include
/
inc
/
bootstrap.php
72
4
WPDev
\
data
/
home
/
elevatesd2020
/
public_html
/
wp-includes
/
class-wp-hook.php
286
3
WP_Hook
apply_filters
/
home
/
elevatesd2020
/
public_html
/
wp-includes
/
plugin.php
208
2
apply_filters
/
home
/
elevatesd2020
/
public_html
/
wp-includes
/
template-loader.php
77
1
require_once
/
home
/
elevatesd2020
/
public_html
/
wp-blog-header.php
19
0
require
/
home
/
elevatesd2020
/
public_html
/
index.php
17
/
home
/
elevatesd2020
/
public_html
/
wp-content
/
themes
/
roots
/
index.php
<?php get_template_part('templates/page', 'header'); ?>
 
<?php if (!have_posts()) : ?>
  <div class="alert alert-warning">
    <?php _e('Sorry, no results were found.', 'roots'); ?>
  </div>
  <?php get_search_form(); ?>
<?php endif; ?>
 
<?php while (have_posts()) : the_post(); ?>
  <?php get_template_part('templates/content', get_post_format()); ?>
<?php endwhile; ?>
 
<?php if ($wp_query->max_num_pages > 1) : ?>
  <nav class="post-nav">
    <ul class="pager">
      <li class="previous"><?php next_posts_link(__('&larr; Older posts', 'roots')); ?></li>
      <li class="next"><?php previous_posts_link(__('Newer posts &rarr;', 'roots')); ?></li>
    </ul>
  </nav>
<?php endif; ?>
 
Arguments
  1. "Undefined variable: wp_query"
    
/
home
/
elevatesd2020
/
public_html
/
wp-content
/
themes
/
roots
/
index.php
<?php get_template_part('templates/page', 'header'); ?>
 
<?php if (!have_posts()) : ?>
  <div class="alert alert-warning">
    <?php _e('Sorry, no results were found.', 'roots'); ?>
  </div>
  <?php get_search_form(); ?>
<?php endif; ?>
 
<?php while (have_posts()) : the_post(); ?>
  <?php get_template_part('templates/content', get_post_format()); ?>
<?php endwhile; ?>
 
<?php if ($wp_query->max_num_pages > 1) : ?>
  <nav class="post-nav">
    <ul class="pager">
      <li class="previous"><?php next_posts_link(__('&larr; Older posts', 'roots')); ?></li>
      <li class="next"><?php previous_posts_link(__('Newer posts &rarr;', 'roots')); ?></li>
    </ul>
  </nav>
<?php endif; ?>
 
Arguments
  1. 8
    
  2. "Undefined variable: wp_query"
    
  3. "/home/elevatesd2020/public_html/wp-content/themes/roots/index.php"
    
  4. 14
    
  5. array:7 [
      "template" => Roots_Wrapping {}
      "default_data" => array:2 [
        "Post" => Post {#1}
        "Posts" => []
      ]
      "controller" => null
      "data" => array:2 [
        "Post" => Post {#1}
        "Posts" => []
      ]
      "Post" => Post {#1}
      "Posts" => []
      "body_classes" => "archive author author-stacie author-5 d-flex flex-column"
    ]
    
/
home
/
elevatesd2020
/
public_html
/
wp-content
/
themes
/
roots
/
base.php
        <![endif]-->
 
        <?php
        do_action('get_header');
        // Choose the correct header
        // pick which one in config.php
        if (current_theme_supports('header-two-navs')) {
            get_template_part('templates/header-two-navs');
        } elseif (current_theme_supports('header-nav-bottom')) {
            get_template_part('templates/header-nav-bottom');
        } else {
            get_template_part('templates/header');
        }
        ?>
 
        <div class="site-main pb-3">
            <div class="container">
                <div class="content row">
                    <main class="main <?php echo roots_main_class(); ?>" role="main">
                        <?php include roots_template_path(); ?>
                    </main>
                    <?php if (roots_display_sidebar()) : ?>
                        <aside class="sidebar <?php echo roots_sidebar_class(); ?>" role="complementary">
                            <?php include roots_sidebar_path(); ?>
                        </aside>
                    <?php endif; ?>
                </div>
            </div>
        </div>
 
        <?php get_template_part('templates/footer'); ?>
 
        <script src="<?php echo Asset::init('js/main.js'); ?>"></script>
    </body>
</html>
 
Arguments
  1. "/home/elevatesd2020/public_html/wp-content/themes/roots/index.php"
    
/
home
/
elevatesd2020
/
public_html
/
wp-content
/
plugins
/
wpdev
/
inc
/
bootstrap.php
 
    if ( ! empty($GLOBALS['wp_query'])) {
        $default_data['Posts'] = PostFactory::makeFromQuery($GLOBALS['wp_query']);
    }
 
    // Load Controllers then include the template
    $controller = ControllerLoader::create(new Hierarchy)->getController();
 
    /** @var \WPDev\Controller\ControllerInterface $controller */
    if ($controller) {
        // set the default data so controller can access it in the build method
        $controller->defaultData = $default_data;
        $data                    = array_merge($default_data, $controller->build());
    } else {
        $data = $default_data;
    }
 
    extract($data);
 
    include $template;
}
add_filter('template_include', __NAMESPACE__.'\\data', 1000);
 
/*
|--------------------------------------------------------------------------
| Load this plugin first
|--------------------------------------------------------------------------
| WordPress sorts and loads plugins alphabetically.
| Here we find the wpdev plugin and move it to the front.
| And we have to do it every time a plugin is activated since
| WP always calls sort()
*/
function on_plugin_activation()
{
    // should end up evaluating to 'wpdev/wpdev.php'
    $path    = basename(dirname(__DIR__)).'/wpdev.php';
    $plugins = get_option('active_plugins', []);
    $key     = array_search($path, $plugins);
 
    if ($key !== false) {
Arguments
  1. "/home/elevatesd2020/public_html/wp-content/themes/roots/base.php"
    
/
home
/
elevatesd2020
/
public_html
/
wp-includes
/
class-wp-hook.php
        }
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] );
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice if possible.
                if ( $the_['accepted_args'] == 0 ) {
                    $value = call_user_func_array( $the_['function'], array() );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
Arguments
  1. Roots_Wrapping {}
    
/
home
/
elevatesd2020
/
public_html
/
wp-includes
/
plugin.php
 
    if ( ! isset( $wp_filter[ $tag ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
    }
 
    if ( empty( $args ) ) {
        $args = func_get_args();
    }
 
    // don't pass the tag name to WP_Hook
    array_shift( $args );
 
    $filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Execute functions hooked on a specific filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 * functions hooked to `$tag` are supplied using an array.
 *
 * @global array $wp_filter         Stores all of the filters
 * @global array $wp_current_filter Stores the list of current filters with the current one last
 *
 * @param string $tag  The name of the filter hook.
 * @param array  $args The arguments supplied to the functions hooked to $tag.
 * @return mixed The filtered value after all hooked functions are applied to it.
Arguments
  1. Roots_Wrapping {}
    
  2. array:1 [
      0 => Roots_Wrapping {}
    ]
    
/
home
/
elevatesd2020
/
public_html
/
wp-includes
/
template-loader.php
        remove_filter( 'the_content', 'prepend_attachment' );
    elseif ( is_single() && $template = get_single_template() ) :
    elseif ( is_page() && $template = get_page_template() ) :
    elseif ( is_singular() && $template = get_singular_template() ) :
    elseif ( is_category() && $template = get_category_template() ) :
    elseif ( is_tag() && $template = get_tag_template() ) :
    elseif ( is_author() && $template = get_author_template() ) :
    elseif ( is_date() && $template = get_date_template() ) :
    elseif ( is_archive() && $template = get_archive_template() ) :
    else :
        $template = get_index_template();
    endif;
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
endif;
 
Arguments
  1. "template_include"
    
  2. "/home/elevatesd2020/public_html/wp-content/themes/roots/index.php"
    
/
home
/
elevatesd2020
/
public_html
/
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( dirname( __FILE__ ) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
Arguments
  1. "/home/elevatesd2020/public_html/wp-includes/template-loader.php"
    
/
home
/
elevatesd2020
/
public_html
/
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( dirname( __FILE__ ) . '/wp-blog-header.php' );
 
Arguments
  1. "/home/elevatesd2020/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.38 (cPanel) OpenSSL/1.0.2q mod_bwlimited/1.4"
REQUEST_URI
"/author/stacie/"
CONTEXT_DOCUMENT_ROOT
"/home/elevatesd2020/public_html"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/home/elevatesd2020/public_html"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"elevatesd2020.com"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_X_HTTPS
"1"
PATH
"/bin:/usr/bin"
PHP_INI_SCAN_DIR
"/opt/cpanel/ea-php72/root/etc:/opt/cpanel/ea-php72/root/etc/php.d:."
QUERY_STRING
""
REDIRECT_HTTPS
"on"
REDIRECT_SCRIPT_URI
"https://elevatesd2020.com/author/stacie/"
REDIRECT_SCRIPT_URL
"/author/stacie/"
REDIRECT_SSL_TLS_SNI
"elevatesd2020.com"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"XYJfM1qE7RLbMxZ1h4ZjdQAAAYw"
REDIRECT_URL
"/author/stacie/"
REMOTE_ADDR
"18.205.109.82"
REMOTE_PORT
"47338"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
SCRIPT_FILENAME
"/home/elevatesd2020/public_html/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"https://elevatesd2020.com/author/stacie/"
SCRIPT_URL
"/author/stacie/"
SERVER_ADDR
"198.1.99.17"
SERVER_ADMIN
"webmaster@elevatesd2020.com"
SERVER_NAME
"elevatesd2020.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache/2.4.38 (cPanel) OpenSSL/1.0.2q mod_bwlimited/1.4 Server at elevatesd2020.com Port 443</address>\n"
SSL_TLS_SNI
"elevatesd2020.com"
TZ
"America/Chicago"
UNIQUE_ID
"XYJfM1qE7RLbMxZ1h4ZjdQAAAYw"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
"1568825139.8394"
REQUEST_TIME
"1568825139"
argv
[]
argc
"0"
empty
0. Whoops\Handler\PrettyPageHandler