TypeError
count(): Argument #1 ($value) must be of type Countable|array, bool given TypeError thrown with message "count(): Argument #1 ($value) must be of type Countable|array, bool given" Stacktrace: #3 TypeError in /home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-content/themes/ac-wp-theme/single-cffr_offer.php:68 #2 include in /home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-includes/template-loader.php:106 #1 require_once in /home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-blog-header.php:19 #0 require in /home/cnav-rh-prod/cnav-rh-prod/web/current/web/index.php:17
Stack frames (4)
3
TypeError
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-content/themes/ac-wp-theme/single-cffr_offer.php68
2
include
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-includes/template-loader.php106
1
require_once
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-blog-header.php19
0
require
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/index.php17
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-content/themes/ac-wp-theme/single-cffr_offer.php
                            ?>
                        </p>
                        <?php
                    }
 
                    if (count($contrats) >= 1) {
                        ?>
                        <p class="contrat">
                            <span>Contrat : </span>
                            <?php
                                foreach ($contrats as $contrat) {
                                    $contrat_ = $contrat->name;
                                    echo $contrat_;
                                }
                            ?>
                        </p>
                        <?php
                    }
 
                    if (count($lieux) >= 1) {
                        ?>
                        <p class="lieu">
                            <span>Lieu : </span>
                            <?php
                                foreach ($lieux as $lieu) {
                                    $lieu_ = $lieu->name;
                                    echo $lieu_;
                                }
                            ?>
                        </p>
                        <?php
                    }
                ?>
 
                <div class="mission">
                    <?php echo $mission; ?>
                </div>
            </div>
 
        <?php endwhile;  ?>
Arguments
  1. "count(): Argument #1 ($value) must be of type Countable|array, bool given"
    
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/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;
}
 
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/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/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-includes/template-loader.php"
    
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/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/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-blog-header.php"
    

Environment & details:

