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 Harrin2y 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
MatthewOP2y ago
I ran php artisan cache:clear Will try this
Dan Harrin
Dan Harrin2y ago
thats not the same thing thats the cache, like redis not view cache
Matthew
MatthewOP2y ago
Thank you. That worked
maurelius
maurelius16mo 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 🙈

Did you find this page helpful?