TypeError
count(): Argument #1 ($value) must be of type Countable|array, null given TypeError thrown with message "count(): Argument #1 ($value) must be of type Countable|array, null given" Stacktrace: #7 TypeError in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/parts/singles/single-event.php:52 #6 require in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php:33 #5 walt_template_part in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php:57 #4 get_custom_part in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php:130 #3 get_single_part in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/single.php:11 #2 include in /home/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php:106 #1 require_once in /home/eyth6418/public_html/prod/paltini/wp-blog-header.php:19 #0 require in /home/eyth6418/public_html/prod/paltini/index.php:17
Stack frames (8)
7
TypeError
/parts/singles/single-event.php52
6
require
/app/theme/theme_parts.php33
5
walt_template_part
/app/theme/theme_parts.php57
4
get_custom_part
/app/theme/theme_parts.php130
3
get_single_part
/single.php11
2
include
/home/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php106
1
require_once
/home/eyth6418/public_html/prod/paltini/wp-blog-header.php19
0
require
/home/eyth6418/public_html/prod/paltini/index.php17
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/parts/singles/single-event.php
if ($related['display']) {

    $posts_per_page = $related['posts_per_page'] ? $related['posts_per_page'] : '3';

    if ($related['selection'] === 'auto') {
        global $events;
        $next_events = $events->get_events();
        if ($next_events['events']) {
            $posts_id = array();
            foreach ($next_events['events'] as $event) {
                if ($post->ID != $event->ID) {
                    $posts_id[] = $event->ID;
                }
            }
        }
    } elseif ($related['selection'] === 'manual') {
        $posts_id = $related['selected'];
    }

    if (count($posts_id) == 1) {
        $column_class = 'col-6_xs-12';
        $display_alone = true;
    } else {
        $column_class = 'col-4_md-6_xs-12';
        $display_alone = false;
    }
}

?>


<!-- Breadcrumbs -->

<?php if (function_exists('yoast_breadcrumb')) {
    yoast_breadcrumb('<div class="wrapper-default"><p id="breadcrumbs" class="as_h6">', '</p></div>');
} ?>

<!-- Hero -->

<?= !$thumb_id ? '<div class="wrapper-default">' : '<div class="wrapper-full-page">' ?>
Arguments
  1. "count(): Argument #1 ($value) must be of type Countable|array, null given"
    
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
                $cache_args[$key] = $value;
            } else if (is_object($value) && method_exists($value, 'get_id')) {
                $cache_args[$key] = call_user_method('get_id', $value);
            }
        }
        if (($cache = wp_cache_get($file, serialize($cache_args))) !== false) {
            if (!empty($template_args['return']))
                return $cache;
            echo $cache;
            return;
        }
    }
    $file_handle = $file;
    do_action('start_operation', 'hm_template_part::' . $file_handle);
    if (file_exists(get_stylesheet_directory() . '/' . $file . '.php'))
        $file = get_stylesheet_directory() . '/' . $file . '.php';
    elseif (file_exists(get_template_directory() . '/' . $file . '.php'))
        $file = get_template_directory() . '/' . $file . '.php';
    ob_start();
    $return = require($file);
    $data = ob_get_clean();
    do_action('end_operation', 'hm_template_part::' . $file_handle);
    if ($cache_args) {
        wp_cache_set($file, $data, serialize($cache_args), 3600);
    }
    if (!empty($template_args['return']))
        if ($return === false)
            return false;
        else
            return $data;
    echo $data;
}
 
// =============================================================================
//         GET CUSTOM PART
// =============================================================================
function get_custom_part($path_part, $params = [])
{
 
    $path = get_template_directory() . '/parts/';
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
    }
    if (!empty($template_args['return']))
        if ($return === false)
            return false;
        else
            return $data;
    echo $data;
}
 
// =============================================================================
//         GET CUSTOM PART
// =============================================================================
function get_custom_part($path_part, $params = [])
{
 
    $path = get_template_directory() . '/parts/';
    $path .= $path_part;
 
    if (file_exists($path)) {
        $template = walt_template_part($path, [
            'params' => $params,
            'return' => true
        ]);
        return $template;
    }
 
    return false;
}
 
 
 
