NL | EN |
Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_WARNING)
Attempt to read property "label" on null Whoops\Exception\ErrorException thrown with message "Attempt to read property "label" on null" Stacktrace: #4 Whoops\Exception\ErrorException in /www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php:5 #3 Whoops\Run:handleError in /www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php:5 #2 include in /www/vanhessennl_898/public/wp-includes/template-loader.php:106 #1 require_once in /www/vanhessennl_898/public/wp-blog-header.php:19 #0 require in /www/vanhessennl_898/public/index.php:17
4
Whoops\Exception\ErrorException
/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php5
3
Whoops\Run handleError
/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php5
2
include
/www/vanhessennl_898/public/wp-includes/template-loader.php106
1
require_once
/www/vanhessennl_898/public/wp-blog-header.php19
0
require
/www/vanhessennl_898/public/index.php17
/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php
<?php get_header(); ?>
<?php
    $post_type          = get_post_type();
    $post_type_ojb      = get_post_type_object( $post_type );
    $overview_title     = get_field( 'overview_title', 'page_' . $post_type) ? : $post_type_ojb->label;
    $overview_sub_title = get_field( 'overview_sub_title', 'page_' . $post_type );
    $filter_label       = get_field( 'filter_label', 'page_' . $post_type );
    $count_posts        = wp_count_posts( $post_type );
    $header_class       = ($count_posts->publish > 0) ? 'with-image' : 'no-image';
    
    $title_archive    = get_field( 'title_archive', 'option' );
    //$subtitle_archive = get_field( 'subtitle_archive', 'option' );
?>
<div class="cpt-header-box <?php echo $header_class; ?>">
    <div class="saffullwidthwbody safpadding">
        <div class="safblogtitle" style="width:50%; float:left;">
             <h1 class="cpt-title"><?php echo esc_html( $title_archive ); ?></h1>
    </div>
    <div class="safblogfilter" style="float:right;">
            <?php 
                $args = array(
                    'post_type'    => $post_type,
                    'filter_label' => $filter_label
                );
            ?>
            <?php get_template_part( 'template-parts/filters', '', $args ); ?>
        </div>
    </div>
</div>
<?php $post_type = get_post_type(); ?>
    <main id="main" class="main main-archive">
        <?php if ( have_posts() ) : ?>
            <div class="posts-list-wrap sec-margin-blocks">
                <div class="posts-list flex-box-parent">
                    <?php while ( have_posts() ) : the_post(); ?>
                        <?php
                            $loop_args = array( 'cat_blog' => $_GET['cat_blog'] ?? '' );
                        ?>
                        <?php get_template_part( 'template-parts/posts-loop', '', $loop_args ); ?>
                    <?php endwhile; ?>
Arguments
  1. "Attempt to read property "label" on null"
    
/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php
<?php get_header(); ?>
<?php
    $post_type          = get_post_type();
    $post_type_ojb      = get_post_type_object( $post_type );
    $overview_title     = get_field( 'overview_title', 'page_' . $post_type) ? : $post_type_ojb->label;
    $overview_sub_title = get_field( 'overview_sub_title', 'page_' . $post_type );
    $filter_label       = get_field( 'filter_label', 'page_' . $post_type );
    $count_posts        = wp_count_posts( $post_type );
    $header_class       = ($count_posts->publish > 0) ? 'with-image' : 'no-image';
    
    $title_archive    = get_field( 'title_archive', 'option' );
    //$subtitle_archive = get_field( 'subtitle_archive', 'option' );
?>
<div class="cpt-header-box <?php echo $header_class; ?>">
    <div class="saffullwidthwbody safpadding">
        <div class="safblogtitle" style="width:50%; float:left;">
             <h1 class="cpt-title"><?php echo esc_html( $title_archive ); ?></h1>
    </div>
    <div class="safblogfilter" style="float:right;">
            <?php 
                $args = array(
                    'post_type'    => $post_type,
                    'filter_label' => $filter_label
                );
            ?>
            <?php get_template_part( 'template-parts/filters', '', $args ); ?>
        </div>
    </div>
