Whoops \ Exception \ ErrorException (E_NOTICE)
Trying to get property of non-object Whoops\Exception\ErrorException thrown with message "Trying to get property of non-object" Stacktrace: #8 Whoops\Exception\ErrorException in /var/www/vhosts/welc.ie/welc.ie/wp-content/plugins/polylang-pro/frontend/frontend-filters-links.php:342 #7 Whoops\Run:handleError in /var/www/vhosts/welc.ie/welc.ie/wp-content/plugins/polylang-pro/frontend/frontend-filters-links.php:342 #6 PLL_Frontend_Filters_Links:check_canonical_url in /var/www/vhosts/welc.ie/welc.ie/wp-includes/class-wp-hook.php:286 #5 call_user_func_array in /var/www/vhosts/welc.ie/welc.ie/wp-includes/class-wp-hook.php:286 #4 WP_Hook:apply_filters in /var/www/vhosts/welc.ie/welc.ie/wp-includes/class-wp-hook.php:310 #3 WP_Hook:do_action in /var/www/vhosts/welc.ie/welc.ie/wp-includes/plugin.php:453 #2 do_action in /var/www/vhosts/welc.ie/welc.ie/wp-includes/template-loader.php:12 #1 require_once in /var/www/vhosts/welc.ie/welc.ie/wp-blog-header.php:19 #0 require in /var/www/vhosts/welc.ie/welc.ie/index.php:17
Stack frames (9)
8
Whoops
\
Exception
\
ErrorException
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-content
/
plugins
/
polylang-pro
/
frontend
/
frontend-filters-links.php
342
7
Whoops
\
Run
handleError
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-content
/
plugins
/
polylang-pro
/
frontend
/
frontend-filters-links.php
342
6
PLL_Frontend_Filters_Links
check_canonical_url
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-includes
/
class-wp-hook.php
286
5
call_user_func_array
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-includes
/
class-wp-hook.php
286
4
WP_Hook
apply_filters
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-includes
/
class-wp-hook.php
310
3
WP_Hook
do_action
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-includes
/
plugin.php
453
2
do_action
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-includes
/
template-loader.php
12
1
require_once
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-blog-header.php
19
0
require
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
index.php
17
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-content
/
plugins
/
polylang-pro
/
frontend
/
frontend-filters-links.php
 
        // If the default language code is not hidden and the static front page url contains the page name
        // the customizer lands here and the code below would redirect to the list of posts
        if ( is_customize_preview() ) {
            return;
        }
 
        if ( empty( $requested_url ) ) {
            $requested_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
        }
 
        if ( is_single() || is_page() ) {
            if ( isset( $post->ID ) && $this->model->is_translated_post_type( $post->post_type ) ) {
                $language = $this->model->post->get_language( (int) $post->ID );
            }
        }
 
        elseif ( is_category() || is_tag() || is_tax() ) {
            $obj = $wp_query->get_queried_object();
            if ( $this->model->is_translated_taxonomy( $obj->taxonomy ) ) {
                $language = $this->model->term->get_language( (int) $obj->term_id );
            }
        }
 
        elseif ( $wp_query->is_posts_page ) {
            $obj = $wp_query->get_queried_object();
            $language = $this->model->post->get_language( (int) $obj->ID );
        }
 
        elseif ( is_404() && ! empty( $wp_query->query['page_id'] ) && $id = get_query_var( 'page_id' ) ) {
            // Special case for page shortlinks when using subdomains or multiple domains
            // Needed because redirect_canonical doesn't accept to change the domain name
            $language = $this->model->post->get_language( (int) $id );
        }
 
        if ( empty( $language ) ) {
            $language = $this->curlang;
            $redirect_url = $requested_url;
        } else {
            // First get the canonical url evaluated by WP
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-content
/
plugins
/
polylang-pro
/
frontend
/
frontend-filters-links.php
 
        // If the default language code is not hidden and the static front page url contains the page name
        // the customizer lands here and the code below would redirect to the list of posts
        if ( is_customize_preview() ) {
            return;
        }
 
        if ( empty( $requested_url ) ) {
            $requested_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
        }
 
        if ( is_single() || is_page() ) {
            if ( isset( $post->ID ) && $this->model->is_translated_post_type( $post->post_type ) ) {
                $language = $this->model->post->get_language( (int) $post->ID );
            }
        }
 
        elseif ( is_category() || is_tag() || is_tax() ) {
            $obj = $wp_query->get_queried_object();
            if ( $this->model->is_translated_taxonomy( $obj->taxonomy ) ) {
                $language = $this->model->term->get_language( (int) $obj->term_id );
            }
        }
 
        elseif ( $wp_query->is_posts_page ) {
            $obj = $wp_query->get_queried_object();
            $language = $this->model->post->get_language( (int) $obj->ID );
        }
 
        elseif ( is_404() && ! empty( $wp_query->query['page_id'] ) && $id = get_query_var( 'page_id' ) ) {
            // Special case for page shortlinks when using subdomains or multiple domains
            // Needed because redirect_canonical doesn't accept to change the domain name
            $language = $this->model->post->get_language( (int) $id );
        }
 
        if ( empty( $language ) ) {
            $language = $this->curlang;
            $redirect_url = $requested_url;
        } else {
            // First get the canonical url evaluated by WP
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
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.
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
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.
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-includes
/
class-wp-hook.php
        } 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.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-includes
/
plugin.php
    }
 
    if ( !isset($wp_filter[$tag]) ) {
        if ( isset($wp_filter['all']) )
            array_pop($wp_current_filter);
        return;
    }
 
    if ( !isset($wp_filter['all']) )
        $wp_current_filter[] = $tag;
 
    $args = array();
    if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
        $args[] =& $arg[0];
    else
        $args[] = $arg;
    for ( $a = 2, $num = func_num_args(); $a < $num; $a++ )
        $args[] = func_get_arg($a);
 
    $wp_filter[ $tag ]->do_action( $args );
 
    array_pop($wp_current_filter);
}
 
