Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: parent_term Whoops\Exception\ErrorException thrown with message "Undefined variable: parent_term" Stacktrace: #4 Whoops\Exception\ErrorException in /home/users/let_sal/html/wp-content/themes/gaandc-wp-theme/single.php:150 #3 Whoops\Run:handleError in /home/users/let_sal/html/wp-content/themes/gaandc-wp-theme/single.php:150 #2 include in /home/users/let_sal/html/wp-includes/template-loader.php:106 #1 require_once in /home/users/let_sal/html/wp-blog-header.php:19 #0 require in /home/users/let_sal/html/index.php:17
Stack frames (5)
4
Whoops
\
Exception
\
ErrorException
/
home
/
users
/
let_sal
/
html
/
wp-content
/
themes
/
gaandc-wp-theme
/
single.php
150
3
Whoops
\
Run
handleError
/
home
/
users
/
let_sal
/
html
/
wp-content
/
themes
/
gaandc-wp-theme
/
single.php
150
2
include
/
home
/
users
/
let_sal
/
html
/
wp-includes
/
template-loader.php
106
1
require_once
/
home
/
users
/
let_sal
/
html
/
wp-blog-header.php
19
0
require
/
home
/
users
/
let_sal
/
html
/
index.php
17
/
home
/
users
/
let_sal
/
html
/
wp-content
/
themes
/
gaandc-wp-theme
/
single.php
                            <p style="display:none">
                                <strong><?= $post->post_title; ?></strong>
                            </p>
 
 
                        <!-- <h1><?= $post->post_title; ?></h1> -->
                        <?php
                        $content = $post->post_content;
                        // the_content();
                        echo wpautop($content);
 
                        $terms = wp_get_post_terms( $post->ID,'category');
                        foreach($terms as $term):
                            if($term->parent != 0){
                                $child_term = $term;
                            } else {
                                $parent_term = $term;
                            }
                        endforeach;
                        if($parent_term->slug === 'avis-experts'){
                            // echo wp_get_attachment_image(get_field('infographie_dekstop',$post->ID),'full','', array('class'=>'info_desk'));
                            // echo wp_get_attachment_image(get_field('infographie_mobile',$post->ID),'medium','', array('class'=>'info_resp'));
                        }?>
                        </div>
                        <a class="back_to_letter" href="<?= $lettre_permalink ?>"><i class="fas fa-arrow-left"></i> Retour à la page d'accueil</a>
                    </div>
                </div>
 
                <div class="suggested_posts">
                    <?php $su_posts = get_field('suggested_articles');
                    // debug($su_posts);
                    // exit();
                    if($su_posts){
                        foreach ($su_posts as $post) {
 
                            if($post['post_type'] === 'int'){
                                $post_object = $post['int_post_choice'][0];
                                $terms = wp_get_post_terms( $post_object->ID,'category');
                                $thumb_vid = get_field('thumb_video');
 
Arguments
  1. "Undefined variable: parent_term"
    
/
home
/
users
/
let_sal
/
html
/
wp-content
/
themes
/
gaandc-wp-theme
/
single.php
                            <p style="display:none">
                                <strong><?= $post->post_title; ?></strong>
                            </p>
 
 
                        <!-- <h1><?= $post->post_title; ?></h1> -->
                        <?php
                        $content = $post->post_content;
                        // the_content();
                        echo wpautop($content);
 
                        $terms = wp_get_post_terms( $post->ID,'category');
                        foreach($terms as $term):
                            if($term->parent != 0){
                                $child_term = $term;
                            } else {
                                $parent_term = $term;
                            }
                        endforeach;
                        if($parent_term->slug === 'avis-experts'){
                            // echo wp_get_attachment_image(get_field('infographie_dekstop',$post->ID),'full','', array('class'=>'info_desk'));
                            // echo wp_get_attachment_image(get_field('infographie_mobile',$post->ID),'medium','', array('class'=>'info_resp'));
                        }?>
                        </div>
                        <a class="back_to_letter" href="<?= $lettre_permalink ?>"><i class="fas fa-arrow-left"></i> Retour à la page d'accueil</a>
                    </div>
                </div>
 
                <div class="suggested_posts">
                    <?php $su_posts = get_field('suggested_articles');
                    // debug($su_posts);
                    // exit();
                    if($su_posts){
                        foreach ($su_posts as $post) {
 
                            if($post['post_type'] === 'int'){
                                $post_object = $post['int_post_choice'][0];
                                $terms = wp_get_post_terms( $post_object->ID,'category');
                                $thumb_vid = get_field('thumb_video');
 
/
home
/
users
/
let_sal
/
html
/
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/users/let_sal/html/wp-content/themes/gaandc-wp-theme/single.php"
    
/
home
/
users
/
let_sal
/
html
/
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/users/let_sal/html/wp-includes/template-loader.php"
    
/
home
/
users
/
let_sal
/
html
/
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/users/let_sal/html/wp-blog-header.php"
    

Environment & details:

Key Value
query_vars
array:2 [
  "page" => ""
  "name" => "vos-services-sante-toujours-accessibles-meme-en-vacances"
]
query_string
"name=vos-services-sante-toujours-accessibles-meme-en-vacances"
request
"vos-services-sante-toujours-accessibles-meme-en-vacances"
matched_rule
"([^/]+)(?:/([0-9]+))?/?$"
matched_query
"name=vos-services-sante-toujours-accessibles-meme-en-vacances&page="
did_permalink
true
Key Value
query
array:2 [
  "page" => ""
  "name" => "vos-services-sante-toujours-accessibles-meme-en-vacances"
]
query_vars
array:8 [
  "name" => "vos-services-sante-toujours-accessibles-meme-en-vacances"
  "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 {}
queried_object
WP_Post {}
queried_object_id
4183
request
"""
\n
\t\t\tSELECT   E2z7r_posts.*\n
\t\t\tFROM E2z7r_posts \n
\t\t\tWHERE 1=1  AND E2z7r_posts.post_name = 'vos-services-sante-toujours-accessibles-meme-en-vacances' AND E2z7r_posts.post_type = 'post'\n
\t\t\t\n
\t\t\tORDER BY E2z7r_posts.post_date DESC\n
\t\t\t\n
\t\t
"""
post_count
1
current_post
-1
current_comment
-1
found_posts
1
is_single
true
is_singular
true
Key Value
ID
4183
post_author
"2"
post_date
"2022-06-21 11:17:48"
post_date_gmt
"2022-06-21 09:17:48"
post_content
"""
<!-- wp:heading {"level":3} -->\n
<h3><strong>Une mauvaise chute, une rage de dent ou un coup de froid… Pour faciliter la prise en charge de vos soins où que vous soyez et pendant vos vacances, des services pratiques existent. Quelques conseils pour partir l’esprit tranquille.</strong></h3>\n
<!-- /wp:heading -->\n
\n
<!-- wp:spacer {"height":"20px"} -->\n
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>\n
<!-- /wp:spacer -->\n
\n
<!-- wp:heading {"level":4} -->\n
<h4><strong>Des services accessibles à distance</strong></h4>\n
<!-- /wp:heading -->\n
\n
<!-- wp:paragraph -->\n
<p>En vacances, comme à la maison, si vous bénéficiez de la mutuelle IRP AUTO, pensez à votre carte de tiers payant dématérialisée. Accessible à tout moment depuis <a href="https://www.irp-auto.com/irp-auto-sante-lapplication-mobile-pour-gerer-votre-sante?utm_source=PUSH&amp;utm_medium=PUSH-SALARIES-RETRAITES&amp;utm_campaign=Application-Mobile" target="_blank" rel="noopener">l’application mobile IRP&nbsp;AUTO Santé</a>, vous pouvez la présenter facilement à tous les professionnels de santé. Si vos enfants sont en séjour chez leurs grands-parents, par exemple, vous pouvez aussi la transférer par courriel à vos proches.</p>\n
<!-- /wp:paragraph -->\n
\n
<!-- wp:paragraph -->\n
<p>Pas toujours facile de consulter un médecin sur son lieu de vacances. Pourquoi ne pas tester la <a href="https://www.irp-auto.com/salaries/assurer-ma-sante/les-avantages-de-souscrire-un-contrat-irp-auto/le-service-de-consultation-medicale-distance" target="_blank" rel="noopener">consultation médicale à distance&nbsp;</a>? Disponible 24 h /24 et 7 j/7, ce service est pris en charge dans le cadre de votre contrat santé IRP AUTO.</p>\n
<!-- /wp:paragraph -->\n
\n
<!-- wp:paragraph -->\n
<p>Et pour identifier un <a href="https://www.irp-auto.com/salaries/assurer-ma-sante/les-avantages-de-souscrire-un-contrat-irp-auto/des-services-pour-des-depenses-maitrisees" target="_blank" rel="noreferrer noopener">professionnel de santé partenaire</a> de notre réseau de soins, proche de vous, pensez au service de géolocalisation disponible sur <a href="https://www.irp-auto.com/acces-mon-compte-personnel" target="_blank" rel="noopener">votre Compte personnel</a> ou via <a href="https://www.irp-auto.com/irp-auto-sante-lapplication-mobile-pour-gerer-votre-sante" target="_blank" rel="noopener">l’application mobile IRP AUTO Santé</a>.</p>\n
<!-- /wp:paragraph -->\n
\n
<!-- wp:spacer {"height":"20px"} -->\n
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>\n
<!-- /wp:spacer -->\n
\n
<!-- wp:heading {"level":4} -->\n
<h4><strong>Vacances à l’étranger&nbsp;: une prise en charge facilitée</strong></h4>\n
<!-- /wp:heading -->\n
\n
<!-- wp:paragraph -->\n
<p>Si vous choisissez de séjourner dans un pays européen, vos frais de santé peuvent être pris en charge directement par l’organisme de sécurité sociale local. Pour faciliter les formalités dans le pays d’accueil, pensez à demander votre <a href="https://www.ameli.fr/assure/droits-demarches/europe-international/protection-sociale-etranger/vacances-etranger" target="_blank" rel="noopener">carte européenne d’assurance maladie</a> (CEAM), au moins 15 jours avant votre départ à votre caisse de rattachement.</p>\n
<!-- /wp:paragraph -->\n
\n
<!-- wp:paragraph -->\n
<p>Si vous devez avancer des frais, et pour tous les soins médicaux imprévus et urgents réalisés en dehors de la zone Europe, vous pouvez désormais faire votre demande de remboursement en ligne directement sur <a href="https://assure.ameli.fr/PortailAS/appmanager/PortailAS/assure?_somtc=true" target="_blank" rel="noopener">votre compte ameli</a>. Pour cela, pensez à conserver l’ensemble de vos factures et justificatifs.</p>\n
<!-- /wp:paragraph -->\n
\n
<!-- wp:paragraph -->\n
<p><strong>Bon à savoir</strong> : la mutuelle IRP AUTO peut prendre en charge une partie des frais de vos soins médicaux<sup>1</sup>, réalisés à l’étranger, après remboursement de la Sécurité sociale.</p>\n
<!-- /wp:paragraph -->\n
\n
<!-- wp:paragraph -->\n
<p>Pour en savoir plus, rendez-vous sur  <a href="https://www.irp-auto.com/salaries/assurer-ma-sante/tout-savoir-sur-la-mutuelle-sante/comprendre-mes-remboursements-sante">www.irp-auto.com</a>.</p>\n
<!-- /wp:paragraph -->\n
\n
<!-- wp:heading {"level":5} -->\n
<h5><sup>1</sup>Selon votre contrat et la nomenclature des actes, en vigueur à l’Assurance maladie.</h5>\n
<!-- /wp:heading -->
"""
post_title
"Vos services santé toujours accessibles, même en vacances"
post_excerpt
"Une mauvaise chute, une rage de dent ou un coup de froid… "
post_status
"publish"
comment_status
"closed"
ping_status
"closed"
post_password
""
post_name
"vos-services-sante-toujours-accessibles-meme-en-vacances"
to_ping
""
pinged
""
post_modified
"2022-07-05 10:32:49"
post_modified_gmt
"2022-07-05 08:32:49"
post_content_filtered
""
post_parent
0
guid
"https://lettre-salaries.irp-auto.com/?p=4183"
menu_order
0
post_type
"post"
post_mime_type
""
comment_count
"0"
filter
"raw"
empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/vos-services-sante-toujours-accessibles-meme-en-vacances/"
USER
"let_sal"
HOME
"/home/users/let_sal"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/vos-services-sante-toujours-accessibles-meme-en-vacances/"
REMOTE_PORT
"54164"
SCRIPT_FILENAME
"/home/users/let_sal/html/index.php"
SERVER_ADMIN
"root@localhost"
CONTEXT_DOCUMENT_ROOT
"/home/users/let_sal/html"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/users/let_sal/html"
REMOTE_ADDR
"172.16.35.20"
SERVER_PORT
"80"
SERVER_ADDR
"172.16.35.12"
SERVER_NAME
"lettre-salaries.irp-auto.com"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
HTTP_CONNECTION
"close"
HTTP_X_FORWARDED_FOR
"3.234.210.25"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_HOST
"lettre-salaries.irp-auto.com"
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"
HTTP_AUTHORIZATION
""
UNIQUE_ID
"Yz0kJQShkPce1Xsl73TLtwAAANg"
forwarded
"1"
HTTPS
"on"
REDIRECT_STATUS
"200"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_UNIQUE_ID
"Yz0kJQShkPce1Xsl73TLtwAAANg"
REDIRECT_forwarded
"1"
REDIRECT_HTTPS
"on"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1664951333.5554
REQUEST_TIME
1664951333
empty
0. Whoops\Handler\PrettyPageHandler
1. GAC\Whoops\AjaxHandler
2. GAC\Whoops\APIHandler