Whoops \ Exception \ ErrorException (E_WARNING)
Creating default object from empty value Whoops\Exception\ErrorException thrown with message "Creating default object from empty value" Stacktrace: #9 Whoops\Exception\ErrorException in /home/argencesxs/www/wp-content/plugins/events-manager/classes/em-taxonomy-frontend.php:50 #8 Whoops\Run:handleError in /home/argencesxs/www/wp-content/plugins/events-manager/classes/em-taxonomy-frontend.php:50 #7 EM_Taxonomy_Frontend:template in /home/argencesxs/www/wp-content/plugins/events-manager/classes/em-categories-frontend.php:20 #6 EM_Categories_Frontend:template in /home/argencesxs/www/wp-includes/class-wp-hook.php:289 #5 WP_Hook:apply_filters in /home/argencesxs/www/wp-includes/plugin.php:206 #4 apply_filters in /home/argencesxs/www/wp-includes/template.php:63 #3 get_query_template in /home/argencesxs/www/wp-includes/template.php:324 #2 get_taxonomy_template in /home/argencesxs/www/wp-includes/template-loader.php:81 #1 require_once in /home/argencesxs/www/wp-blog-header.php:19 #0 require in /home/argencesxs/www/index.php:17
Stack frames (10)
9
Whoops
\
Exception
\
ErrorException
/
events-manager
/
classes
/
em-taxonomy-frontend.php
50
8
Whoops
\
Run
handleError
/
events-manager
/
classes
/
em-taxonomy-frontend.php
50
7
EM_Taxonomy_Frontend
template
/
events-manager
/
classes
/
em-categories-frontend.php
20
6
EM_Categories_Frontend
template
/
home
/
argencesxs
/
www
/
wp-includes
/
class-wp-hook.php
289
5
WP_Hook
apply_filters
/
home
/
argencesxs
/
www
/
wp-includes
/
plugin.php
206
4
apply_filters
/
home
/
argencesxs
/
www
/
wp-includes
/
template.php
63
3
get_query_template
/
home
/
argencesxs
/
www
/
wp-includes
/
template.php
324
2
get_taxonomy_template
/
home
/
argencesxs
/
www
/
wp-includes
/
template-loader.php
81
1
require_once
/
home
/
argencesxs
/
www
/
wp-blog-header.php
19
0
require
/
home
/
argencesxs
/
www
/
index.php
17
/
home
/
argencesxs
/
www
/
wp-content
/
plugins
/
events-manager
/
classes
/
em-taxonomy-frontend.php
            add_filter('parse_query', array(self::$this_class,'parse_query'));
        }
    }
    
    /**
     * Overrides archive pages e.g. locations, events, event categories, event tags based on user settings
     * @param string $template
     * @return string
     */
    public static function template($template = ''){
        global $wp_query, $wp_the_query, $em_the_query, $post;
        if( is_tax(self::$taxonomy_name) && !locate_template('taxonomy-'.self::$taxonomy_name.'.php') && get_option('dbem_cp_'. self::$option_name_plural .'_formats', true) ){
            $em_the_query = $wp_the_query; //use this for situations where other plugins need to access 'original' query data, which you can switch back/forth.
            $EM_Taxonomy = $GLOBALS[self::$tax_class] = EM_Taxonomy_Term::get($wp_query->queried_object->term_id, self::$tax_class);
            if( self::get_page_id() ){
                //less chance for things to go wrong with themes etc. so just reset the WP_Query to think it's a page rather than taxonomy
                $wp_query = new WP_Query(array('page_id'=> self::get_page_id()));
                $wp_query->queried_object = $wp_query->post;
                $wp_query->queried_object_id = $wp_query->post->ID;
                $wp_query->post->post_title = $wp_query->posts[0]->post_title = $wp_query->queried_object->post_title = $EM_Taxonomy->output(get_option('dbem_'. self::$option_name .'_page_title_format'));
                if( !function_exists('yoast_breadcrumb') ){ //not needed by WP SEO Breadcrumbs, we deal with it in a filter further down - wpseo_breadcrumb_links
                    $wp_query->post->post_parent = $wp_query->posts[0]->post_parent = $wp_query->queried_object->post_parent = self::get_page_id();
                }
                $post = $wp_query->post;
                $wp_the_query = $wp_query; //we won't do this to the else section because we should deprecate it due to its instability
            }else{
                //we don't have a categories page, so we create a fake page
                $wp_query->posts = array();
                $wp_query->posts[0] = new stdClass();
                $wp_query->posts[0]->post_title = $wp_query->queried_object->post_title = $EM_Taxonomy->output(get_option('dbem_'. self::$option_name .'_page_title_format'));
                $post_array = array('ID', 'post_author', 'post_date','post_date_gmt','post_content','post_excerpt','post_status','comment_status','ping_status','post_password','post_name','to_ping','pinged','post_modified','post_modified_gmt','post_content_filtered','post_parent','guid','menu_order','post_type','post_mime_type','comment_count','filter');
                foreach($post_array as $post_array_item){
                    $wp_query->posts[0]->$post_array_item = '';
                }
                $wp_query->post = $wp_query->posts[0];
                $wp_query->post_count = 1;
                $wp_query->found_posts = 1;
                $wp_query->max_num_pages = 1;
                //tweak flags for determining page type
                $wp_query->is_tax = 0;
/
home
/
argencesxs
/
www
/
wp-content
/
plugins
/
events-manager
/
classes
/
em-taxonomy-frontend.php
            add_filter('parse_query', array(self::$this_class,'parse_query'));
        }
    }
    
    /**
     * Overrides archive pages e.g. locations, events, event categories, event tags based on user settings
     * @param string $template
     * @return string
     */
    public static function template($template = ''){
        global $wp_query, $wp_the_query, $em_the_query, $post;
        if( is_tax(self::$taxonomy_name) && !locate_template('taxonomy-'.self::$taxonomy_name.'.php') && get_option('dbem_cp_'. self::$option_name_plural .'_formats', true) ){
            $em_the_query = $wp_the_query; //use this for situations where other plugins need to access 'original' query data, which you can switch back/forth.
            $EM_Taxonomy = $GLOBALS[self::$tax_class] = EM_Taxonomy_Term::get($wp_query->queried_object->term_id, self::$tax_class);
            if( self::get_page_id() ){
                //less chance for things to go wrong with themes etc. so just reset the WP_Query to think it's a page rather than taxonomy
                $wp_query = new WP_Query(array('page_id'=> self::get_page_id()));
                $wp_query->queried_object = $wp_query->post;
                $wp_query->queried_object_id = $wp_query->post->ID;
                $wp_query->post->post_title = $wp_query->posts[0]->post_title = $wp_query->queried_object->post_title = $EM_Taxonomy->output(get_option('dbem_'. self::$option_name .'_page_title_format'));
                if( !function_exists('yoast_breadcrumb') ){ //not needed by WP SEO Breadcrumbs, we deal with it in a filter further down - wpseo_breadcrumb_links
                    $wp_query->post->post_parent = $wp_query->posts[0]->post_parent = $wp_query->queried_object->post_parent = self::get_page_id();
                }
                $post = $wp_query->post;
                $wp_the_query = $wp_query; //we won't do this to the else section because we should deprecate it due to its instability
            }else{
                //we don't have a categories page, so we create a fake page
                $wp_query->posts = array();
                $wp_query->posts[0] = new stdClass();
                $wp_query->posts[0]->post_title = $wp_query->queried_object->post_title = $EM_Taxonomy->output(get_option('dbem_'. self::$option_name .'_page_title_format'));
                $post_array = array('ID', 'post_author', 'post_date','post_date_gmt','post_content','post_excerpt','post_status','comment_status','ping_status','post_password','post_name','to_ping','pinged','post_modified','post_modified_gmt','post_content_filtered','post_parent','guid','menu_order','post_type','post_mime_type','comment_count','filter');
                foreach($post_array as $post_array_item){
                    $wp_query->posts[0]->$post_array_item = '';
                }
                $wp_query->post = $wp_query->posts[0];
                $wp_query->post_count = 1;
                $wp_query->found_posts = 1;
                $wp_query->max_num_pages = 1;
                //tweak flags for determining page type
                $wp_query->is_tax = 0;
/
home
/
argencesxs
/
www
/
wp-content
/
plugins
/
events-manager
/
classes
/
em-categories-frontend.php
<?php
class EM_Categories_Frontend extends EM_Taxonomy_Frontend {
    
    public static $taxonomy_name = 'event-category'; //converted into a constant value during init()
    public static $this_class = 'EM_Categories_Frontend'; //needed until 5.3 minimum is enforced for late static binding
    public static $tax_class = 'EM_Category';
    public static $option_name = 'category';
    public static $option_name_plural = 'categories';
    
    public static function init(){
        self::$taxonomy_name = EM_TAXONOMY_CATEGORY; //awaiting LST in PHP 5.3
        self::static_binding();
        parent::init();
    }
    
    //These following functions can be removed when PHP 5.3 is minimum and LSB is available
    
    public static function template($template = ''){
        self::static_binding();
        return parent::template($template);
    }
    
    public static function the_content($content){
        self::static_binding();
        return parent::the_content($content);
    }
    
    public static function parse_query( $wp_query ){
        //we do some double-checking here to prevent running self::static_binding() during the self::template() function when WP_Query is called.
        if( !$wp_query->is_main_query() ) return;
        if( $wp_query->is_tax(self::$taxonomy_name) || !empty($wp_query->{'em_'.self::$option_name.'_id'}) ){
            self::static_binding();
            return parent::parse_query( $wp_query );
        }
    }
    
    public static function wpseo_breadcrumb_links( $links ){
        self::static_binding();
        return parent::wpseo_breadcrumb_links( $links );
    }
/
home
/
argencesxs
/
www
/
wp-includes
/
class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $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, (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;
    }
 
    /**
     * 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.
     */
    public function do_action( $args ) {
/
home
/
argencesxs
/
www
/
wp-includes
/
plugin.php
    if ( isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
        _wp_call_all_hook( $args );
    }
 
    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;
    }
 
    // 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;
}
 
/**
 * 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 `$tag` are supplied using an array.
 *
 * @global array $wp_filter         Stores all of the filters and actions.
 * @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.
/
home
/
argencesxs
/
www
/
wp-includes
/
template.php
    $template = locate_template( $templates );
 
    /**
     * Filters the path of the queried template by type.
     *
     * The dynamic portion of the hook name, `$type`, refers to the filename -- minus the file
     * extension and any non-alphanumeric characters delimiting words -- of the file to load.
     * This hook also applies to various types of files loaded as part of the Template Hierarchy.
     *
     * Possible values for `$type` include: 'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date',
     * 'embed', 'home', 'frontpage', 'privacypolicy', 'page', 'paged', 'search', 'single', 'singular', and 'attachment'.
     *
     * @since 1.5.0
     * @since 4.8.0 The `$type` and `$templates` parameters were added.
     *
     * @param string $template  Path to the template. See locate_template().
     * @param string $type      Sanitized filename without extension.
     * @param array  $templates A list of template candidates, in descending order of priority.
     */
    return apply_filters( "{$type}_template", $template, $type, $templates );
}
 
/**
 * Retrieve path of index template in current or parent template.
 *
 * The template hierarchy and template path are filterable via the {@see '$type_template_hierarchy'}
 * and {@see '$type_template'} dynamic hooks, where `$type` is 'index'.
 *
 * @since 3.0.0
 *
 * @see get_query_template()
 *
 * @return string Full path to index template file.
 */
function get_index_template() {
    return get_query_template( 'index' );
}
 
/**
 * Retrieve path of 404 template in current or parent template.
/
home
/
argencesxs
/
www
/
wp-includes
/
template.php
 */
function get_taxonomy_template() {
    $term = get_queried_object();
 
    $templates = array();
 
    if ( ! empty( $term->slug ) ) {
        $taxonomy = $term->taxonomy;
 
        $slug_decoded = urldecode( $term->slug );
        if ( $slug_decoded !== $term->slug ) {
            $templates[] = "taxonomy-$taxonomy-{$slug_decoded}.php";
        }
 
        $templates[] = "taxonomy-$taxonomy-{$term->slug}.php";
        $templates[] = "taxonomy-$taxonomy.php";
    }
    $templates[] = 'taxonomy.php';
 
    return get_query_template( 'taxonomy', $templates );
}
 
/**
 * Retrieve path of date template in current or parent template.
 *
 * The template hierarchy and template path are filterable via the {@see '$type_template_hierarchy'}
 * and {@see '$type_template'} dynamic hooks, where `$type` is 'date'.
 *
 * @since 1.5.0
 *
 * @see get_query_template()
 *
 * @return string Full path to date template file.
 */
function get_date_template() {
    return get_query_template( 'date' );
}
 
/**
 * Retrieve path of home template in current or parent template.
/
home
/
argencesxs
/
www
/
wp-includes
/
template-loader.php
        'is_home'              => 'get_home_template',
        'is_privacy_policy'    => 'get_privacy_policy_template',
        'is_post_type_archive' => 'get_post_type_archive_template',
        'is_tax'               => 'get_taxonomy_template',
        'is_attachment'        => 'get_attachment_template',
        'is_single'            => 'get_single_template',
        'is_page'              => 'get_page_template',
        'is_singular'          => 'get_singular_template',
        'is_category'          => 'get_category_template',
        'is_tag'               => 'get_tag_template',
        'is_author'            => 'get_author_template',
        'is_date'              => 'get_date_template',
        'is_archive'           => 'get_archive_template',
    );
    $template      = false;
 
    // Loop through each of the template conditionals, and find the appropriate template file.
    foreach ( $tag_templates as $tag => $template_getter ) {
        if ( call_user_func( $tag ) ) {
            $template = call_user_func( $template_getter );
        }
 
        if ( $template ) {
            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
     *
/
home
/
argencesxs
/
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';
 
}
 
/
home
/
argencesxs
/
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';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /evenements/categories/culture/
USER argencesxs
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /evenements/categories/culture/
REMOTE_PORT 20776
SCRIPT_FILENAME /home/argencesxs/www/index.php
SERVER_ADMIN postmaster@www.argences-en-aubrac.fr
DOCUMENT_ROOT /home/argencesxs/www
REMOTE_ADDR 3.238.8.102
SERVER_PORT 443
SERVER_ADDR 10.28.20.145
SERVER_NAME www.argences-en-aubrac.fr
SERVER_SIGNATURE
HTTP_REMOTE_IP 3.238.8.102
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Thu, 06 Aug 2020 09:34:11 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_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 3.238.8.102
HTTP_X_PREDICTOR 1
HTTP_HOST www.argences-en-aubrac.fr
ENVIRONMENT production
CFG_CLUSTER cluster028
HTTPS on
SCRIPT_URI https://www.argences-en-aubrac.fr:443/evenements/categories/culture/
SCRIPT_URL /evenements/categories/culture/
GEOIP_LONGITUDE -77.472801
GEOIP_LATITUDE 39.048100
GEOIP_AREA_CODE 703
GEOIP_DMA_CODE 511
GEOIP_CITY Ashburn
GEOIP_REGION VA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID X5FVVHCsi0zRbdkLFoP-QgAAAF8
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1603360084.0265
REQUEST_TIME 1603360084
argv Array ( )
argc 0
Key Value
USER argencesxs
SCRIPT_NAME /index.php
REQUEST_URI /evenements/categories/culture/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /evenements/categories/culture/
REMOTE_PORT 20776
SCRIPT_FILENAME /home/argencesxs/www/index.php
SERVER_ADMIN postmaster@www.argences-en-aubrac.fr
DOCUMENT_ROOT /home/argencesxs/www
REMOTE_ADDR 3.238.8.102
SERVER_PORT 443
SERVER_ADDR 10.28.20.145
SERVER_NAME www.argences-en-aubrac.fr
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_REMOTE_IP 3.238.8.102
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Thu, 06 Aug 2020 09:34:11 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_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 3.238.8.102
HTTP_X_PREDICTOR 1
HTTP_HOST www.argences-en-aubrac.fr
ENVIRONMENT production
CFG_CLUSTER cluster028
HTTPS on
SCRIPT_URI https://www.argences-en-aubrac.fr:443/evenements/categories/culture/
SCRIPT_URL /evenements/categories/culture/
GEOIP_LONGITUDE -77.472801
GEOIP_LATITUDE 39.048100
GEOIP_AREA_CODE 703
GEOIP_DMA_CODE 511
GEOIP_CITY Ashburn
GEOIP_REGION VA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID X5FVVHCsi0zRbdkLFoP-QgAAAF8
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1603360084.0265
REQUEST_TIME 1603360084
argv Array ( )
argc 0
0. Whoops\Handler\PrettyPageHandler