<?php else: ?>
<div class="acf-map rounded-3" data-zoom="5">
<?php if($agences): ?>
<?php foreach ($agences as $agence): ?>
<?php $gmaps = get_field('gmaps', $agence->ID) ?>
<div class="marker" data-lat="<?php echo esc_attr($gmaps['lat']); ?>" data-lng="<?php echo esc_attr($gmaps['lng']); ?>">
<h3 class="text-center fs-6"><?php echo esc_html($agence->post_title); ?></h3>
<div class="text-center font-monospace fs-8" style="width: 10rem;"><?php echo esc_html( $gmaps['address'] ); ?></div>
<div class="text-center">
<a href="<?php echo esc_url(get_the_permalink($agence->ID)); ?>" class="btn btn-sm btn-primary rounded-pill mt-2">Voir la fiche<i class="fa fa-angle-right ms-2"></i></a>
</div>
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
$this->files->getRequire($path, $data);
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
*
* @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() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
<?php
/**
* WordPress View Bootstrapper
*/
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
<?php else: ?>
<div class="acf-map rounded-3" data-zoom="5">
<?php if($agences): ?>
<?php foreach ($agences as $agence): ?>
<?php $gmaps = get_field('gmaps', $agence->ID) ?>
<div class="marker" data-lat="<?php echo esc_attr($gmaps['lat']); ?>" data-lng="<?php echo esc_attr($gmaps['lng']); ?>">
<h3 class="text-center fs-6"><?php echo esc_html($agence->post_title); ?></h3>
<div class="text-center font-monospace fs-8" style="width: 10rem;"><?php echo esc_html( $gmaps['address'] ); ?></div>
<div class="text-center">
<a href="<?php echo esc_url(get_the_permalink($agence->ID)); ?>" class="btn btn-sm btn-primary rounded-pill mt-2">Voir la fiche<i class="fa fa-angle-right ms-2"></i></a>
</div>
* @throws \ErrorException
*/
public function handleError($level, $message, $file = '', $line = 0, $context = [])
{
try {
parent::handleError($level, $message, $file, $line, $context);
} catch (Throwable $e) {
if (! apply_filters('acorn/throw_error_exception', true, $e)) {
return false;
}
<?php else: ?>
<div class="acf-map rounded-3" data-zoom="5">
<?php if($agences): ?>
<?php foreach ($agences as $agence): ?>
<?php $gmaps = get_field('gmaps', $agence->ID) ?>
<div class="marker" data-lat="<?php echo esc_attr($gmaps['lat']); ?>" data-lng="<?php echo esc_attr($gmaps['lng']); ?>">
<h3 class="text-center fs-6"><?php echo esc_html($agence->post_title); ?></h3>
<div class="text-center font-monospace fs-8" style="width: 10rem;"><?php echo esc_html( $gmaps['address'] ); ?></div>
<div class="text-center">
<a href="<?php echo esc_url(get_the_permalink($agence->ID)); ?>" class="btn btn-sm btn-primary rounded-pill mt-2">Voir la fiche<i class="fa fa-angle-right ms-2"></i></a>
</div>
$path = locate_template( $block['render_template'] );
}
// Include template.
if ( file_exists( $path ) ) {
include $path;
}
}
// Reset postdata.
acf_reset_meta( $block['id'] );
} else {
echo acf_get_empty_block_form_html( $attributes['name'] ); //phpcs:ignore -- escaped in function.
}
} else {
// Capture block render output.
acf_render_block( $attributes, $content, $is_preview, $post_id, $wp_block, $context );
}
$html = ob_get_clean();
// Replace <InnerBlocks /> placeholder on front-end.
if ( is_admin() && acf_is_block_editor() ) {
$is_preview = true;
}
// Return rendered block HTML.
return acf_rendered_block( $attributes, $content, $is_preview, $post_id, $wp_block );
}
/**
* Returns the rendered block HTML.
*
$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;
}
$inner_block->parsed_block = apply_filters( 'render_block_data', $inner_block->parsed_block, $source_block, $parent_block );
/** This filter is documented in wp-includes/blocks.php */
$inner_block->context = apply_filters( 'render_block_context', $inner_block->context, $inner_block->parsed_block, $parent_block );
$block_content .= $inner_block->render();
}
$index++;
}
}
$inner_block->parsed_block = apply_filters( 'render_block_data', $inner_block->parsed_block, $source_block, $parent_block );
/** This filter is documented in wp-includes/blocks.php */
$inner_block->context = apply_filters( 'render_block_context', $inner_block->context, $inner_block->parsed_block, $parent_block );
$block_content .= $inner_block->render();
}
$index++;
}
}
$inner_block->parsed_block = apply_filters( 'render_block_data', $inner_block->parsed_block, $source_block, $parent_block );
/** This filter is documented in wp-includes/blocks.php */
$inner_block->context = apply_filters( 'render_block_context', $inner_block->context, $inner_block->parsed_block, $parent_block );
$block_content .= $inner_block->render();
}
$index++;
}
}
*/
$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.
*
function do_blocks( $content ) {
$blocks = parse_blocks( $content );
$output = '';
foreach ( $blocks as $block ) {
$output .= render_block( $block );
}
// 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 ) ) {
// 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, (int) $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
}
// 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;
}
</div>
</div>
<?php endif; ?>
<?php else: ?>
<div class="my-4 my-md-6">
<?php echo apply_filters('the_content', get_the_content(null, false, get_field('archive_agences', 'option'))) ?>
</div>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/finances-moi-v2/web/app/themes/finances-moi/resources/views/archive-agences.blade.php ENDPATH**/ ?>
$__data = $data;
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
$this->files->getRequire($path, $data);
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
*
* @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() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
<?php
/**
* WordPress View Bootstrapper
*/
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
[2/2]
ViewException
|
---|
Illuminate\View\ViewException: Trying to access array offset on value of type bool (View: /var/www/finances-moi-v2/web/app/themes/finances-moi/resources/views/archive-agences.blade.php) at /var/www/finances-moi-v2/web/app/themes/finances-moi/resources/blocks/agence_map/agence_map.php:37 at Illuminate\View\Engines\CompilerEngine->handleViewException() (/var/www/finances-moi-v2/vendor/illuminate/view/Engines/PhpEngine.php:60) at Illuminate\View\Engines\PhpEngine->evaluatePath() (/var/www/finances-moi-v2/vendor/illuminate/view/Engines/CompilerEngine.php:61) at Illuminate\View\Engines\CompilerEngine->get() (/var/www/finances-moi-v2/vendor/illuminate/view/View.php:139) at Illuminate\View\View->getContents() (/var/www/finances-moi-v2/vendor/illuminate/view/View.php:122) at Illuminate\View\View->renderContents() (/var/www/finances-moi-v2/vendor/illuminate/view/View.php:91) at Illuminate\View\View->render() (/var/www/finances-moi-v2/web/app/themes/finances-moi/index.php:18) at include('/var/www/finances-moi-v2/web/app/themes/finances-moi/index.php') (/var/www/finances-moi-v2/web/wp/wp-includes/template-loader.php:106) at require_once('/var/www/finances-moi-v2/web/wp/wp-includes/template-loader.php') (/var/www/finances-moi-v2/web/wp/wp-blog-header.php:19) at require('/var/www/finances-moi-v2/web/wp/wp-blog-header.php') (/var/www/finances-moi-v2/web/index.php:6) |
[1/2]
ErrorException
|
---|
ErrorException: Trying to access array offset on value of type bool at /var/www/finances-moi-v2/web/app/themes/finances-moi/resources/blocks/agence_map/agence_map.php:37 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() (/var/www/finances-moi-v2/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:54) at Roots\Acorn\Bootstrap\HandleExceptions->handleError() (/var/www/finances-moi-v2/web/app/themes/finances-moi/resources/blocks/agence_map/agence_map.php:37) at include('/var/www/finances-moi-v2/web/app/themes/finances-moi/resources/blocks/agence_map/agence_map.php') (/var/www/finances-moi-v2/web/app/mu-plugins/advanced-custom-fields-pro/pro/blocks.php:657) at acf_render_block() (/var/www/finances-moi-v2/web/app/mu-plugins/advanced-custom-fields-pro/pro/blocks.php:568) at acf_rendered_block() (/var/www/finances-moi-v2/web/app/mu-plugins/advanced-custom-fields-pro/pro/blocks.php:501) at acf_render_block_callback() (/var/www/finances-moi-v2/web/wp/wp-includes/class-wp-block.php:256) at WP_Block->render() (/var/www/finances-moi-v2/web/wp/wp-includes/class-wp-block.php:242) at WP_Block->render() (/var/www/finances-moi-v2/web/wp/wp-includes/class-wp-block.php:242) at WP_Block->render() (/var/www/finances-moi-v2/web/wp/wp-includes/class-wp-block.php:242) at WP_Block->render() (/var/www/finances-moi-v2/web/wp/wp-includes/blocks.php:1051) at render_block() (/var/www/finances-moi-v2/web/wp/wp-includes/blocks.php:1089) at do_blocks() (/var/www/finances-moi-v2/web/wp/wp-includes/class-wp-hook.php:308) at WP_Hook->apply_filters() (/var/www/finances-moi-v2/web/wp/wp-includes/plugin.php:205) at apply_filters() (/var/www/finances-moi-v2/web/app/cache/acorn/framework/views/d352ea9076ca658177dc8e02a31cf663a0268f7d.php:43) at require('/var/www/finances-moi-v2/web/app/cache/acorn/framework/views/d352ea9076ca658177dc8e02a31cf663a0268f7d.php') (/var/www/finances-moi-v2/vendor/illuminate/filesystem/Filesystem.php:107) at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}() (/var/www/finances-moi-v2/vendor/illuminate/filesystem/Filesystem.php:108) at Illuminate\Filesystem\Filesystem->getRequire() (/var/www/finances-moi-v2/vendor/illuminate/view/Engines/PhpEngine.php:58) at Illuminate\View\Engines\PhpEngine->evaluatePath() (/var/www/finances-moi-v2/vendor/illuminate/view/Engines/CompilerEngine.php:61) at Illuminate\View\Engines\CompilerEngine->get() (/var/www/finances-moi-v2/vendor/illuminate/view/View.php:139) at Illuminate\View\View->getContents() (/var/www/finances-moi-v2/vendor/illuminate/view/View.php:122) at Illuminate\View\View->renderContents() (/var/www/finances-moi-v2/vendor/illuminate/view/View.php:91) at Illuminate\View\View->render() (/var/www/finances-moi-v2/web/app/themes/finances-moi/index.php:18) at include('/var/www/finances-moi-v2/web/app/themes/finances-moi/index.php') (/var/www/finances-moi-v2/web/wp/wp-includes/template-loader.php:106) at require_once('/var/www/finances-moi-v2/web/wp/wp-includes/template-loader.php') (/var/www/finances-moi-v2/web/wp/wp-blog-header.php:19) at require('/var/www/finances-moi-v2/web/wp/wp-blog-header.php') (/var/www/finances-moi-v2/web/index.php:6) |