Whoops \ Exception \ ErrorException (E_WARNING)
Trying to access array offset on false Whoops\Exception\ErrorException thrown with message "Trying to access array offset on false" Stacktrace: #11 Whoops\Exception\ErrorException in /home3/sageexec/public_html/wp-content/themes/roots/templates/page-header.php:98 #10 Whoops\Run:handleError in /home3/sageexec/public_html/wp-content/themes/roots/templates/page-header.php:98 #9 include in /home3/sageexec/public_html/wp-content/plugins/wpdev/inc/template/Template.php:79 #8 WPDev\Template\Template:includeTemplate in /home3/sageexec/public_html/wp-content/plugins/wpdev/inc/template/Template.php:63 #7 WPDev\Template\Template:include in /home3/sageexec/public_html/wp-content/plugins/wpdev/inc/helpers.php:51 #6 template in /home3/sageexec/public_html/wp-content/themes/roots/base.php:33 #5 include in /home3/sageexec/public_html/wp-content/plugins/wpdev/inc/bootstrap.php:71 #4 WPDev\data in /home3/sageexec/public_html/wp-includes/class-wp-hook.php:341 #3 WP_Hook:apply_filters in /home3/sageexec/public_html/wp-includes/plugin.php:205 #2 apply_filters in /home3/sageexec/public_html/wp-includes/template-loader.php:114 #1 require_once in /home3/sageexec/public_html/wp-blog-header.php:19 #0 require in /home3/sageexec/public_html/index.php:17
Stack frames (12)
11
Whoops
\
Exception
\
ErrorException
/
home3
/
sageexec
/
public_html
/
wp-content
/
themes
/
roots
/
templates
/
page-header.php
98
10
Whoops
\
Run
handleError
/
home3
/
sageexec
/
public_html
/
wp-content
/
themes
/
roots
/
templates
/
page-header.php
98
9
include
/
inc
/
template
/
Template.php
79
8
WPDev
\
Template
\
Template
includeTemplate
/
inc
/
template
/
Template.php
63
7
WPDev
\
Template
\
Template
include
/
inc
/
helpers.php
51
6
template
/
home3
/
sageexec
/
public_html
/
wp-content
/
themes
/
roots
/
base.php
33
5
include
/
inc
/
bootstrap.php
71
4
WPDev
\
data
/
home3
/
sageexec
/
public_html
/
wp-includes
/
class-wp-hook.php
341
3
WP_Hook
apply_filters
/
home3
/
sageexec
/
public_html
/
wp-includes
/
plugin.php
205
2
apply_filters
/
home3
/
sageexec
/
public_html
/
wp-includes
/
template-loader.php
114
1
require_once
/
home3
/
sageexec
/
public_html
/
wp-blog-header.php
19
0
require
/
home3
/
sageexec
/
public_html
/
index.php
17
/
home3
/
sageexec
/
public_html
/
wp-content
/
themes
/
roots
/
templates
/
page-header.php
                <?php endif;
 
                if (!empty($post->acfField('address')['address_line_1'])) : ?>
                    <div class="page-header--card">
                        <i class="fas fa-map-marker fa"></i>
                        <h4>Where</h4>
                        <p>
                            <?php if ($address = $post->acfField('address')) {
                                echo $address['location_title'] ? '<strong>' . $address['location_title'] . '</strong><br>' : '';
                                echo $address['address_line_1'] ? $address['address_line_1'] . '<br>' : '';
                                echo $address['address_line_2'] ? $address['address_line_2'] . ' <br>' : '';
                                echo $address['city'] ? $address['city'] . ', ' : '';
                                echo $address['state'] ? $address['state'] . ' ' : '';
                                echo $address['zip'] ? $address['zip'] : '';
                            } ?>
                        </p>
 
                            <?php $location = gm_map_search_geocode(implode(' ', $post->acfField('address'))); ?>
                            <a class="btn btn-secondary"
                               href="https://www.google.com/maps/dir/<?php echo urlencode($location[2]); ?>">Get
                                Directions</a>
                    </div>
                <?php endif; ?>
            </div>
 
        <?php endif; ?>
    </div>
</div>
Arguments
  1. "Trying to access array offset on false"
    
