Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("Attempt to read property "data" on bool").
Previous exceptions
  • Attempt to read property "data" on bool (2)
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("Attempt to read property "data" on bool")." Stacktrace: #27 Twig\Error\RuntimeError in /home/sc2xegu4502/public_html/web/app/themes/ariane_theme/views/pages/page.twig:12 #26 Whoops\Exception\ErrorException in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/blocks/basic/profile/block.php:36 #25 Whoops\Run:handleError in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/blocks/basic/profile/block.php:36 #24 MINOS\Blocks\Basic\profile:MINOS\Blocks\Basic\{closure} in /home/sc2xegu4502/public_html/web/wp/wp-includes/class-wp-block.php:599 #23 WP_Block:render in /home/sc2xegu4502/public_html/web/wp/wp-includes/blocks.php:2383 #22 render_block in /home/sc2xegu4502/public_html/web/wp/wp-includes/blocks.php:2466 #21 do_blocks in /home/sc2xegu4502/public_html/web/wp/wp-includes/class-wp-hook.php:341 #20 WP_Hook:apply_filters in /home/sc2xegu4502/public_html/web/wp/wp-includes/plugin.php:205 #19 apply_filters in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/timber/timber/lib/Post.php:1228 #18 Timber\Post:content in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Extension/CoreExtension.php:1566 #17 twig_get_attribute in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Environment.php:418 #16 __TwigTemplate_bda21ea328204aeed262c2c2777e2c53:block_main in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php:182 #15 Twig\Template:displayBlock in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Environment.php:418 #14 __TwigTemplate_d2dd061ff7712e54e59c07139492ca27:doDisplay in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php:405 #13 Twig\Template:displayWithErrorHandling in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php:378 #12 Twig\Template:display in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Environment.php:418 #11 __TwigTemplate_bda21ea328204aeed262c2c2777e2c53:doDisplay in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php:405 #10 Twig\Template:displayWithErrorHandling in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php:378 #9 Twig\Template:display in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php:390 #8 Twig\Template:render in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/TemplateWrapper.php:45 #7 Twig\TemplateWrapper:render in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/timber/timber/lib/Loader.php:79 #6 Timber\Loader:render in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/timber/timber/lib/Timber.php:334 #5 Timber\Timber:compile in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/timber/timber/lib/Timber.php:383 #4 Timber\Timber:fetch in /home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/timber/timber/lib/Timber.php:410 #3 Timber\Timber:render in /home/sc2xegu4502/public_html/web/app/themes/ariane_theme/page.php:28 #2 include in /home/sc2xegu4502/public_html/web/wp/wp-includes/template-loader.php:132 #1 require_once in /home/sc2xegu4502/public_html/web/wp/wp-blog-header.php:19 #0 require in /home/sc2xegu4502/public_html/web/index.php:6
Stack frames (28)
27
Twig\Error\RuntimeError
/home/sc2xegu4502/public_html/web/app/themes/ariane_theme/views/pages/page.twig12
26
Whoops\Exception\ErrorException
/blocks/basic/profile/block.php36
25
Whoops\Run handleError
/blocks/basic/profile/block.php36
24
MINOS\Blocks\Basic\profile MINOS\Blocks\Basic\{closure}
/home/sc2xegu4502/public_html/web/wp/wp-includes/class-wp-block.php599
23
WP_Block render
/home/sc2xegu4502/public_html/web/wp/wp-includes/blocks.php2383
22
render_block
/home/sc2xegu4502/public_html/web/wp/wp-includes/blocks.php2466
21
do_blocks
/home/sc2xegu4502/public_html/web/wp/wp-includes/class-wp-hook.php341
20
WP_Hook apply_filters
/home/sc2xegu4502/public_html/web/wp/wp-includes/plugin.php205
19
apply_filters
/vendor/timber/timber/lib/Post.php1228
18
Timber\Post content
/vendor/twig/twig/src/Extension/CoreExtension.php1566
17
twig_get_attribute
/vendor/twig/twig/src/Environment.php418
16
__TwigTemplate_bda21ea328204aeed262c2c2777e2c53 block_main
/vendor/twig/twig/src/Template.php182
15
Twig\Template displayBlock
/vendor/twig/twig/src/Environment.php418
14
__TwigTemplate_d2dd061ff7712e54e59c07139492ca27 doDisplay
/vendor/twig/twig/src/Template.php405
13
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php378
12
Twig\Template display
/vendor/twig/twig/src/Environment.php418
11
__TwigTemplate_bda21ea328204aeed262c2c2777e2c53 doDisplay
/vendor/twig/twig/src/Template.php405
10
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php378
9
Twig\Template display
/vendor/twig/twig/src/Template.php390
8
Twig\Template render
/vendor/twig/twig/src/TemplateWrapper.php45
7
Twig\TemplateWrapper render
/vendor/timber/timber/lib/Loader.php79
6
Timber\Loader render
/vendor/timber/timber/lib/Timber.php334
5
Timber\Timber compile
/vendor/timber/timber/lib/Timber.php383
4
Timber\Timber fetch
/vendor/timber/timber/lib/Timber.php410
3
Timber\Timber render
/home/sc2xegu4502/public_html/web/app/themes/ariane_theme/page.php28
2
include
/home/sc2xegu4502/public_html/web/wp/wp-includes/template-loader.php132
1
require_once
/home/sc2xegu4502/public_html/web/wp/wp-blog-header.php19
0
require
/home/sc2xegu4502/public_html/web/index.php6
/home/sc2xegu4502/public_html/web/app/themes/ariane_theme/views/pages/page.twig
{% extends "base.twig" %}
 
 
{% block main %}
 
    <article class="m_page">
            {#
                Page content
                - post.content contain all widgets
            #}
            <div class="m_page__content">
                {{ post.content }}
            </div>
    </article>
 
{% endblock %}
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/blocks/basic/profile/block.php
 
    $this->basename = 'profile';
    $this->label = __('Profile');
    $this->pack = "basic";
 
    $this->add_restRoute();
 
    
    register_block_type(
      'minos/'.$this->basename,
      array(
        'title' => $this->label,
        'render_callback' => function($attributes){
          if(!is_admin()){
 
            if(isset($attributes['users'])){
                foreach ($attributes['users'] as $key => $user) {
                    $user = get_user_by('id', $user);
            
                    $id = $user->data->ID;
                    $img = get_avatar_url($id, array('size' => 450));
                    $meta = get_user_meta($id);
                    $user_data = get_userdata($id);
                    $user_url = $user_data->data->user_url;
            
                    $img = get_template_directory_uri() . '/dist/images/profile_placeholder.png';
            
                    if(carbon_get_user_meta( ( $id ), 'crb_image' )) {
                        $img = wp_get_attachment_image_src(carbon_get_user_meta( ( $id ), 'crb_image' ), 'profile')[0];
                    }
 
                    // var_dump($user_url);
                    // die();
                
                    $user = [
                        "id" => intval($id),
                        "nickname" => $meta['nickname'][0],
                        "first_name" => $user->first_name,
                        "email" => $user->user_email,
                        "last_name" => $user->last_name,
Exception message: Attempt to read property "data" on bool
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/blocks/basic/profile/block.php
 
    $this->basename = 'profile';
    $this->label = __('Profile');
    $this->pack = "basic";
 
    $this->add_restRoute();
 
    
    register_block_type(
      'minos/'.$this->basename,
      array(
        'title' => $this->label,
        'render_callback' => function($attributes){
          if(!is_admin()){
 
            if(isset($attributes['users'])){
                foreach ($attributes['users'] as $key => $user) {
                    $user = get_user_by('id', $user);
            
                    $id = $user->data->ID;
                    $img = get_avatar_url($id, array('size' => 450));
                    $meta = get_user_meta($id);
                    $user_data = get_userdata($id);
                    $user_url = $user_data->data->user_url;
            
                    $img = get_template_directory_uri() . '/dist/images/profile_placeholder.png';
            
                    if(carbon_get_user_meta( ( $id ), 'crb_image' )) {
                        $img = wp_get_attachment_image_src(carbon_get_user_meta( ( $id ), 'crb_image' ), 'profile')[0];
                    }
 
                    // var_dump($user_url);
                    // die();
                
                    $user = [
                        "id" => intval($id),
                        "nickname" => $meta['nickname'][0],
                        "first_name" => $user->first_name,
                        "email" => $user->user_email,
                        "last_name" => $user->last_name,
/home/sc2xegu4502/public_html/web/wp/wp-includes/class-wp-block.php
                    }
 
                    ++$index;
                }
            }
        }
 
        if ( ! empty( $computed_attributes ) && ! empty( $block_content ) ) {
            foreach ( $computed_attributes as $attribute_name => $source_value ) {
                $block_content = $this->replace_html( $block_content, $attribute_name, $source_value );
            }
        }
 
        if ( $is_dynamic ) {
            $global_post = $post;
            $parent      = WP_Block_Supports::$block_to_render;
 
            WP_Block_Supports::$block_to_render = $this->parsed_block;
 
            $block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
 
            WP_Block_Supports::$block_to_render = $parent;
 
            $post = $global_post;
        }
 
        if ( ( ! empty( $this->block_type->script_handles ) ) ) {
            foreach ( $this->block_type->script_handles as $script_handle ) {
                wp_enqueue_script( $script_handle );
            }
        }
 
        if ( ! empty( $this->block_type->view_script_handles ) ) {
            foreach ( $this->block_type->view_script_handles as $view_script_handle ) {
                wp_enqueue_script( $view_script_handle );
            }
        }
 
        if ( ! empty( $this->block_type->view_script_module_ids ) ) {
            foreach ( $this->block_type->view_script_module_ids as $view_script_module_id ) {
/home/sc2xegu4502/public_html/web/wp/wp-includes/blocks.php
     *
     * @param array         $context      Default context.
     * @param array         $parsed_block {
     *     An associative array of the block being rendered. See WP_Block_Parser_Block.
     *
     *     @type string|null $blockName    Name of block.
     *     @type array       $attrs        Attributes from block comment delimiters.
     *     @type array[]     $innerBlocks  List of inner blocks. An array of arrays that
     *                                     have the same structure as this one.
     *     @type string      $innerHTML    HTML from inside block comment delimiters.
     *     @type array       $innerContent List of string fragments and null markers where
     *                                     inner blocks were found.
     * }
     * @param WP_Block|null $parent_block If this is a nested block, a reference to the parent block.
     */
    $context = apply_filters( 'render_block_context', $context, $parsed_block, $parent_block );
 
    $block = new WP_Block( $parsed_block, $context );
 
    return $block->render();
}
 
/**
 * Parses blocks out of a content string.
 *
 * Given an HTML document, this function fully-parses block content, producing
 * a tree of blocks and their contents, as well as top-level non-block content,
 * which will appear as a block with no `blockName`.
 *
 * This function can be memory heavy for certain documents, particularly those
 * with deeply-nested blocks or blocks with extensive attribute values. Further,
 * this function must parse an entire document in one atomic operation.
 *
 * If the entire parsed document is not necessary, consider using {@see WP_Block_Processor}
 * instead, as it provides a streaming and low-overhead interface for finding blocks.
 *
 * @since 5.0.0
 *
 * @param string $content Post content.
 * @return array[] {
/home/sc2xegu4502/public_html/web/wp/wp-includes/blocks.php
     * Parsed blocks consist of a list of top-level blocks. Those top-level
     * blocks may themselves contain nested inner blocks. However, every
     * top-level block is rendered independently, meaning there are no data
     * dependencies between them.
     *
     * Ideally, therefore, the parser would only need to parse one complete
     * top-level block at a time, render it, and move on. Unfortunately, this
     * is not possible with {@see \parse_blocks()} because it must parse the
     * entire given document at once.
     *
     * While the current implementation prevents this optimization, it’s still
     * possible to reduce the peak memory use when calls to `render_block()`
     * on those top-level blocks are memory-heavy (which many of them are).
     * By setting each parsed block to `NULL` after rendering it, any memory
     * allocated during the render will be freed and reused for the next block.
     * Before making this change, that memory was retained and would lead to
     * out-of-memory crashes for certain posts that now run with this change.
     */
    for ( $i = 0; $i < $top_level_block_count; $i++ ) {
        $output      .= render_block( $blocks[ $i ] );
        $blocks[ $i ] = null;
    }
 
    // If there are blocks in this content, we shouldn't run wpautop() on it later.
    $priority = has_filter( 'the_content', 'wpautop' );
    if ( false !== $priority && doing_filter( 'the_content' ) && has_blocks( $content ) ) {
        remove_filter( 'the_content', 'wpautop', $priority );
        add_filter( 'the_content', '_restore_wpautop_hook', $priority + 1 );
    }
 
    return $output;
}
 
/**
 * If do_blocks() needs to remove wpautop() from the `the_content` filter, this re-adds it afterwards,
 * for subsequent `the_content` usage.
 *
 * @since 5.0.0
 * @access private
 *
/home/sc2xegu4502/public_html/web/wp/wp-includes/class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/home/sc2xegu4502/public_html/web/wp/wp-includes/plugin.php
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 *                      functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_filters        Stores the number of times each filter was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/timber/timber/lib/Post.php
        }
        if ( $form = $this->maybe_show_password_form() ) {
            return $form;
        }
        if ( $len == -1 && $page == 0 && $this->___content ) {
            return $this->___content;
        }
        $content = $this->post_content;
        if ( $len > 0 ) {
            $content = wp_trim_words($content, $len);
        }
        if ( $page ) {
            $contents = explode('<!--nextpage-->', $content);
            $page--;
            if ( count($contents) > $page ) {
                $content = $contents[$page];
            }
        }
        $content = $this->content_handle_no_teaser_block( $content );
        $content = apply_filters('the_content', ($content));
        if ( $len == -1 && $page == 0 ) {
            $this->___content = $content;
        }
        return $content;
    }
 
    /**
     * Handles for an circumstance with the Block editor where a "more" block has an option to
     * "Hide the excerpt on the full content page" which hides everything prior to the inserted
     * "more" block
     * @ticket #2218
     * @param string $content
     * @return string
     */
    protected function content_handle_no_teaser_block( $content ) {
        if ( (strpos($content, 'noTeaser:true') !== false || strpos($content, '"noTeaser":true') !== false) && strpos($content, '<!-- /wp:more -->') !== false) {
            $arr = explode('<!-- /wp:more -->', $content);
            return trim($arr[1]);
        }
        return $content;
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Extension/CoreExtension.php
 
        if ($ignoreStrictCheck || !$env->isStrictVariables()) {
            return;
        }
 
        throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()"/"has%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), $lineno, $source);
    }
 
    if ($isDefinedTest) {
        return true;
    }
 
    if ($sandboxed) {
        $env->getExtension(SandboxExtension::class)->checkMethodAllowed($object, $method, $lineno, $source);
    }
 
    // Some objects throw exceptions when they have __call, and the method we try
    // to call is not supported. If ignoreStrictCheck is true, we should return null.
    try {
        $ret = $object->$method(...$arguments);
    } catch (\BadMethodCallException $e) {
        if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
            return;
        }
        throw $e;
    }
 
    return $ret;
}
 
/**
 * Returns the values from a single column in the input array.
 *
 * <pre>
 *  {% set items = [{ 'fruit' : 'apple'}, {'fruit' : 'orange' }] %}
 *
 *  {% set fruits = items|column('fruit') %}
 *
 *  {# fruits now contains ['apple', 'orange'] #}
 * </pre>
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Environment.php
            $key = $this->cache->generateKey($name, $mainCls);
 
            if (!$this->isAutoReload() || $this->isTemplateFresh($name, $this->cache->getTimestamp($key))) {
                $this->cache->load($key);
            }
 
            $source = null;
            if (!class_exists($cls, false)) {
                $source = $this->getLoader()->getSourceContext($name);
                $content = $this->compileSource($source);
                $this->cache->write($key, $content);
                $this->cache->load($key);
 
                if (!class_exists($mainCls, false)) {
                    /* Last line of defense if either $this->bcWriteCacheFile was used,
                     * $this->cache is implemented as a no-op or we have a race condition
                     * where the cache was cleared between the above calls to write to and load from
                     * the cache.
                     */
                    eval('?>'.$content);
                }
 
                if (!class_exists($cls, false)) {
                    throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
                }
            }
        }
 
        // to be removed in 3.0
        $this->extensionSet->initRuntime($this);
 
        return $this->loadedTemplates[$cls] = new $cls($this);
    }
 
    /**
     * Creates a template from source.
     *
     * This method should not be used as a generic way to load templates.
     *
     * @param string $template The template source
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php
    {
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new \LogicException('A block must be a method on a \Twig\Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for \Twig\Error\LoaderError exceptions
                // see \Twig\Error\LoaderError
                if (-1 === $e->getTemplateLine()) {
                    $e->guess();
                }
 
                throw $e;
            } catch (\Exception $e) {
                $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
                $e->guess();
 
                throw $e;
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false, $templateContext ?? $this);
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Environment.php
            $key = $this->cache->generateKey($name, $mainCls);
 
            if (!$this->isAutoReload() || $this->isTemplateFresh($name, $this->cache->getTimestamp($key))) {
                $this->cache->load($key);
            }
 
            $source = null;
            if (!class_exists($cls, false)) {
                $source = $this->getLoader()->getSourceContext($name);
                $content = $this->compileSource($source);
                $this->cache->write($key, $content);
                $this->cache->load($key);
 
                if (!class_exists($mainCls, false)) {
                    /* Last line of defense if either $this->bcWriteCacheFile was used,
                     * $this->cache is implemented as a no-op or we have a race condition
                     * where the cache was cleared between the above calls to write to and load from
                     * the cache.
                     */
                    eval('?>'.$content);
                }
 
                if (!class_exists($cls, false)) {
                    throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
                }
            }
        }
 
        // to be removed in 3.0
        $this->extensionSet->initRuntime($this);
 
        return $this->loadedTemplates[$cls] = new $cls($this);
    }
 
    /**
     * Creates a template from source.
     *
     * This method should not be used as a generic way to load templates.
     *
     * @param string $template The template source
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Environment.php
            $key = $this->cache->generateKey($name, $mainCls);
 
            if (!$this->isAutoReload() || $this->isTemplateFresh($name, $this->cache->getTimestamp($key))) {
                $this->cache->load($key);
            }
 
            $source = null;
            if (!class_exists($cls, false)) {
                $source = $this->getLoader()->getSourceContext($name);
                $content = $this->compileSource($source);
                $this->cache->write($key, $content);
                $this->cache->load($key);
 
                if (!class_exists($mainCls, false)) {
                    /* Last line of defense if either $this->bcWriteCacheFile was used,
                     * $this->cache is implemented as a no-op or we have a race condition
                     * where the cache was cleared between the above calls to write to and load from
                     * the cache.
                     */
                    eval('?>'.$content);
                }
 
                if (!class_exists($cls, false)) {
                    throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
                }
            }
        }
 
        // to be removed in 3.0
        $this->extensionSet->initRuntime($this);
 
        return $this->loadedTemplates[$cls] = new $cls($this);
    }
 
    /**
     * Creates a template from source.
     *
     * This method should not be used as a generic way to load templates.
     *
     * @param string $template The template source
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/Template.php
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/twig/twig/src/TemplateWrapper.php
     * directly (use Twig\Environment::load() instead).
     *
     * @internal
     */
    public function __construct(Environment $env, Template $template)
    {
        $this->env = $env;
        $this->template = $template;
    }
 
    /**
     * Renders the template.
     *
     * @param array $context An array of parameters to pass to the template
     */
    public function render(array $context = []): string
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        return $this->template->render($context, \func_get_args()[1] ?? []);
    }
 
    /**
     * Displays the template.
     *
     * @param array $context An array of parameters to pass to the template
     */
    public function display(array $context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        $this->template->display($context, \func_get_args()[1] ?? []);
    }
 
    /**
     * Checks if a block is defined.
     *
     * @param string $name    The block name
     * @param array  $context An array of parameters to pass to the template
     */
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/timber/timber/lib/Loader.php
 
        $key = null;
        $output = false;
        if ( false !== $expires ) {
            ksort($data);
            $key = md5($file.json_encode($data));
            $output = $this->get_cache($key, self::CACHEGROUP, $cache_mode);
        }
 
        if ( false === $output || null === $output ) {
            $twig = $this->get_twig();
            if ( strlen($file) ) {
                $loader = $this->get_loader();
                $result = $loader->getCacheKey($file);
                do_action('timber_loader_render_file', $result);
            }
            $data = apply_filters('timber_loader_render_data', $data);
            $data = apply_filters('timber/loader/render_data', $data, $file);
            $template = $twig->load($file);
            $output = $template->render($data);
        }
 
        if ( false !== $output && false !== $expires && null !== $key ) {
            $this->delete_cache();
            $this->set_cache($key, $output, self::CACHEGROUP, $expires, $cache_mode);
        }
        $output = apply_filters('timber_output', $output);
        return apply_filters('timber/output', $output, $data, $file);
    }
 
    protected function delete_cache() {
        Cleaner::delete_transients();
    }
 
    /**
     * Get first existing template.
     *
     * @param array|string $templates  Name(s) of the Twig template(s) to choose from.
     * @return string|bool             Name of chosen template, otherwise false.
     */
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/timber/timber/lib/Timber.php
        if ( $via_render ) {
            $file = apply_filters('timber_render_file', $file);
        } else {
            $file = apply_filters('timber_compile_file', $file);
        }
 
        $output = false;
 
        if ($file !== false) {
            if ( is_null($data) ) {
                $data = array();
            }
 
            if ( $via_render ) {
                $data = apply_filters('timber_render_data', $data);
            } else {
                $data = apply_filters('timber_compile_data', $data);
            }
 
            $output = $loader->render($file, $data, $expires, $cache_mode);
        } else {
            if ( is_array($filenames) ) {
                $filenames = implode(", ", $filenames);
            }
            Helper::error_log( 'Error loading your template files: '.$filenames.'. Make sure one of these files exists.' );
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/timber/timber/lib/Timber.php
        $twig = $dummy_loader->get_twig();
        $template = $twig->createTemplate($string);
        return $template->render($data);
    }
 
    /**
     * Fetch function.
     *
     * @api
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The returned output.
     */
    public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::compile($filenames, $data, $expires, $cache_mode, true);
        $output = apply_filters('timber_compile_result', $output);
        return $output;
    }
 
    /**
     * Render function.
     *
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
/home/sc2xegu4502/public_html/web/app/mu-plugins/ariane/vendor/timber/timber/lib/Timber.php
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The echoed output.
     */
    public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::fetch($filenames, $data, $expires, $cache_mode);
        echo $output;
        return $output;
    }
 
    /**
     * Render a string with Twig variables.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   An array of data to use in Twig template.
     * @return bool|string
     */
