F
Filament14mo ago
Connor

Select::isOptionDisabled(): Argument #2 ($label) must be of type string

I'm getting the following error when trying to create or edit a EmailResource
Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type string, null given, called in /home/forge/removalswirral.com/storage/framework/views/261a1cb3791d1db28c7c94aecd082ed5.php on line 86
Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type string, null given, called in /home/forge/removalswirral.com/storage/framework/views/261a1cb3791d1db28c7c94aecd082ed5.php on line 86
This is only happening on my production server, not locally. Not quite sure how to debug it as i believe its referencing a blade generated template?
2 Replies
awcodes
awcodes14mo ago
Your array options is returning a null key somewhere.
lazydog
lazydog13mo ago
Ensure your array values are all good, don't have null values correct
[
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3',
]
[
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3',
]
incorrect
[
'key1' => 'value1',
'key2' => null,
'key3' => 'value3',
]
[
'key1' => 'value1',
'key2' => null,
'key3' => 'value3',
]
Want results from more Discord servers?
Add your server