Hi guys,
I got this weird issue today.
With Tailor I created admin section for filling website with content. It’s single page with repeater blocks. I filled the content in, no problem, everything is working like a charm in admin area.
Just when I try to access these repeater blocks on frontend, my artisan server crashes (or get into infinite loop - I am not sure). I got no error, nothing in log, it just starts serving on a new port and the old port is unreachable. This happens when I try to access contact.blocks
. I can access contact
component, just blocks
makes it unreachable.
Here are my blueprint and piece of a template:
handle: Contact
type: single
name: Kontakt
drafts: true
navigation:
parent: AboutUs
icon: icon-rocket
order: 130
fields:
blocks:
label: Obsahové bloky
type: repeater
displayMode: builder
span: adaptive
groups:
image_slice:
name: Image Slice
description: A large image with an angled slice.
icon: octo-icon-picture
fields:
image:
label: Image
type: mediafinder
mode: image
maxItems: 1
company_info:
name: Company Info
description: Zobraziť adresu a právnu normu firmy.
icon: octo-icon-text-h1
fields:
name:
label: Názov
type: text
addess:
label: Adresa sídla
type: text
google_maps:
label: Link na Google Mapy
comment: "Naň bude používateľ presmerovaný po kliknutí na adresu sídla"
type: text
legal_norm:
label: Právna norma
type: richeditor
contacts:
name: Contacts
description: Zobraziť kontaktné informácie vedenia.
icon: octo-icon-text-h1
fields:
contacts:
label: Kontakty
type: datatable
columns:
occupation:
title: Pozícia vo firme
type: string
name:
title: Meno a priezvisko
type: string
email:
title: E-mail
type: string
phone:
title: Telefónne číslo
type: string
opening_hours:
name: Opening Hours
description: Otváracie hodiny jednotlivých prevádzok TSNB.
icon: octo-icon-clock
fields:
opening_hours:
label: Otváracie hodiny
type: repeater
form:
fields:
name:
label: Názov otváracích hodín
type: text
span: left
days:
label: Dni
type: datatable
span: full
columns:
day:
title: Deň
type: string
hours:
title: Čas
type: string
[section contact]
handle = "Contact"
==
{{ contact.blocks | json_encode() }}
I was also trying exclude single types of blocks if there is no problem inside any of them (as I use datatable
repeater
inside blocks), but the issue seems to persist also with a super simple blocks, like textarea
. When I try to access empty blocks
it doesn’t crash.
I use OctoberCMS v3.5.2 with Laravel 10 and PHP 8.2.11
Has anybody of you came around something like that?
Thank you in advance