F
Filamentβ€’2y ago
Matthew

undefined variable $getAllRecordsCount

I get this error in production, but not when it runs locally. I used one of the filament tricks: https://filamentphp.com/tricks/aggregate-data-in-table-footer. Every time I open a page that has a table, I get this error. Despite using the aggregation in only ONE table, and not the other ones. Im not sure what exactly causes the error. Any ideas?
5 Replies
Dan Harrin
Dan Harrinβ€’2y ago
clear your view cache filament:upgrade does this automatically, but only if you put it in your composer.json (as per installation isntructions)
Matthew
MatthewOPβ€’2y ago
I ran php artisan cache:clear Will try this
Dan Harrin
Dan Harrinβ€’2y ago
thats not the same thing thats the cache, like redis not view cache
Matthew
MatthewOPβ€’2y ago
Thank you. That worked
maurelius
maureliusβ€’14mo ago
I am also experiencing the same issue, but locally on a v2 app that used to work. Clearing cache does not help. I can't get it to work. Any ideas? :/ And i get it on all resources. php artisan filament:upgrade fixed it πŸ™ˆ
Want results from more Discord servers?
Add your server