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
if you are optimizing Filament, run
php artisan filament:optimize-clear
I just ran the command, but unfortunately I am still stuck on the same error.
php artisan filament:about
what is the output?Filament ...................................................................
Blade Icons ..................................................... NOT CACHED
Packages ................... filament, forms, notifications, support, tables
Panel Components ................................................ NOT CACHED
Version ............................................................ v3.3.37
Views ........................................................ NOT PUBLISHED
Blade Icons ..................................................... NOT CACHED
Packages ................... filament, forms, notifications, support, tables
Panel Components ................................................ NOT CACHED
Version ............................................................ v3.3.37
Views ........................................................ NOT PUBLISHED
weird. Same version is running here
could you run
composer update -W
again?would composer update -W filament/forms filament/support filament/tables filament/notifications be ok? I am afraid to break dependencies on my prod
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..
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.