/home/sc2xegu4502/public_html/web/app/themes/ariane_theme/page.php
 *
 * To generate specific templates for your pages you can use:
 * /mytheme/templates/page-mypage.twig
 * (which will still route through this PHP file)
 * OR
 * /mytheme/page-mypage.php
 * (in which case you'll want to duplicate this file and save to the above path)
 *
 * Methods for TimberHelper can be found in the /lib sub-directory
 *
 * @package  WordPress
 * @subpackage  Timber
 * @since    Timber 0.1
 */
 
$context = Timber::context();
 
$timber_post     = new Timber\Post();
$context['post'] = $timber_post;
Timber::render( array( 'pages/page-' . $timber_post->post_name . '.twig', 'pages/page.twig' ), $context );
 
/home/sc2xegu4502/public_html/web/wp/wp-includes/template-loader.php
     */
    $template   = apply_filters( 'template_include', $template );
    $is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
    $template   = $is_stringy ? realpath( (string) $template ) : null;
    if (
        is_string( $template ) &&
        ( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
        is_file( $template ) &&
        is_readable( $template )
    ) {
        /**
         * Fires immediately before including the template.
         *
         * @since 6.9.0
         *
         * @param string $template The path of the template about to be included.
         */
        do_action( 'wp_before_include_template', $template );
 
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
/home/sc2xegu4502/public_html/web/wp/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/sc2xegu4502/public_html/web/index.php
<?php
/**
 * WordPress View Bootstrapper
 */
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
Key Value
wp-wpml_current_language fr
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /fr/listing-widgets-a-presenter/
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.yourkingsley.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 18.97.14.89
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_PORT 443
HTTP_X_SSL yes
HTTP_X_HTTPS 1
REDIRECT_UNIQUE_ID aehbZFWEIpoPr5YrCX1X0gAAAFM
REDIRECT_SCRIPT_URL /fr/listing-widgets-a-presenter/
REDIRECT_SCRIPT_URI https://www.yourkingsley.com/fr/listing-widgets-a-presenter/
REDIRECT_W3TC_QUERY_STRING
REDIRECT_W3TC_SSL _ssl
REDIRECT_W3TC_SLASH _slash
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI www.yourkingsley.com
REDIRECT_STATUS 200
UNIQUE_ID aehbZFWEIpoPr5YrCX1X0gAAAFM
SCRIPT_URL /fr/listing-widgets-a-presenter/
SCRIPT_URI https://www.yourkingsley.com/fr/listing-widgets-a-presenter/
W3TC_QUERY_STRING
W3TC_SSL _ssl
HTTP_AUTHORIZATION
HTTPS on
SSL_TLS_SNI www.yourkingsley.com
SERVER_SIGNATURE
SERVER_NAME www.yourkingsley.com
SERVER_ADDR 109.234.166.130
SERVER_PORT 443
REMOTE_ADDR 18.97.14.89
DOCUMENT_ROOT /home/sc2xegu4502/www/web
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/sc2xegu4502/www/web
SERVER_ADMIN webmaster@wwwyourkingsley.sc2xegu4502.universe.wf
SCRIPT_FILENAME /home/sc2xegu4502/www/web/index.php
REMOTE_PORT 52186
REDIRECT_URL /fr/listing-widgets-a-presenter/
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1776835428.4208
REQUEST_TIME 1776835428
WP_ENV production
WP_HOME https://www.yourkingsley.com
WP_SITEURL https://www.yourkingsley.com/wp
DB_NAME sc2xegu4502_kingsley
DB_USER sc2xegu4502_kingsley
DB_PASSWORD bSVgwKsouT0=
DB_HOST localhost
AUTH_KEY o{AZ|A;7}Yd*M\"Kk0.1q|15<H&2|gh:N{,S;N19oMN+XT?b&a6)&[XjSa%.&,#M4
SECURE_AUTH_KEY rRY-jql&`3wN\"(xlnUH23e@]*Hcq[EBUrKs4:x[YEt!(;4\"~%&b]zkI]TIp=bmkj
LOGGED_IN_KEY vfH}-J!0nuABFwP;C`=C8!~j66eJ./xdiktb@4b7|nc:he3V=Gc.Pj4*/%agBR!s
NONCE_KEY uYpOd]3D>b1&Y3L5lk`8cn)iM:.+~2\")+ER-WqMIOk);#!GR&l0)ax?2I]_\"tBO&
AUTH_SALT zJi3wRi5LY?{D_*p[(y)*OAJ&\"?I9L%Mseb$LfADQ*<R`;m4&7c,=F1bHgS{1b*V
SECURE_AUTH_SALT )f>rWo`A:1{K6j`\"VzRhd~Z=Osux!ko?6ucIV91?@iIz9|R`tJ(m%;D06;q=xWS4
LOGGED_IN_SALT zn>*-26QF3>g$_c*`}1QkZLLny9)r_0xEsf!bPOn7/HIsaT`UGLo)VW+|*?LTMo_
NONCE_SALT o(SIO=g[?}95]IA2]BjhFl-x<,/(sH$EAYr`|bLF2nOkI;#q[4:ZaT;($z^q!)e$
Key Value
WP_ENV production
WP_HOME https://www.yourkingsley.com
WP_SITEURL https://www.yourkingsley.com/wp
DB_NAME sc2xegu4502_kingsley
DB_USER sc2xegu4502_kingsley
DB_PASSWORD bSVgwKsouT0=
DB_HOST localhost
AUTH_KEY o{AZ|A;7}Yd*M"Kk0.1q|15<H&2|gh:N{,S;N19oMN+XT?b&a6)&[XjSa%.&,#M4
SECURE_AUTH_KEY rRY-jql&`3wN"(xlnUH23e@]*Hcq[EBUrKs4:x[YEt!(;4"~%&b]zkI]TIp=bmkj
LOGGED_IN_KEY vfH}-J!0nuABFwP;C`=C8!~j66eJ./xdiktb@4b7|nc:he3V=Gc.Pj4*/%agBR!s
NONCE_KEY uYpOd]3D>b1&Y3L5lk`8cn)iM:.+~2")+ER-WqMIOk);#!GR&l0)ax?2I]_"tBO&
AUTH_SALT zJi3wRi5LY?{D_*p[(y)*OAJ&"?I9L%Mseb$LfADQ*<R`;m4&7c,=F1bHgS{1b*V
SECURE_AUTH_SALT )f>rWo`A:1{K6j`"VzRhd~Z=Osux!ko?6ucIV91?@iIz9|R`tJ(m%;D06;q=xWS4
LOGGED_IN_SALT zn>*-26QF3>g$_c*`}1QkZLLny9)r_0xEsf!bPOn7/HIsaT`UGLo)VW+|*?LTMo_
NONCE_SALT o(SIO=g[?}95]IA2]BjhFl-x<,/(sH$EAYr`|bLF2nOkI;#q[4:ZaT;($z^q!)e$
0. Whoops\Handler\PrettyPageHandler