</div>
<?php $post_type = get_post_type(); ?>
    <main id="main" class="main main-archive">
        <?php if ( have_posts() ) : ?>
            <div class="posts-list-wrap sec-margin-blocks">
                <div class="posts-list flex-box-parent">
                    <?php while ( have_posts() ) : the_post(); ?>
                        <?php
                            $loop_args = array( 'cat_blog' => $_GET['cat_blog'] ?? '' );
                        ?>
                        <?php get_template_part( 'template-parts/posts-loop', '', $loop_args ); ?>
                    <?php endwhile; ?>
Arguments
  1. 2
    
  2. "Attempt to read property "label" on null"
    
  3. "/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php"
    
  4. 5
    
/www/vanhessennl_898/public/wp-includes/template-loader.php
            }
 
            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 ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php"
    
/www/vanhessennl_898/public/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. "/www/vanhessennl_898/public/wp-includes/template-loader.php"
    
/www/vanhessennl_898/public/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. "/www/vanhessennl_898/public/wp-blog-header.php"
    

Environment & details:

Key Value
query_vars
array:1 [
  "post_type" => "blog"
]
query_string
"post_type=blog"
request
"blog"
matched_rule
"blog/?$"
matched_query
"post_type=blog"
did_permalink
true
Key Value
query
array:1 [
  "post_type" => "blog"
]
query_vars
array:8 [
  "post_type" => "blog"
  "cache_results" => true
  "update_post_term_cache" => true
  "lazy_load_term_meta" => true
  "update_post_meta_cache" => true
  "posts_per_page" => 10
  "comments_per_page" => "50"
  "order" => "DESC"
]
tax_query
WP_Tax_Query {#3070}
meta_query
WP_Meta_Query {#3068}
queried_object
WP_Post_Type {#2946}
request
"""
SELECT SQL_CALC_FOUND_ROWS  wp_va_posts.ID\n
\t\t\t\t\t FROM wp_va_posts \n
\t\t\t\t\t WHERE 1=1  AND ((wp_va_posts.post_type = 'blog' AND (wp_va_posts.post_status = 'publish' OR wp_va_posts.post_status = 'acf-disabled')))\n
\t\t\t\t\t \n
\t\t\t\t\t ORDER BY wp_va_posts.menu_order, wp_va_posts.post_date DESC\n
\t\t\t\t\t LIMIT 0, 10
"""
current_post
-1
before_loop
true
current_comment
-1
is_archive
true
is_post_type_archive
true
empty
empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"nginx/1.25.5"
REQUEST_URI
"/blog/"
MAGICK_TEMPORARY_PATH
"/www/vanhessennl_898/tmp"
USER
"vanhessennl"
HOME
"/www/vanhessennl_898"
HTTP_X_KINSTA_EDGE_LB
"KCW"
HTTP_X_KINSTA_EDGE_INCOMINGIP
"89.246.241.14"
HTTP_KI_REQUEST_METAL
"62"
HTTP_KI_REQUEST_COLO
"67"
HTTP_CF_DEVICE_TYPE
"desktop"
HTTP_CF_CONNECTING_IP
"89.246.241.14"
HTTP_USER_AGENT
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_LANGUAGE
"de-at"
HTTP_CDN_LOOP
"cloudflare; subreqs=1"
HTTP_CF_EW_VIA
"15"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_RAY
"8900f9a7813c4541-AMS"
HTTP_X_FORWARDED_FOR
"89.246.241.14"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CF_IPCOUNTRY
"DE"
HTTP_CF_WORKER
"kinsta.cloud"
SCRIPT_FILENAME
"/www/vanhessennl_898/public/index.php"
REDIRECT_STATUS
"200"
WP_ENVIRONMENT_TYPE
"production"
KINSTA_CACHE_ZONE
"KINSTAWP"
SERVER_NAME
"www.vanhessen.nl"
SERVER_PORT
"443"
SERVER_ADDR
"10.0.6.117"
REMOTE_PORT
""
REMOTE_ADDR
"89.246.241.14"
GATEWAY_INTERFACE
"CGI/1.1"
HTTP_HOST
"www.vanhessen.nl"
HTTPS
"on"
SERVER_PROTOCOL
"HTTP/2.0"
DOCUMENT_ROOT
"/www/vanhessennl_898/public"
DOCUMENT_URI
"/index.php"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1717766800.6226
REQUEST_TIME
1717766800
empty
0. Whoops\Handler\PrettyPageHandler