Key Value
query_vars
array:4 [
  "page" => ""
  "cffr_offer" => "assistant-e-de-direction"
  "post_type" => "cffr_offer"
  "name" => "assistant-e-de-direction"
]
query_string
"cffr_offer=assistant-e-de-direction&post_type=cffr_offer&name=assistant-e-de-direction"
request
"offre/assistant-e-de-direction"
matched_rule
"offre/([^/]+)(?:/([0-9]+))?/?$"
matched_query
"cffr_offer=assistant-e-de-direction&page="
did_permalink
true
Key Value
query
array:4 [
  "page" => ""
  "cffr_offer" => "assistant-e-de-direction"
  "post_type" => "cffr_offer"
  "name" => "assistant-e-de-direction"
]
query_vars
array:10 [
  "cffr_offer" => "assistant-e-de-direction"
  "post_type" => "cffr_offer"
  "name" => "assistant-e-de-direction"
  "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"
]
meta_query
WP_Meta_Query {#12423}
queried_object
WP_Post {#12424}
queried_object_id
140775
request
"""
SELECT   wp_posts.*\n
\t\t\t\t\t FROM wp_posts \n
\t\t\t\t\t WHERE 1=1  AND wp_posts.post_name = 'assistant-e-de-direction' AND wp_posts.post_type = 'cffr_offer'\n
\t\t\t\t\t \n
\t\t\t\t\t ORDER BY wp_posts.post_date DESC\n
\t\t\t\t\t 
"""
post_count
1
in_the_loop
true
current_comment
-1
found_posts
1
is_single
true
is_singular
true
Key Value
ID
140775
post_author
"0"
post_date
"2025-02-10 10:39:20"
post_date_gmt
"2025-02-10 09:39:20"
post_content
""
post_title
"Assistant/e de direction"
post_excerpt
""
post_status
"publish"
comment_status
"closed"
ping_status
"closed"
post_password
""
post_name
"assistant-e-de-direction"
to_ping
""
pinged
""
post_modified
"2025-02-20 06:00:19"
post_modified_gmt
"2025-02-20 05:00:19"
post_content_filtered
""
post_parent
0
guid
"https://rejoindre.lassuranceretraite.fr/offre/assistant-e-de-direction/"
menu_order
0
post_type
"cffr_offer"
post_mime_type
""
comment_count
"0"
filter
"raw"
empty
empty
empty
empty
Key Value
ac_flash
[]
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/offre/assistant-e-de-direction/"
USER
"www-data"
HOME
"/var/www"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/offre/assistant-e-de-direction/"
REMOTE_PORT
"47798"
SCRIPT_FILENAME
"/var/www/cnav-rh-prod/cnav-rh-prod/web/current/web/index.php"
SERVER_ADMIN
"noc@synalabs.com"
CONTEXT_DOCUMENT_ROOT
"/var/www/cnav-rh-prod/cnav-rh-prod/web/current/web"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/cnav-rh-prod/cnav-rh-prod/web/current/web"
REMOTE_ADDR
"18.97.14.81"
SERVER_PORT
"443"
SERVER_ADDR
"51.255.119.83"
SERVER_NAME
"rejoindre.lassuranceretraite.fr"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"rejoindre.lassuranceretraite.fr"
HTTP_ACCEPT_ENCODING
"br,gzip"
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/)"
proxy-nokeepalive
"1"
SSL_SESSION_RESUMED
"Resumed"
SSL_SESSION_ID
"b6e48f7a7285058a9c1fcc13eefa1c56809555eda90d2ab30822f976697df0f5"
SSL_SERVER_A_SIG
"sha256WithRSAEncryption"
SSL_SERVER_A_KEY
"rsaEncryption"
SSL_SERVER_I_DN
"CN=Certigna Services CA,organizationIdentifier=NTRFR-48146308100036,OU=0002 48146308100036,O=DHIMYOTIS,C=FR"
SSL_SERVER_S_DN
"serialNumber=S313850898,CN=www.rejoindre.lassuranceretraite.fr,O=CNAVTS,L=PARIS,C=FR"
SSL_SERVER_V_END
"Jul  9 21:59:59 2025 GMT"
SSL_SERVER_V_START
"Jun 27 22:00:00 2024 GMT"
SSL_SERVER_M_SERIAL
"D29DAFF81555126F25419F6CB7ADB1E2"
SSL_SERVER_M_VERSION
"3"
SSL_CLIENT_VERIFY
"NONE"
SSL_CIPHER_ALGKEYSIZE
"256"
SSL_CIPHER_USEKEYSIZE
"256"
SSL_CIPHER_EXPORT
"false"
SSL_CIPHER
"TLS_AES_256_GCM_SHA384"
SSL_COMPRESS_METHOD
"NULL"
SSL_SECURE_RENEG
"false"
SSL_PROTOCOL
"TLSv1.3"
SSL_VERSION_LIBRARY
"OpenSSL/1.1.1"
SSL_VERSION_INTERFACE
"mod_ssl/2.4.57"
SSL_SERVER_SAN_DNS_1
"rejoindre.lassuranceretraite.fr"
SSL_SERVER_SAN_DNS_0
"www.rejoindre.lassuranceretraite.fr"
SSL_SERVER_I_DN_CN
"Certigna Services CA"
SSL_SERVER_I_DN_OU
"0002 48146308100036"
SSL_SERVER_I_DN_O
"DHIMYOTIS"
SSL_SERVER_I_DN_C
"FR"
SSL_SERVER_S_DN_CN
"www.rejoindre.lassuranceretraite.fr"
SSL_SERVER_S_DN_O
"CNAVTS"
SSL_SERVER_S_DN_L
"PARIS"
SSL_SERVER_S_DN_C
"FR"
SSL_TLS_SNI
"rejoindre.lassuranceretraite.fr"
HTTPS
"on"
HTTP_AUTHORIZATION
""
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"rejoindre.lassuranceretraite.fr"
REDIRECT_HTTPS
"on"
REDIRECT_HTTP_AUTHORIZATION
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1743131492.5654
REQUEST_TIME
1743131492
empty
0. Whoops\Handler\PrettyPageHandler
1. AC\Whoops\AjaxHandler
2. AC\Whoops\APIHandler