Allowed memory size of bytes exhausted error after upgrading to version 3
I have upgraded my laravel Filament project from version 2 to version 3 follow the instructies that were here:
https://filamentphp.com/docs/3.x/panels/upgrade-guide
After doing that i tried to open my panel on /admin but when i did it didn't load and showed the memory size exhausted error in the command where my
php artisan serve
is running.21 Replies
This is my current composer.json file:
Did you choose to the upgrading auto or manually?
I used the auto
wheres the filament/upgrade package on the "require-dev" in the composer file? I know it says to remove at the end
did the process run with errors?
I had it removed after i used the
php artisan filament:install
command
The process had no errorswell you have to update the other packages aswell
for example the filament-shield
you're using version 2 for filament 2, you must have version 3
and so on
third party packages arent updated
Some plugins you're using may not be available in v3 just yet. You could temporarily remove them from your composer.json file until they've been upgraded, replace them with a similar plugins that are v3-compatible, wait for the plugins to be upgraded before upgrading your app, or even write PRs to help the authors upgrade them.
don't i have filament 3.1 ?
and?
plugins are not part of the filament core package
if you're using third party you must update the plugins to the correct version of filament
GitHub
GitHub - bezhanSalleh/filament-shield: The easiest and most intuiti...
The easiest and most intuitive way to add access management to your Filament Panel; Resources, Pages & Widgets through
spatie/laravel-permission
- bezhanSalleh/filament-shield
I will start with trying to upgrade the filament-shield and see if anything changes
you must check all the packages that you installed but it's not guaranteed that all packages are updated for filament v3, keep that in mind
I upgraded the extensions but the error didn't change
New Composer.json:
can you run composer dumpautoload?
Yes, but i get the same error
php artisan optimize:clear gives any error?

whats you dev environment? maybe your php doesnt have enough memory
I am using xampp and my memory_limit=2048M.
should be enough. I dont have more ideas to suggest.
Thanks for the help. Maybe someone alse can help me