Whoops \ Exception \ ErrorException (E_WARNING)
Undefined variable $recherche Whoops\Exception\ErrorException thrown with message "Undefined variable $recherche" Stacktrace: #4 Whoops\Exception\ErrorException in /home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-content/themes/ac-wp-theme/template-resultats-de-recherche.php:28 #3 Whoops\Run:handleError in /home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-content/themes/ac-wp-theme/template-resultats-de-recherche.php:28 #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 (5)
4
Whoops\Exception\ErrorException
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-content/themes/ac-wp-theme/template-resultats-de-recherche.php28
3
Whoops\Run handleError
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-content/themes/ac-wp-theme/template-resultats-de-recherche.php28
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/template-resultats-de-recherche.php
        }
    }
    // if (empty($recherche)) {
    //     wp_redirect('/');
    //     exit;
    // }
 
 
 
    $paged = ( get_query_var( 'paged' )  ? get_query_var( 'paged' ) : 1);
 
    // WP_Query arguments
    $args = array (
    'posts_per_page' => 12,
    'post_type'      =>  array('page','post', 'cffr_offer'),
    'post_status'    => 'publish',
    'orderby'        => 'post_date',
    'order'          => 'ASC',
    'paged' => $paged,
    's'          => $recherche,
    );
 
 
    $args_total = array(
      'posts_per_page' => -1,
      'post_type'      =>  array('page','post', 'cffr_offer'),
      'post_status'    => 'publish',
      'orderby'        => 'post_date',
      'order'          => 'ASC',
      's'          => $recherche,
    );
 
 
    $posts_total = get_posts( $args_total );
    $total = count($posts_total);
 
 
 
    $cquery = new WP_Query( $args );
 
Arguments
  1. "Undefined variable $recherche"
    
/home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-content/themes/ac-wp-theme/template-resultats-de-recherche.php
        }
    }
    // if (empty($recherche)) {
    //     wp_redirect('/');
    //     exit;
    // }
 
 
 
    $paged = ( get_query_var( 'paged' )  ? get_query_var( 'paged' ) : 1);
 
    // WP_Query arguments
    $args = array (
    'posts_per_page' => 12,
    'post_type'      =>  array('page','post', 'cffr_offer'),
    'post_status'    => 'publish',
    'orderby'        => 'post_date',
    'order'          => 'ASC',
    'paged' => $paged,
    's'          => $recherche,
    );
 
 
    $args_total = array(
      'posts_per_page' => -1,
      'post_type'      =>  array('page','post', 'cffr_offer'),
      'post_status'    => 'publish',
      'orderby'        => 'post_date',
      'order'          => 'ASC',
      's'          => $recherche,
    );
 
 
    $posts_total = get_posts( $args_total );
    $total = count($posts_total);
 
 
 
    $cquery = new WP_Query( $args );
 
/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;
}
 
Arguments
  1. "/home/cnav-rh-prod/cnav-rh-prod/web/current/web/wp-content/themes/ac-wp-theme/template-resultats-de-recherche.php"
    
/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:2 [
  "page" => ""
  "pagename" => "resultats-de-recherche"
]
query_string
"pagename=resultats-de-recherche"
request
"resultats-de-recherche"
matched_rule
"(.?.+?)(?:/([0-9]+))?/?$"
matched_query
"pagename=resultats-de-recherche&page="
did_permalink
true
Key Value
query
array:2 [
  "page" => ""
  "pagename" => "resultats-de-recherche"
]
query_vars
array:9 [
  "pagename" => "resultats-de-recherche"
  "name" => "resultats-de-recherche"
  "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 {#12427}
queried_object
WP_Post {#12424}
queried_object_id
1269
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.ID = '1269') AND wp_posts.post_type = 'page'\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
current_post
-1
before_loop
true
current_comment
-1
found_posts
1
is_page
true
is_singular
true
Key Value
ID
1269
post_author
"1"
post_date
"2023-04-20 15:51:36"
post_date_gmt
"2023-04-20 13:51:36"
post_content
""
post_title
"Résultats de recherche"
post_excerpt
""
post_status
"publish"
comment_status
"closed"
ping_status
"closed"
post_password
""
post_name
"resultats-de-recherche"
to_ping
""
pinged
""
post_modified
"2023-04-28 16:35:53"
post_modified_gmt
"2023-04-28 14:35:53"
post_content_filtered
""
post_parent
0
guid
"https://rejoindre.lassuranceretraite.fr/?page_id=1269"
menu_order
0
post_type
"page"
post_mime_type
""
comment_count
"0"
filter
"raw"
empty
empty
empty
empty
Key Value
ac_flash
[]
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/resultats-de-recherche/"
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
"/resultats-de-recherche/"
REMOTE_PORT
"56858"
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
"c7e1d32a1948a1774c662d17a9eaa9152540f83b061bd0afa70d743d3d85389c"
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
1743133076.9136
REQUEST_TIME
1743133076
empty
0. Whoops\Handler\PrettyPageHandler
1. AC\Whoops\AjaxHandler
2. AC\Whoops\APIHandler