// =============================================================================
//         CUSTOM PART COMPONENT CALL
// =============================================================================
 
function get_component_part($component, $params = [])
{
 
    $path = 'components/' . $component . '.php';
 
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
// =============================================================================
 
function get_archive_part($post_type, $params = [])
{
 
    $path = 'archives/archive-' . $post_type . '.php';
 
    return get_custom_part($path, $params);
}
 
// =============================================================================
//         CUSTOM SINGLE PART
// =============================================================================
 
function get_single_part($post_type, $params = [])
{
 
    $path = 'singles/single-' . $post_type . '.php';
 
    return get_custom_part($path, $params);
}
 
// =============================================================================
//         CUSTOM PART BLOCK CALL
// =============================================================================
 
 
/**
 * get_block_part
 *
 * @param  mixed $block
 * @param  mixed $params
 * @return void
 */
 
function get_block_part($block, $params = [])
{
 
    $path = 'blocks/' . $block . '.php';
 
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/single.php
<?php get_header(); ?>
 
<?php
 
global $post;
 
?>
 
<div id="container_page" class="single-<?= $post->post_type ?>-container">
 
    <?php echo get_single_part($post->post_type); ?>
 
</div>
 
<?php get_footer(); ?>
 
/home/eyth6418/public_html/prod/paltini/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. "/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/single.php"
    
/home/eyth6418/public_html/prod/paltini/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. "/home/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php"
    
/home/eyth6418/public_html/prod/paltini/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. "/home/eyth6418/public_html/prod/paltini/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/event/murmures-des-vagues-exposition-estivale-exposition-annecy/"
PATH
"/usr/local/bin:/usr/bin:/bin"
TEMP
"/tmp"
TMP
"/tmp"
TMPDIR
"/tmp"
PWD
"/"
LSCAPI_CRIU_SYNC_FD
"7"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
CONTENT_LENGTH
"0"
HTTP_HOST
"www.galerie-platini.com"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_X_COUNTRY_CODE
"US"
HTTP_X_AUTONOMOUS_SYSTEM
"14618"
HTTP_X_REAL_IP
"3.236.86.184"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_SSL
"yes"
HTTP_X_HTTPS
"1"
REDIRECT_UNIQUE_ID
"Zwd_gJ0nywPmn8ou5Cz2pQAAAZI"
REDIRECT_SCRIPT_URL
"/event/murmures-des-vagues-exposition-estivale-exposition-annecy/"
REDIRECT_SCRIPT_URI
"https://www.galerie-platini.com/event/murmures-des-vagues-exposition-estivale-exposition-annecy/"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
REDIRECT_STATUS
"200"
UNIQUE_ID
"Zwd_gJ0nywPmn8ou5Cz2pQAAAZI"
SCRIPT_URL
"/event/murmures-des-vagues-exposition-estivale-exposition-annecy/"
SCRIPT_URI
"https://www.galerie-platini.com/event/murmures-des-vagues-exposition-estivale-exposition-annecy/"
HTTP_AUTHORIZATION
""
HTTPS
"on"
SERVER_SIGNATURE
""
SERVER_NAME
"www.galerie-platini.com"
SERVER_ADDR
"109.234.165.231"
SERVER_PORT
"443"
REMOTE_ADDR
"3.236.86.184"
DOCUMENT_ROOT
"/home/eyth6418/public_html/prod/paltini"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/eyth6418/public_html/prod/paltini"
SERVER_ADMIN
"webmaster@galerie-platinicom.eyth6418.odns.fr"
SCRIPT_FILENAME
"/home/eyth6418/public_html/prod/paltini/index.php"
REMOTE_PORT
"59442"
REDIRECT_URL
"/event/murmures-des-vagues-exposition-estivale-exposition-annecy/"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1728544640.6367
REQUEST_TIME
1728544640
empty
0. Whoops\Handler\PrettyPageHandler