/**
 * Retrieve the number of times an action is fired.
 *
 * @since 2.1.0
 *
 * @global array $wp_actions Increments the amount of times action was triggered.
 *
 * @param string $tag The name of the action hook.
 * @return int The number of times action hook $tag is fired.
 */
function did_action($tag) {
    global $wp_actions;
 
    if ( ! isset( $wp_actions[ $tag ] ) )
        return 0;
 
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
wp-includes
/
template-loader.php
<?php
/**
 * Loads the correct template based on the visitor's url
 * @package WordPress
 */
if ( defined('WP_USE_THEMES') && WP_USE_THEMES )
    /**
     * Fires before determining which template to load.
     *
     * @since 1.5.0
     */
    do_action( 'template_redirect' );
 
/**
 * Filters whether to allow 'HEAD' requests to generate content.
 *
 * Provides a significant performance bump by exiting before the page
 * content loads for 'HEAD' requests. See #14348.
 *
 * @since 3.5.0
 *
 * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
 */
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) )
    exit();
 
// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) :
    /**
     * Fired when the template loader determines a robots.txt request.
     *
     * @since 2.1.0
     */
    do_action( 'do_robots' );
    return;
elseif ( is_feed() ) :
    do_feed();
    return;
elseif ( is_trackback() ) :
    include( ABSPATH . 'wp-trackback.php' );
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
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' );
 
}
 
/
var
/
www
/
vhosts
/
welc.ie
/
welc.ie
/
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' );
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /course/cursos-junior/
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PP_CUSTOM_PHP_INI /var/www/vhosts/system/welc.ie/etc/php.ini
PP_CUSTOM_PHP_CGI_INDEX plesk-php56-fastcgi
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /course/cursos-junior/
REMOTE_PORT 45676
SCRIPT_FILENAME /var/www/vhosts/welc.ie/welc.ie/index.php
SERVER_ADMIN root@localhost
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/welc.ie/welc.ie
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /var/www/vhosts/welc.ie/welc.ie
REMOTE_ADDR 52.3.228.47
SERVER_PORT 80
SERVER_ADDR 78.153.205.201
SERVER_NAME welc.ie
SERVER_SIGNATURE
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Thu, 20 Feb 2020 18:36:10 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_CONNECTION close
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_X_FORWARDED_FOR 52.3.228.47
HTTP_HOST welc.ie
W3TC_ENC _gzip
UNIQUE_ID X2Ts5R-A1nr79Gw9L8R2kwAAANE
REDIRECT_STATUS 200
REDIRECT_W3TC_ENC _gzip
REDIRECT_UNIQUE_ID X2Ts5R-A1nr79Gw9L8R2kwAAANE
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1600449765.385
REQUEST_TIME 1600449765
empty
0. Whoops\Handler\PrettyPageHandler