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 /home/vofvandr/domains/vdsf.nl/public_html/content/themes/vdsf/partials/block-personal-quote.php:12 #7 Whoops\Run:handleError in /home/vofvandr/domains/vdsf.nl/public_html/content/themes/vdsf/partials/block-personal-quote.php:12 #6 require in /home/vofvandr/domains/vdsf.nl/public_html/wp/wp-includes/template.php:690 #5 load_template in /home/vofvandr/domains/vdsf.nl/public_html/wp/wp-includes/template.php:647 #4 locate_template in /home/vofvandr/domains/vdsf.nl/public_html/wp/wp-includes/general-template.php:167 #3 get_template_part in /home/vofvandr/domains/vdsf.nl/public_html/content/themes/vdsf/single-grants.php:33 #2 include in /home/vofvandr/domains/vdsf.nl/public_html/wp/wp-includes/template-loader.php:74 #1 require_once in /home/vofvandr/domains/vdsf.nl/public_html/wp/wp-blog-header.php:19 #0 require in /home/vofvandr/domains/vdsf.nl/public_html/index.php:8
Stack frames (9)
8
Whoops
\
Exception
\
ErrorException
/
content
/
themes
/
vdsf
/
partials
/
block-personal-quote.php
12
7
Whoops
\
Run
handleError
/
content
/
themes
/
vdsf
/
partials
/
block-personal-quote.php
12
6
require
/
wp
/
wp-includes
/
template.php
690
5
load_template
/
wp
/
wp-includes
/
template.php
647
4
locate_template
/
wp
/
wp-includes
/
general-template.php
167
3
get_template_part
/
content
/
themes
/
vdsf
/
single-grants.php
33
2
include
/
wp
/
wp-includes
/
template-loader.php
74
1
require_once
/
wp
/
wp-blog-header.php
19
0
require
/
index.php
8
/
home
/
vofvandr
/
domains
/
vdsf.nl
/
public_html
/
content
/
themes
/
vdsf
/
partials
/
block-personal-quote.php
<?php
$person_id = null;
 
if(is_singular('grants')) {
    $terms = get_the_terms(get_the_ID(), 'grants_taxonomy');
 
    $specialties_loop = new WP_Query(array(
        'post_type' => 'specialties'
    ));
 
    while($specialties_loop->have_posts()): $specialties_loop->the_post();
        if($post->post_name === $terms[0]->slug) {
            if(empty(get_field('person'))) {
                return;
            }
            $person_id = get_field('person')[0];
            $phone = get_field('phone_number', $person_id);
            $email = get_field('e_mailaddress', $person_id);
            $linkedin = get_field('linkedin', $person_id);
        }
    endwhile;
    wp_reset_postdata();
 
} else {
    if(empty(get_field('person'))) {
        return;
    }
    $person_id = get_field('person')[0];
    $phone = get_field('phone_number', $person_id);
    $email = get_field('e_mailaddress', $person_id);
    $linkedin = get_field('linkedin', $person_id);
}
 
if($person_id !== null):
 
?>
 
    <section class="person-quote">
        <div class="container">
            <div class="column">
/
home
/
vofvandr
/
domains
/
vdsf.nl
/
public_html
/
content
/
themes
/
vdsf
/
partials
/
block-personal-quote.php
<?php
$person_id = null;
 
if(is_singular('grants')) {
    $terms = get_the_terms(get_the_ID(), 'grants_taxonomy');
 
    $specialties_loop = new WP_Query(array(
        'post_type' => 'specialties'
    ));
 
    while($specialties_loop->have_posts()): $specialties_loop->the_post();
        if($post->post_name === $terms[0]->slug) {
            if(empty(get_field('person'))) {
                return;
            }
            $person_id = get_field('person')[0];
            $phone = get_field('phone_number', $person_id);
            $email = get_field('e_mailaddress', $person_id);
            $linkedin = get_field('linkedin', $person_id);
        }
    endwhile;
    wp_reset_postdata();
 
} else {
    if(empty(get_field('person'))) {
        return;
    }
    $person_id = get_field('person')[0];
    $phone = get_field('phone_number', $person_id);
    $email = get_field('e_mailaddress', $person_id);
    $linkedin = get_field('linkedin', $person_id);
}
 
