Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#12,083 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
laravel, php
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
PHP
Star
4.9k
Fork
647
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
102

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của statamic/cms

Tất cả issue của statamic/cms

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.