Internal Server Error

ErrorException

resources/views/blocks/block-event.blade.php:14

Attempt to read property "ID" on int

LARAVEL Acorn 6.1.0 (Laravel 13.6.0)
PHP 8.4.21
UNHANDLED
CODE 0
500
GET
https://asile.ch/2024/08/27/chahut-media-podcast-a-la-frontiere-se-refugier-en-suisse-1940-1945

Exception trace

Roots\Acorn\Bootstrap\HandleExceptions->handleError(integer, string, string, integer)
resources/views/blocks/block-event.blade.php:14
9  SupportsMode: false10  SupportsInnerBlocks: false11  SupportsMultiple: true12--}}1314@php15$event = get_field('event');16 $date_debut = get_field('date',$event->ID);17   //$lieu = wp_filter_nohtml_kses( get_field('lieu',$event->ID) );18          $debut = date_i18n('j M', strtotime($date_debut));19           $debut_heure = date_i18n('H:i', strtotime($date_debut));20          $debut_jour = date_i18n('j', strtotime($date_debut));21          $debut_mois = date_i18n('M', strtotime($date_debut));22          $date_fin = get_field('end_date',$event->ID);23          $fin = $date_fin ? date_i18n('j M',strtotime($date_fin)) : null;24           $fin_heure = $date_fin ? date_i18n('H:i',strtotime($date_fin)) : null;25          $fin_jour = $date_fin ? date_i18n('j', strtotime($date_fin)) : null;26
7 vendor frames
require(string)
vendor/illuminate/filesystem/Filesystem.php:123
Illuminate\Filesystem\Filesystem::{closure:Illuminate\Filesystem\Filesystem::getRequire():120}()
vendor/illuminate/filesystem/Filesystem.php:124
Illuminate\Filesystem\Filesystem->getRequire(string, array)
vendor/illuminate/view/Engines/PhpEngine.php:57
Illuminate\View\Engines\PhpEngine->evaluatePath(string, array)
vendor/illuminate/view/Engines/CompilerEngine.php:76
Illuminate\View\Engines\CompilerEngine->get(string, array)
vendor/illuminate/view/View.php:208
Illuminate\View\View->getContents()
vendor/illuminate/view/View.php:191
Illuminate\View\View->renderContents()
vendor/illuminate/view/View.php:160
Illuminate\View\View->render()
app/Blocks/Block.php:33
28        }2930        // Merge our overrides on top so with() keys (including 'block') win.31        $data = array_merge($with, $this->with());3233        return view($view, $data)->render();34    }3536    /**37     * Replace the Block object with a plain array so templates written for38     * ACF's raw $block array keep working without modification.39     */40    public function with(): array41    {42        return [43            'block' => array_merge((array) $this->block, [44                'is_preview' => $this->preview,45
14 vendor frames
App\Blocks\Block->view(string, array)
vendor/log1x/acf-composer/src/Block.php:805
Log1x\AcfComposer\Block->render(array, string, boolean, integer, object(WP_Block), array)
vendor/log1x/acf-composer/src/Block.php:679
Log1x\AcfComposer\Block->{closure:Log1x\AcfComposer\Block::settings():671}(array, string, boolean, integer, object(WP_Block), array)
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php:1083
acf_render_block(array, string, boolean, integer, object(WP_Block), array)
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php:822
acf_rendered_block(array, string, boolean, integer, object(WP_Block))
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php:734
acf_render_block_callback(array, string, object(WP_Block))
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-includes/class-wp-block.php:596
WP_Block->render()
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-includes/class-wp-block.php:576
WP_Block->render()
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-includes/class-wp-block.php:576
WP_Block->render()
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-includes/class-wp-block.php:576
WP_Block->render()
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-includes/blocks.php:2438
render_block(array)
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-includes/blocks.php:2521
do_blocks(string)
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-includes/class-wp-hook.php:341
WP_Hook->apply_filters(string, array)
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-includes/plugin.php:205
apply_filters(string, string)
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-includes/post-template.php:256
the_content()
resources/views/partials/content-single.blade.php:40
35      </div>36      @endif3738    </header>39    <div class="c-single-content">40      @php(the_content())41    </div>424344{{-- related posts by tag (field ) --}}45@hasfield('articles_lies')4647@query([48  'post_type' => 'post',49  'tag__in' => get_field('articles_lies'),50  'posts_per_page' => 4,51  'post__not_in' => [get_the_ID()]52
7 vendor frames
require(string)
vendor/illuminate/filesystem/Filesystem.php:123
Illuminate\Filesystem\Filesystem::{closure:Illuminate\Filesystem\Filesystem::getRequire():120}()
vendor/illuminate/filesystem/Filesystem.php:124
Illuminate\Filesystem\Filesystem->getRequire(string, array)
vendor/illuminate/view/Engines/PhpEngine.php:57
Illuminate\View\Engines\PhpEngine->evaluatePath(string, array)
vendor/illuminate/view/Engines/CompilerEngine.php:76
Illuminate\View\Engines\CompilerEngine->get(string, array)
vendor/illuminate/view/View.php:208
Illuminate\View\View->getContents()
vendor/illuminate/view/View.php:191
Illuminate\View\View->renderContents()
vendor/illuminate/view/View.php:160
Illuminate\View\View->render()
resources/views/single.blade.php:5
1@extends('layouts.app')23@section('content')4  @while(have_posts()) @php(the_post())5    @includeFirst(['partials.content-single-' . get_post_type(), 'partials.content-single'])6  @endwhile7@endsection8
7 vendor frames
require(string)
vendor/illuminate/filesystem/Filesystem.php:123
Illuminate\Filesystem\Filesystem::{closure:Illuminate\Filesystem\Filesystem::getRequire():120}()
vendor/illuminate/filesystem/Filesystem.php:124
Illuminate\Filesystem\Filesystem->getRequire(string, array)
vendor/illuminate/view/Engines/PhpEngine.php:57
Illuminate\View\Engines\PhpEngine->evaluatePath(string, array)
vendor/illuminate/view/Engines/CompilerEngine.php:76
Illuminate\View\Engines\CompilerEngine->get(string, array)
vendor/illuminate/view/View.php:208
Illuminate\View\View->getContents()
vendor/illuminate/view/View.php:191
Illuminate\View\View->renderContents()
vendor/illuminate/view/View.php:160
Illuminate\View\View->render()
index.php:15
10</head>1112<body <?php body_class(); ?>>13  <?php wp_body_open(); ?>14  <?php do_action('get_header'); ?>15  <?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>16  <?php do_action('get_footer'); ?>17  <?php wp_footer(); ?>18</body>1920</html>
3 vendor frames
include(string)
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-includes/template-loader.php:132
require_once(string)
/home/clients/c3f15b1f2403382708c275242205e735/web/wp-blog-header.php:19
Entrypoint
/home/clients/c3f15b1f2403382708c275242205e735/web/index.php:17

Queries

// No queries executed

Headers

x-forwarded-proto
https
accept-encoding
gzip, br, zstd, deflate
user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
accept
*/*
host
asile.ch
authorization

Body

// No request body

Routing

// No routing context

Routing parameters

// No routing parameters