Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Form Logic (Errors / Success) doesn't work within nocache tags

Aperta
#12,083 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
laravel, php
Ambito
backend

Direzione di ricerca

Start by reproducing the reported behavior in the linked fresh Statamic installation: submit a form wrapped in nocache with STATAMIC_STATIC_CACHING_STRATEGY=none, then with full. Read the form template copied from the docs and investigate how nocache interacts with full static caching; done means the success message appears after submission with full caching enabled.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

forms nocache
Bug description

Hi,

I am having issues getting forms to work, when using STATAMIC_STATIC_CACHING_STRATEGY=full
Here is a repo showing the issue in a fresh statamic installation: https://github.com/lauritsen/statamic-forms-test
Not sure if I am missing something.
Copied the form template from the docs and wrapped it with nocache.

Seems similar #7628

How to reproduce
  1. Create new statamic application
  2. Create a form in the control panel
  3. Add the form to a page and wrap it with nocache
  4. Test the form with STATAMIC_STATIC_CACHING_STRATEGY=none
    • It shows the success message
  5. Test the form with with STATAMIC_STATIC_CACHING_STRATEGY=full
    • It doesn't show the success message
Logs

Environment
Environment
Application Name: Statamic
Laravel Version: 12.25.0
PHP Version: 8.4.11
Composer Version: 2.8.10
Environment: local
Debug Mode: ENABLED
URL: statamic-forms-test.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
C:\Users\hela\repos\statamic-forms-test\public\storage: NOT LINKED

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: full
Version: 5.63.0 Solo
Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Lingua principale
PHP
Stelle
4.9k
Fork
647
Merge medio
1g 8h
PR unite (30g)
100

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di statamic/cms

Tutte le issue di statamic/cms

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.