False positive Antlers logging
Maintainer thường phản hồi trong vòng 1 ngày
@JohnathonKoster đang làm issue này rồi.
Từ ngày 19/2/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Bug description
On one site we have 2 fields that consistently produce debug error messages:
[2026-02-18 11:56:45] production.DEBUG: Cannot render an array variable as a string: {{ view_all_link }} {"line":8,"file":"/home/forge/alaskapac.org/resources/views/livewire/centertix-events.antlers.html"}
[2026-02-18 11:56:46] production.DEBUG: Cannot render an array variable as a string: {{ heading }} {"line":7,"file":"/home/forge/alaskapac.org/resources/views/livewire/centertix-events.antlers.html"}
view_all_link is a Link field and heading is a Select field.
I believe the issue comes from this code in NodeProcessor.php:
if ($this->isInterpolationProcessor == false && $this->isLoopable($value) && $node->isClosedBy == null) {
if ($this->shouldReportArrayToStringWarning()) {
$varName = $node->name->getContent();
Log::debug("Cannot render an array variable as a string: {{ {$varName} }}", $this->getErrorLogContext($node));
}
I believe that the Link and Select field return true from isLoopable and therefore an error is logged even though nothing is actually wrong.
How to reproduce
Can't reproduce this locally, sorry.
Logs
[2026-02-18 11:49:08] production.DEBUG: Cannot render an array variable as a string: {{ view_all_link }} {"line":14,"file":"/home/forge/alaskapac.org/resources/views/livewire/centertix-events.antlers.html"}
[2026-02-18 11:54:14] production.DEBUG: Cannot render an array variable as a string: {{ view_all_link }} {"line":14,"file":"/home/forge/alaskapac.org/resources/views/livewire/centertix-events.antlers.html"}
[2026-02-18 11:56:44] production.DEBUG: Cannot render an array variable as a string: {{ view_all_link }} {"line":8,"file":"/home/forge/alaskapac.org/resources/views/livewire/centertix-events.antlers.html"}
[2026-02-18 11:56:45] production.DEBUG: Cannot render an array variable as a string: {{ view_all_link }} {"line":8,"file":"/home/forge/alaskapac.org/resources/views/livewire/centertix-events.antlers.html"}
[2026-02-18 11:56:46] production.DEBUG: Cannot render an array variable as a string: {{ heading }} {"line":7,"file":"/home/forge/alaskapac.org/resources/views/livewire/centertix-events.antlers.html"}
Environment
Environment
Application Name: Alaska PAC
Laravel Version: 11.48.0
PHP Version: 8.3.30
Composer Version: 2.9.3
Environment: local
Debug Mode: ENABLED
URL: alaskapac.test
Maintenance Mode: OFF
Timezone: America/Los_Angeles
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: null
Cache: redis
Database: mysql
Logs: stack / daily
Mail: smtp
Queue: redis
Session: file
Livewire
Livewire: v3.7.10
Statamic
Addons: 12
Sites: 2 (AlaskaPAC, CenterTix)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.73.9 PRO
Statamic Addons
aryehraber/statamic-captcha: 1.16.0
edalzell/forma: 3.1.2
jacksleight/statamic-bard-mutator: 2.3.1
jacksleight/statamic-distill: 1.1.1
jonassiewertsen/statamic-external-link: 1.9.0
marcorieser/statamic-livewire: 4.5.3
statamic-rad-pack/typesense: 2.4.0
statamic/seo-pro: 6.11.7
transformstudios/events: 5.8.3
transformstudios/front: 3.1.2
transformstudios/review: 5.2.0
transformstudios/simple: 5.41.2
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 8 giờ
- Pull request đã merge (30 ngày)
- 100
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của statamic/cms
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
There's a default crop when cropping imagesCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởassets
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Make native filesystem directory permissions configurable to support shared POSIX ACL accessĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
antlers
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
WordPress/hosting-handbook#506 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Installing a plugin with composer_packages installs dev dependencies and breaks the autoloader (Error 500)Có thể đã có người làm @Boy132 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
nginx: static-file locations drop the security headers, and the dotfile deny is matched after themĐang mởbug Low Security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
backdrop-contrib/commerce#60 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100