Update fatal error - ApiKeyResource.php #471

Closed
opened 2026-02-04 18:09:38 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @jvsod on GitHub (Oct 13, 2025).

Current Behavior

Updating the panel using the commands from the guide give the below error in the latest beta update

PHP Fatal error:  Type of App\Filament\Admin\Resources\ApiKeyResource::$navigationIcon must be BackedEnum|string|null (as in class Filament\Resources\Resource) in /var/www/pterodactyl/app/Filament/Admin/Resources/ApiKeyResource.php on line 26

In ApiKeyResource.php line 26:

  Type of App\Filament\Admin\Resources\ApiKeyResource::$navigationIcon must be BackedEnum|string|null (as in class Filament\Resources\Resource)

Expected Behavior

Update completes successfully

Steps to Reproduce

update from previous version to latest version

Panel Version

Failing to load panel so unsure

Wings Version

v1.0.0-beta18

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs


Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Originally created by @jvsod on GitHub (Oct 13, 2025). ### Current Behavior Updating the panel using the commands from the guide give the below error in the latest beta update ``` PHP Fatal error: Type of App\Filament\Admin\Resources\ApiKeyResource::$navigationIcon must be BackedEnum|string|null (as in class Filament\Resources\Resource) in /var/www/pterodactyl/app/Filament/Admin/Resources/ApiKeyResource.php on line 26 In ApiKeyResource.php line 26: Type of App\Filament\Admin\Resources\ApiKeyResource::$navigationIcon must be BackedEnum|string|null (as in class Filament\Resources\Resource) ``` ### Expected Behavior Update completes successfully ### Steps to Reproduce update from previous version to latest version ### Panel Version Failing to load panel so unsure ### Wings Version v1.0.0-beta18 ### Games and/or Eggs Affected _No response_ ### Docker Image _No response_ ### Error Logs ```bash ``` ### Is there an existing issue for this? - [x] I have searched the existing issues before opening this issue. - [x] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server. - [x] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Author
Owner

@notAreYouScared commented on GitHub (Oct 13, 2025):

Please read the announcements on the discord. Also please use the update script.

@notAreYouScared commented on GitHub (Oct 13, 2025): Please read the announcements on the discord. Also please use the update script.
Author
Owner

@zigzatuzoo commented on GitHub (Oct 15, 2025):

Had the same issue. For anyone who is wondering how to fix and doesn't want to join the discord server/doesn't use discord.

Issue is raised due to filament trying to be updated before the files are.

Fix (commands expected to be run as root and in your pelican root):

  1. backup/move your ./.env ./database/database.sqlite
    mv ./.env ../ && mv ./database/database.sqlite ../
  2. delete all files in your pelican panel root directory
    rm -rf ./*
  3. download the latest file
    curl -L https://github.com/pelican-dev/panel/releases/latest/download/panel.tar.gz | tar -xzv
  4. restore your env and database files
    rm .env && mv ../.env ./ && mv ../database.sqlite ./database/
  5. set permissions (may be different depending on distro but for most it should be the following)
    sudo chmod -R 755 storage/* bootstrap/cache/ && sudo chown -R www-data:www-data /var/www/pelican
  6. then lastly update the database and make sure symlinks are made
    php artisan migrate && php artisan storage:link
@zigzatuzoo commented on GitHub (Oct 15, 2025): Had the same issue. For anyone who is wondering how to fix and doesn't want to join the discord server/doesn't use discord. Issue is raised due to filament trying to be updated before the files are. Fix (commands expected to be run as root and in your pelican root): 1. backup/move your ./.env ./database/database.sqlite `mv ./.env ../ && mv ./database/database.sqlite ../` 2. delete all files in your pelican panel root directory `rm -rf ./*` 3. download the latest file `curl -L https://github.com/pelican-dev/panel/releases/latest/download/panel.tar.gz | tar -xzv` 4. restore your env and database files `rm .env && mv ../.env ./ && mv ../database.sqlite ./database/` 5. set permissions (may be different depending on distro but for most it should be the following) `sudo chmod -R 755 storage/* bootstrap/cache/ && sudo chown -R www-data:www-data /var/www/pelican` 6. then lastly update the database and make sure symlinks are made `php artisan migrate && php artisan storage:link`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#471