/
home3
/
sageexec
/
public_html
/
wp-content
/
themes
/
roots
/
templates
/
page-header.php
                <?php endif;
 
                if (!empty($post->acfField('address')['address_line_1'])) : ?>
                    <div class="page-header--card">
                        <i class="fas fa-map-marker fa"></i>
                        <h4>Where</h4>
                        <p>
                            <?php if ($address = $post->acfField('address')) {
                                echo $address['location_title'] ? '<strong>' . $address['location_title'] . '</strong><br>' : '';
                                echo $address['address_line_1'] ? $address['address_line_1'] . '<br>' : '';
                                echo $address['address_line_2'] ? $address['address_line_2'] . ' <br>' : '';
                                echo $address['city'] ? $address['city'] . ', ' : '';
                                echo $address['state'] ? $address['state'] . ' ' : '';
                                echo $address['zip'] ? $address['zip'] : '';
                            } ?>
                        </p>
 
                            <?php $location = gm_map_search_geocode(implode(' ', $post->acfField('address'))); ?>
                            <a class="btn btn-secondary"
                               href="https://www.google.com/maps/dir/<?php echo urlencode($location[2]); ?>">Get
                                Directions</a>
                    </div>
                <?php endif; ?>
            </div>
 
        <?php endif; ?>
    </div>
</div>
Arguments
  1. 2
    
  2. "Trying to access array offset on false"
    
  3. "/home3/sageexec/public_html/wp-content/themes/roots/templates/page-header.php"
    
  4. 98
    
/
home3
/
sageexec
/
public_html
/
wp-content
/
plugins
/
wpdev
/
inc
/
template
/
Template.php
     */
    public static function include(string $file_name, array $data = [])
    {
        return static::create($file_name, $data)->includeTemplate();
    }
 
    /**
     * Includes the template file passing along the data.
     *
     * @return bool True if successfully included the template. Otherwise, false.
     */
    public function includeTemplate()
    {
        if (!$template = $this->getTemplate()) {
            return false;
        }
 
        $data = $this->data;
        extract($data);
        include $this->getTemplate();
 
        return true;
    }
 
    /**
     * Locates a template file.
     *
     * @param string $file_name
     *
     * @return string The path to the template file. Empty if none found.
     */
    public static function locate(string $file_name)
    {
        return self::create($file_name)->getTemplate();
    }
 
    /*
    |--------------------------------------------------------------------------
    | Protected
    |--------------------------------------------------------------------------
Arguments
  1. "/home3/sageexec/public_html/wp-content/themes/roots/templates/page-header.php"
    
/
home3
/
sageexec
/
public_html
/
wp-content
/
plugins
/
wpdev
/
inc
/
template
/
Template.php
            return '';
        }
 
        /** @var \Symfony\Component\Finder\SplFileInfo $file */
        $file = reset($this->foundTemplates); // grab the first file
 
        return $file->getRealPath();
    }
 
    /**
     * Include a theme template file. Optionally pass data.
     *
     * @param string $file_name The file name of the template.
     * @param array $data Data to be passed to view. Will also be extracted into variables.
     *
     * @return bool True if successfully included the template. Otherwise, false.
     */
    public static function include(string $file_name, array $data = [])
    {
        return static::create($file_name, $data)->includeTemplate();
    }
 
    /**
     * Includes the template file passing along the data.
     *
     * @return bool True if successfully included the template. Otherwise, false.
     */
    public function includeTemplate()
    {
        if (!$template = $this->getTemplate()) {
            return false;
        }
 
        $data = $this->data;
        extract($data);
        include $this->getTemplate();
 
        return true;
    }
 
/
home3
/
sageexec
/
public_html
/
wp-content
/
plugins
/
wpdev
/
inc
/
helpers.php
    function get_posts_from_query(WP_Query $wp_query)
    {
        return array_map(function ($post) {
            return new Post($post);
        }, $wp_query->posts);
    }
}
 
 
if (! function_exists('template')) {
    /**
     * Include a theme template file. Optionally pass data.
     *
     * @param string $file_name The file name of the template.
     * @param array $data Data to be passed to view. Will also be extracted into variables.
     *
     * @return bool True if successfully included the template. Otherwise, false.
     */
    function template(string $file_name, array $data = []) {
        return Template::include($file_name, $data);
    }
}
 
if (! function_exists('template_locate')) {
    /**
     * Locates a template file.
     *
     * @param string $file_name
     *
     * @return string The path to the template file. Empty if none found.
     */
    function template_locate(string $file_name) {
        return Template::locate($file_name);
    }
}
 
