Whoops \ Exception \ ErrorException (E_WARNING)
Trying to access array offset on value of type bool Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type bool" Stacktrace: #4 Whoops\Exception\ErrorException in /home/mojo9353/neve.cool/wp-content/themes/neve-theme/templates/accueil.php:27 #3 Whoops\Run:handleError in /home/mojo9353/neve.cool/wp-content/themes/neve-theme/templates/accueil.php:27 #2 include in /home/mojo9353/neve.cool/wp-includes/template-loader.php:106 #1 require_once in /home/mojo9353/neve.cool/wp-blog-header.php:19 #0 require in /home/mojo9353/neve.cool/index.php:17
Stack frames (5)
4
Whoops\Exception\ErrorException
/templates/accueil.php27
3
Whoops\Run handleError
/templates/accueil.php27
2
include
/home/mojo9353/neve.cool/wp-includes/template-loader.php106
1
require_once
/home/mojo9353/neve.cool/wp-blog-header.php19
0
require
/home/mojo9353/neve.cool/index.php17
/home/mojo9353/neve.cool/wp-content/themes/neve-theme/templates/accueil.php
 * @link   https://mojocom.fr
 */
 
// Exit if accessed directly
if (!defined('ABSPATH')) {
  exit;
}
 
 
$context = Timber::get_context();
 
$context['post'] = new TimberPost();
 
$context['fields'] = get_fields();
 
$blockFields['banner_title'] = get_field('front_title');
$blockFields['animatedWords'] =  get_field('animate_words');
$blockFields['banner_desc'] = '<p>'.strip_tags(get_field('texte_quote'), ['<b>', '<br>', '<strong>']).'</p>';
$images = get_field('front_banner_bg_images');
$blockFields['banner_bg'] = $images[0]['url'];
$blockFields['banner_baseline'] = get_field('front_baseline');
 
$context['blockFields'] = $blockFields;
 
$args_chambres = array(
    'post_type' => 'chambre',
    'posts_per_page' => -1
);
$context['chambres'] = Timber::get_posts( $args_chambres );
 
 
$args_offers = array(
    'post_type' => 'post',
    'posts_per_page' => 3
);
$context['offers'] = Timber::get_posts( $args_offers );
 
 
$args_reviews = array(
    'post_type' => 'avis',
/home/mojo9353/neve.cool/wp-content/themes/neve-theme/templates/accueil.php
 * @link   https://mojocom.fr
 */
 
// Exit if accessed directly
if (!defined('ABSPATH')) {
  exit;
}
 
 
$context = Timber::get_context();
 
$context['post'] = new TimberPost();
 
$context['fields'] = get_fields();
 
$blockFields['banner_title'] = get_field('front_title');
$blockFields['animatedWords'] =  get_field('animate_words');
$blockFields['banner_desc'] = '<p>'.strip_tags(get_field('texte_quote'), ['<b>', '<br>', '<strong>']).'</p>';
$images = get_field('front_banner_bg_images');
$blockFields['banner_bg'] = $images[0]['url'];
$blockFields['banner_baseline'] = get_field('front_baseline');
 
$context['blockFields'] = $blockFields;
 
$args_chambres = array(
    'post_type' => 'chambre',
    'posts_per_page' => -1
);
$context['chambres'] = Timber::get_posts( $args_chambres );
 
 
$args_offers = array(
    'post_type' => 'post',
    'posts_per_page' => 3
);
$context['offers'] = Timber::get_posts( $args_offers );
 
 
$args_reviews = array(
    'post_type' => 'avis',
/home/mojo9353/neve.cool/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/mojo9353/neve.cool/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';
 
}
 
/home/mojo9353/neve.cool/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';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /en/homedemo8-elementor/
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.neve.cool
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_COUNTRY_CODE US
HTTP_X_AUTONOMOUS_SYSTEM 14618
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_PORT 443
HTTP_X_SSL yes
HTTP_X_HTTPS 1
REDIRECT_UNIQUE_ID ZdwMbAfiKFSEdH4zOglYzQAAABI
REDIRECT_SCRIPT_URL /en/homedemo8-elementor/
REDIRECT_SCRIPT_URI https://www.neve.cool/en/homedemo8-elementor/
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HTTPS on
REDIRECT_STATUS 200
UNIQUE_ID ZdwMbAfiKFSEdH4zOglYzQAAABI
SCRIPT_URL /en/homedemo8-elementor/
SCRIPT_URI https://www.neve.cool/en/homedemo8-elementor/
HTTP_AUTHORIZATION
HTTPS on
SERVER_SIGNATURE
SERVER_NAME www.neve.cool
SERVER_ADDR 109.234.165.173
SERVER_PORT 443
REMOTE_ADDR 35.175.201.191
DOCUMENT_ROOT /home/mojo9353/neve.cool
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/mojo9353/neve.cool
SERVER_ADMIN webmaster@nevecool.mojo9353.odns.fr
SCRIPT_FILENAME /home/mojo9353/neve.cool/index.php
REMOTE_PORT 49590
REDIRECT_URL /en/homedemo8-elementor/
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1708919916.24
REQUEST_TIME 1708919916
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler