joshembling / image-optimizer

🎨 Optimize your Filament images before they reach your database.
https://filamentphp.com/plugins/joshembling-image-optimizer
MIT License
66 stars 14 forks source link

[Bug]: Undefined variable $getUploadingMessage #9

Closed williamengbjerg closed 9 months ago

williamengbjerg commented 9 months ago

What happened?

After updating filament, I encountered errors indicating an Undefined variable $getUploadingMessage. Any insights or resolutions to rectify this issue would be greatly appreciated. Thanks.

How to reproduce the bug

Once updating to latest filament version

Package Version

1.2.0

PHP Version

8.2.15

Laravel Version

10.42.0

Which operating systems does with happen with?

No response

Notes

No response

akromjon commented 9 months ago

I am also getting the same issue:

              Section::make([
                    FileUpload::make('image')
                        ->label(__('Image'))
                        ->image()
                        ->optimize('jpg')
                        ->resize(50),

                    TextInput::make('read_duration')
                        ->label(__('Read Duration (in minutes)'))
                        ->disabled(),

                    Select::make('categories')
                        ->multiple()
                        ->relationship(titleAttribute: 'title')
                        ->preload()
                ]),
joshembling commented 9 months ago

Hi @williamengbjerg @akromjon

Thank you for raising these issues. These have now been fixed in the latest version, please upgrade to v1.3.0.

https://github.com/joshembling/image-optimizer/compare/v1.2.0...v1.3.0