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
JoepTechMere
JoepTechMereOP3w ago
This is my current composer.json file:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.1",
"bezhansalleh/filament-shield": "^2.4",
"blade-ui-kit/blade-heroicons": "^2.0",
"blade-ui-kit/blade-ui-kit": "^0.4.0",
"doctrine/dbal": "^3.6",
"filament/filament": "3.1",
"guzzlehttp/guzzle": "^7.2",
"jeffgreco13/filament-breezy": "^2.0",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"livewire/livewire": "3.1",
"maatwebsite/excel": "^3.1",
"spatie/icalendar-generator": "^2.5",
"squirephp/countries-en": "^3.4"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.14",
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.21",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.1",
"bezhansalleh/filament-shield": "^2.4",
"blade-ui-kit/blade-heroicons": "^2.0",
"blade-ui-kit/blade-ui-kit": "^0.4.0",
"doctrine/dbal": "^3.6",
"filament/filament": "3.1",
"guzzlehttp/guzzle": "^7.2",
"jeffgreco13/filament-breezy": "^2.0",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"livewire/livewire": "3.1",
"maatwebsite/excel": "^3.1",
"spatie/icalendar-generator": "^2.5",
"squirephp/countries-en": "^3.4"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.14",
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.21",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi",
"@php artisan filament:upgrade"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi",
"@php artisan filament:upgrade"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
Bruno Pereira
Bruno Pereira3w ago
Did you choose to the upgrading auto or manually?
JoepTechMere
JoepTechMereOP3w ago
I used the auto
Bruno Pereira
Bruno Pereira3w ago
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?
JoepTechMere
JoepTechMereOP3w ago
I had it removed after i used the php artisan filament:install command The process had no errors
Bruno Pereira
Bruno Pereira3w ago
well 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.
JoepTechMere
JoepTechMereOP3w ago
don't i have filament 3.1 ?
Bruno Pereira
Bruno Pereira3w ago
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
Bruno Pereira
Bruno Pereira3w ago
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
Bruno Pereira
Bruno Pereira3w ago
No description
JoepTechMere
JoepTechMereOP3w ago
I will start with trying to upgrade the filament-shield and see if anything changes
Bruno Pereira
Bruno Pereira3w ago
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
JoepTechMere
JoepTechMereOP3w ago
I upgraded the extensions but the error didn't change New Composer.json:
"require": {
"php": "^8.1",
"bezhansalleh/filament-shield": "^3.0",
"blade-ui-kit/blade-heroicons": "^2.0",
"blade-ui-kit/blade-ui-kit": "^0.4.0",
"doctrine/dbal": "^3.6",
"filament/filament": "3.1",
"guzzlehttp/guzzle": "^7.2",
"jeffgreco13/filament-breezy": "^2.5",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"livewire/livewire": "3.1",
"maatwebsite/excel": "^3.1",
"spatie/icalendar-generator": "^2.5",
"squirephp/countries-en": "^3.4"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.21",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"require": {
"php": "^8.1",
"bezhansalleh/filament-shield": "^3.0",
"blade-ui-kit/blade-heroicons": "^2.0",
"blade-ui-kit/blade-ui-kit": "^0.4.0",
"doctrine/dbal": "^3.6",
"filament/filament": "3.1",
"guzzlehttp/guzzle": "^7.2",
"jeffgreco13/filament-breezy": "^2.5",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"livewire/livewire": "3.1",
"maatwebsite/excel": "^3.1",
"spatie/icalendar-generator": "^2.5",
"squirephp/countries-en": "^3.4"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.21",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
Bruno Pereira
Bruno Pereira3w ago
can you run composer dumpautoload?
JoepTechMere
JoepTechMereOP3w ago
Yes, but i get the same error
Bruno Pereira
Bruno Pereira3w ago
php artisan optimize:clear gives any error?
JoepTechMere
JoepTechMereOP3w ago
No description
Bruno Pereira
Bruno Pereira3w ago
whats you dev environment? maybe your php doesnt have enough memory
JoepTechMere
JoepTechMereOP3w ago
I am using xampp and my memory_limit=2048M.
Bruno Pereira
Bruno Pereira3w ago
should be enough. I dont have more ideas to suggest.
JoepTechMere
JoepTechMereOP3w ago
Thanks for the help. Maybe someone alse can help me

Did you find this page helpful?