if (! function_exists('plugin_template')) {
    /**
     * Include a theme template file. Optionally pass data.
     *
Arguments
  1. "page-header.php"
    
  2. array:1 [
      "post" => Post {#2462}
    ]
    
/
home3
/
sageexec
/
public_html
/
wp-content
/
themes
/
roots
/
base.php
        <div class="alert alert-warning">
            <?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'roots'); ?>
        </div>
        <![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');
        }
        ?>
        <?php if(!is_front_page()) {
            template('page-header.php', ['post' => $Post]);
        } ?>
 
        <?php if(!is_singular('event') && $Post->acfField('introduction')) : ?>
            <div class="bg-light lead py-6"><div class="container"> <?php echo $Post->acfField('introduction'); ?></div></div>
        <?php endif; ?>
        <div class="site-main py-6">
            <div class="container">
                <div class="content row justify-content-center">
                    <main class="main <?php echo is_front_page() ? 'col-sm-12' : 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>
 
Arguments
  1. "page-header.php"
    
  2. array:1 [
      "post" => Post {#2462}
    ]
    
/
home3
/
sageexec
/
public_html
/
wp-content
/
plugins
/
wpdev
/
inc
/
bootstrap.php
 
    if ( ! empty($GLOBALS['wp_query'])) {
        $default_data['Posts'] = get_posts_from_query($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. "/home3/sageexec/public_html/wp-content/themes/roots/base.php"
    
/
home3
/
sageexec
/
public_html
/
wp-includes
/
class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } 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, $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;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
Arguments
  1. Roots_Wrapping {#2460}
    
/
home3
/
sageexec
/
public_html
/
wp-includes
/
plugin.php
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a 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 `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_filters        Stores the number of times each filter was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
Arguments
  1. Roots_Wrapping {#2460}
    
  2. array:1 [
      0 => Roots_Wrapping {#2460}
    ]
    
/
home3
/
sageexec
/
public_html
/
wp-includes
/
template-loader.php
            if ( 'is_attachment' === $tag ) {
                remove_filter( 'the_content', 'prepend_attachment' );
            }
 
            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 ) {
        /**
         * Fires immediately before including the template.
         *
         * @since 6.9.0
         *
         * @param string $template The path of the template about to be included.
         */
        do_action( 'wp_before_include_template', $template );
 
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "template_include"
    
  2. "/home3/sageexec/public_html/wp-content/themes/roots/single-event.php"
    
/
home3
/
sageexec
/
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 __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home3/sageexec/public_html/wp-includes/template-loader.php"
    
/
home3
/
sageexec
/
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 __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/home3/sageexec/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/event/la-chargers-game-aug-20/"
LSPHP_ENABLE_USER_INI
"on"
PATH
"/usr/local/bin:/usr/bin:/bin"
TEMP
"/tmp"
TMP
"/tmp"
TMPDIR
"/tmp"
PWD
"/"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
CONTENT_LENGTH
"0"
HTTP_HOST
"sageexecutivegroup.com"
HTTP_REFERER
"https://sageexecutivegroup.com/event/la-chargers-game-aug-20"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_X_HTTPS
"1"
REDIRECT_UNIQUE_ID
"aapeCSCcicAdEg57Mc_ASwACqXA"
REDIRECT_QS_ConnectionId
"177277287320589448956665"
REDIRECT_SCRIPT_URL
"/event/la-chargers-game-aug-20/"
REDIRECT_SCRIPT_URI
"https://sageexecutivegroup.com/event/la-chargers-game-aug-20/"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"sageexecutivegroup.com"
REDIRECT_HTTP2
"on"
REDIRECT_H2PUSH
"off"
REDIRECT_H2_PUSH
"off"
REDIRECT_H2_PUSHED
""
REDIRECT_H2_PUSHED_ON
""
REDIRECT_H2_STREAM_ID
"5"
REDIRECT_H2_STREAM_TAG
"956665-651-5"
REDIRECT_STATUS
"200"
UNIQUE_ID
"aapeCSCcicAdEg57Mc_ASwACqXA"
QS_ConnectionId
"177277287320589448956665"
SCRIPT_URL
"/event/la-chargers-game-aug-20/"
SCRIPT_URI
"https://sageexecutivegroup.com/event/la-chargers-game-aug-20/"
HTTP_AUTHORIZATION
""
HTTPS
"on"
SSL_TLS_SNI
"sageexecutivegroup.com"
HTTP2
"on"
H2PUSH
"off"
H2_PUSH
"off"
H2_PUSHED
""
H2_PUSHED_ON
""
H2_STREAM_ID
"5"
H2_STREAM_TAG
"956665-651-5"
SERVER_SIGNATURE
""
SERVER_NAME
"sageexecutivegroup.com"
SERVER_ADDR
"50.87.139.228"
SERVER_PORT
"443"
REMOTE_ADDR
"216.73.216.181"
DOCUMENT_ROOT
"/home3/sageexec/public_html"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home3/sageexec/public_html"
SERVER_ADMIN
"webmaster@sageexecutivegroup.com"
SCRIPT_FILENAME
"/home3/sageexec/public_html/index.php"
REMOTE_PORT
"48256"
REDIRECT_URL
"/event/la-chargers-game-aug-20/"
SERVER_PROTOCOL
"HTTP/2.0"
REQUEST_METHOD
"GET"
QUERY_STRING
""
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1772772873.2649
REQUEST_TIME
1772772873
argv
[]
argc
0
empty
0. Whoops\Handler\PrettyPageHandler