if($person_id !== null):
 
?>
 
    <section class="person-quote">
        <div class="container">
            <div class="column">
/
home
/
vofvandr
/
domains
/
vdsf.nl
/
public_html
/
wp
/
wp-includes
/
template.php
 * @global int        $user_ID
 *
 * @param string $_template_file Path to template file.
 * @param bool   $require_once   Whether to require_once or require. Default true.
 */
function load_template( $_template_file, $require_once = true ) {
    global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
 
    if ( is_array( $wp_query->query_vars ) ) {
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    if ( $require_once ) {
        require_once( $_template_file );
    } else {
        require( $_template_file );
    }
}
 
/
home
/
vofvandr
/
domains
/
vdsf.nl
/
public_html
/
wp
/
wp-includes
/
template.php
 */
function locate_template($template_names, $load = false, $require_once = true ) {
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( !$template_name )
            continue;
        if ( file_exists(STYLESHEETPATH . '/' . $template_name)) {
            $located = STYLESHEETPATH . '/' . $template_name;
            break;
        } elseif ( file_exists(TEMPLATEPATH . '/' . $template_name) ) {
            $located = TEMPLATEPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
            break;
        }
    }
 
    if ( $load && '' != $located )
        load_template( $located, $require_once );
 
    return $located;
}
 
/**
 * Require the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 *
 * @global array      $posts
 * @global WP_Post    $post
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query
 * @global WP_Rewrite $wp_rewrite
 * @global wpdb       $wpdb
 * @global string     $wp_version
/
home
/
vofvandr
/
domains
/
vdsf.nl
/
public_html
/
wp
/
wp-includes
/
general-template.php
     * Fires before the specified template part file is loaded.
     *
     * The dynamic portion of the hook name, `$slug`, refers to the slug name
     * for the generic template part.
     *
     * @since 3.0.0
     *
     * @param string      $slug The slug name for the generic template.
     * @param string|null $name The name of the specialized template.
     */
    do_action( "get_template_part_{$slug}", $slug, $name );
 
    $templates = array();
    $name = (string) $name;
    if ( '' !== $name )
        $templates[] = "{$slug}-{$name}.php";
 
    $templates[] = "{$slug}.php";
 
    locate_template($templates, true, false);
}
 
