Undefined variables for $content for checkbox

Hello, I implemented Filament v3 (3.3.37) in my project. I only created Resources so far. Everything works great on local but I get this error on prod only : Undefined variable $content (View: /app/vendor/filament/forms/resources/views/components/checkbox.blade.php) What I tried: - I deleted the resources/views/vendor/filament - clear cache - check the filament version: filament tables, action, support, forms are all the same version on local and prod - look for any checkbox in my code. There is none Any guidance is welcome. Many thanks
8 Replies
LeandroFerreira
LeandroFerreira2mo ago
if you are optimizing Filament, run php artisan filament:optimize-clear
kosmickarma.
kosmickarma.OP2mo ago
I just ran the command, but unfortunately I am still stuck on the same error.
LeandroFerreira
LeandroFerreira2mo ago
php artisan filament:about what is the output?
kosmickarma.
kosmickarma.OP2mo ago
Filament ...................................................................
Blade Icons ..................................................... NOT CACHED
Packages ................... filament, forms, notifications, support, tables
Panel Components ................................................ NOT CACHED
Version ............................................................ v3.3.37
Views ........................................................ NOT PUBLISHED
LeandroFerreira
LeandroFerreira2mo ago
weird. Same version is running here could you run composer update -W again?
kosmickarma.
kosmickarma.OP2mo ago
would composer update -W filament/forms filament/support filament/tables filament/notifications be ok? I am afraid to break dependencies on my prod
LeandroFerreira
LeandroFerreira2mo ago
it updates all dependencies, but I recommend testing it in a separate env. I think something is different, but I can't say exactly what. Since it works locally, make sure to compare with the prod env to see what might be causing the issue..
kosmickarma.
kosmickarma.OP2mo ago
k thanks for your help! I will tread carefully and keep you posted. Yes there imust be something different between local and prod and I have been scratching my head for hours.

Did you find this page helpful?