Bug description
On my site, when a performer signs up for an audition, it triggers two forms - a confirmation to the performer and a notification to the director(s) - and these two submissions have identical timestamps. It seems the Stache treats these as duplicate IDs instead of realizing they're in separate form directories.
Here's the thread from Discord between me and @edalzell : https://discord.com/channels/489818810157891584/1430960589966147708
I created a fresh site and was able to reproduce the issue. http://github.com/danielfowler/dupes
How to reproduce
- Create two forms
- Use JS to post both forms on a button click
- See their filenames are identical
- See Duplicate IDs in CP (maybe after a Stache refresh)
Logs
[2026-07-09 19:11:42] local.ERROR: Call to a member function path() on null {"userId":"4ce4f9ad-6ab3-4244-aafe-761bb2bd9fc5","exception":"[object] (Error(code: 0): Call to a member function path() on null at D:/Websites/dupes/vendor/statamic/cms/src/Stache/Duplicates.php:24)
[stacktrace]
#0 [internal function]: Statamic/Stache/Duplicates->{closure:{closure:Statamic/Stache/Duplicates::all():21}:22}(Array, '1783623619.9373')
#1 D:/Websites/dupes/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(830): array_map(Object(Closure), Array, Array)
#2 D:/Websites/dupes/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(827): Illuminate/Support/Arr::map(Array, Object(Closure))
#3 D:/Websites/dupes/vendor/statamic/cms/src/Stache/Duplicates.php(22): Illuminate/Support/Collection->map(Object(Closure))
#4 [internal function]: Statamic/Stache/Duplicates->{closure:Statamic/Stache/Duplicates::all():21}(Array, 'form-submission...')
#5 D:/Websites/dupes/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(830): array_map(Object(Closure), Array, Array)
#6 D:/Websites/dupes/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(827): Illuminate/Support/Arr::map(Array, Object(Closure))
#7 D:/Websites/dupes/vendor/statamic/cms/src/Stache/Duplicates.php(21): Illuminate/Support/Collection->map(Object(Closure))
#8 D:/Websites/dupes/vendor/statamic/cms/src/Http/Controllers/CP/DuplicatesController.php(28): Statamic/Stache/Duplicates->all()
#9 D:/Websites/dupes/vendor/statamic/cms/src/Http/Controllers/CP/DuplicatesController.php(21): Statamic/Http/Controllers/CP/DuplicatesController->getDuplicates()
#10 D:/Websites/dupes/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Statamic/Http/Controllers/CP/DuplicatesController->index()
#11 D:/Websites/dupes/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate/Routing/Controller->callAction('index', Array)
#12 D:/Websites/dupes/vendor/laravel/framework/src/Illuminate/Routing/Route.php(275): Illuminate/Routing/ControllerDispatcher->dispatch(Object(Illuminate/Routing/Route), Object(Statamic/Http/Controllers/CP/DuplicatesController), 'index')
#13 D:/Websites/dupes/vendor/laravel/framework/src/Illuminate/Routing/Route.php(215): Illuminate/Routing/Route->runController()
Environment
Environment
Laravel Version: 13.19.0
PHP Version: 8.5.8
Composer Version: 2.9.8
Environment: local
Debug Mode: ENABLED
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
D:\Websites\dupes\public\storage: NOT LINKED
Statamic
Addons: 0
License Key: Not set
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.24.2 PRO
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
On my site, when a performer signs up for an audition, it triggers two forms - a confirmation to the performer and a notification to the director(s) - and these two submissions have identical timestamps. It seems the Stache treats these as duplicate IDs instead of realizing they're in separate form directories.
Here's the thread from Discord between me and @edalzell : https://discord.com/channels/489818810157891584/1430960589966147708
I created a fresh site and was able to reproduce the issue. http://github.com/danielfowler/dupes
How to reproduce
Logs
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response