/**
 * Display search form.
 *
 * Will first attempt to locate the searchform.php file in either the child or
 * the parent, then load it. If it doesn't exist, then the default search form
 * will be displayed. The default search form is HTML, which will be displayed.
 * There is a filter applied to the search form HTML in order to edit or replace
 * it. The filter is {@see 'get_search_form'}.
 *
 * This function is primarily used by themes which want to hardcode the search
 * form into the sidebar and also by the search widget in WordPress.
 *
 * There is also an action that is called whenever the function is run called,
 * {@see 'pre_get_search_form'}. This can be useful for outputting JavaScript that the
 * search relies on or various formatting that applies to the beginning of the
 * search. To give a few examples of what it can be used for.
 *
 * @since 2.7.0
/
home
/
vofvandr
/
domains
/
vdsf.nl
/
public_html
/
content
/
themes
/
vdsf
/
single-grants.php
</section>
 
<?php get_template_part('partials/block', 'intro'); ?>
<section class="news-post">
    <div class="container">
        <div class="column">
            <?php the_field('content_column_left'); ?>
            <?php if(!empty(get_field('project_featured_image'))): ?>
                <img src="<?php the_image('project_featured_image'); ?>" class="grant-detail-image" alt="foto van subsidie: <?php the_title(); ?>">
            <?php endif; ?>
        </div>
        <div class="column">
            <?php the_field('content_column_right'); ?>
 
        </div>
    </div>
</section>
<?php
 
get_template_part('partials/block', 'personal-quote');
get_template_part('partials/block', 'cta');
get_template_part('partials/block', 'related-projects');
get_template_part('partials/block', 'related-news');
get_footer();
 
/
home
/
vofvandr
/
domains
/
vdsf.nl
/
public_html
/
wp
/
wp-includes
/
template-loader.php
    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;
 
/
home
/
vofvandr
/
domains
/
vdsf.nl
/
public_html
/
wp
/
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' );
 
}
 
/
home
/
vofvandr
/
domains
/
vdsf.nl
/
public_html
/
index.php
<?php
 
error_reporting(-1);
ini_set('error_reporting', E_ALL);
 
define('WP_USE_THEMES', true);
 
require('./wp/wp-blog-header.php');
 

Environment & details:

Key Value
version 4.8.1
WP Array ( [public_query_vars] => Array ( [0] => m [1] => p [2] => posts [3] => w [4] => cat [5] => withcomments [6] => withoutcomments [7] => s [8] => search [9] => exact [10] => sentence [11] => calendar [12] => page [13] => paged [14] => more [15] => tb [16] => pb [17] => author [18] => order [19] => orderby [20] => year [21] => monthnum [22] => day [23] => hour [24] => minute [25] => second [26] => name [27] => category_name [28] => tag [29] => feed [30] => author_name [31] => static [32] => pagename [33] => page_id [34] => error [35] => attachment [36] => attachment_id [37] => subpost [38] => subpost_id [39] => preview [40] => robots [41] => taxonomy [42] => term [43] => cpage [44] => post_type [45] => embed [46] => post_format [47] => customer_case [48] => specialties [49] => grants [50] => projects [51] => team [52] => vacancies [53] => grants_taxonomy [54] => sitemap [55] => sitemap_n [56] => xsl [57] => rest_route ) [private_query_vars] => Array ( [0] => offset [1] => posts_per_page [2] => posts_per_archive_page [3] => showposts [4] => nopaging [5] => post_type [6] => post_status [7] => category__in [8] => category__not_in [9] => category__and [10] => tag__in [11] => tag__not_in [12] => tag__and [13] => tag_slug__in [14] => tag_slug__and [15] => tag_id [16] => post_mime_type [17] => perm [18] => comments_per_page [19] => post__in [20] => post__not_in [21] => post_parent [22] => post_parent__in [23] => post_parent__not_in [24] => title [25] => fields ) )
WP_Query Array ( [current_post] => -1 [current_comment] => -1 )
empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache/2
REQUEST_URI /subsidies/efro-oost-nederland/
USER vofvandr
HOME /home/vofvandr
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /subsidies/efro-oost-nederland/
REMOTE_PORT 39476
SCRIPT_FILENAME /home/vofvandr/domains/vdsf.nl/public_html/index.php
SERVER_ADMIN webmaster@vdsf.nl
CONTEXT_DOCUMENT_ROOT /home/vofvandr/domains/vdsf.nl/public_html
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/vofvandr/domains/vdsf.nl/public_html
REMOTE_ADDR 54.224.150.24
SERVER_PORT 80
SERVER_ADDR 5.61.254.183
SERVER_NAME www.vdsf.nl
SERVER_SIGNATURE
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION Keep-Alive
HTTP_HOST www.vdsf.nl
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/)
proxy-nokeepalive 1
W3TC_ENC _gzip
UNIQUE_ID W8UUJYZTFFBtWc3XPn0aGgAAACE
REDIRECT_STATUS 200
REDIRECT_W3TC_ENC _gzip
REDIRECT_UNIQUE_ID W8UUJYZTFFBtWc3XPn0aGgAAACE
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1539642405.9253
REQUEST_TIME 1539642405
empty
0. Whoops\Handler\PrettyPageHandler